[U-Boot] [PATCH 2/3] reboot-mode: read the boot mode from GPIOs status

2019-11-12 Thread Han Nandor
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

[U-Boot] [PATCH 3/3] reboot-mode: read the boot mode from RTC memory

2019-11-12 Thread Han Nandor
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-

[U-Boot] [PATCH 1/3] reboot-mode: add support for reboot mode control

2019-11-12 Thread Han Nandor
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

[U-Boot] [PATCH 0/3] Add reboot mode support

2019-11-12 Thread Han 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

[U-Boot] [PATCH] rtc: add support for DS3232 device

2019-11-12 Thread Han Nandor
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 --

[U-Boot] [PATCH 1/7] imx: mxc_i2c: tweak the i2c transfer method

2017-10-31 Thread Han, Nandor (GE Healthcare)
> -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