A use case for controlling the boot mode is when the user wants
to control the device boot by pushing a button without needing to
go in user-space.
Add a new backed for reboot mode where GPIOs are used to control the
reboot-mode. The driver is able to scan a predefined list of GPIOs
and return the
RTC devices could provide battery-backed memory that can be used for
storing the reboot mode magic value.
Add a new reboot-mode back-end that uses RTC to store the reboot-mode
magic value. The driver also supports both endianness modes.
Signed-off-by: Nandor Han
---
.../reboot-mode/reboot-mode-
A new driver uclass is created to handle the reboot mode control.
The new uclass driver is updating an environment variable with the
configured reboot mode. The mode is extracted from a map provided
at initialization time. The map contains a list of modes
and associated ids.
Signed-off-by: Nandor
Description
---
Add support for reboot-mode configuration using GPIOs and RTC SRAM as
back-end.
Testing
---
Tested on a Zynq based board where device tree was configured to contain
the reboot-mode configuration:
&amba {
status = "okay";
reboot-mode-gpio {
compatible
DS3232 is an i2c RTC with 236 bytes of battery-backed SRAM.
Add an RTC driver for DS3232 device, which provides time and
date support. Also read and write functions are provided,
which can be used to access the SRAM memory.
Signed-off-by: Nandor Han
---
Notes:
Description
--
> -Original Message-
> From: Heiko Schocher [mailto:h...@denx.de]
> Sent: 31 October 2017 06:28
> To: Martyn Welch
> Cc: u-boot@lists.denx.de; Han, Nandor (GE Healthcare)
> ; Martyn Welch ;
> Stefano Babic
> Subject: EXT: Re: [PATCH 1/7] imx: mxc_i2c: tweak
6 matches
Mail list logo