arm: Implement show_boot_progress() for imx53's HSC and DDC devices
authorLukasz Majewski <lukma@denx.de>
Fri, 25 Sep 2020 15:13:09 +0000 (17:13 +0200)
committerStefano Babic <sbabic@denx.de>
Sun, 1 Nov 2020 14:53:40 +0000 (15:53 +0100)
commit9c1f71060b1396fd2940e9c7b0b08f6baf1d2a36
tree5a740d6ff1d1cb890a7e5c496d9dbec946408579
parentfc4e69f63f96d6f8898864f1a9f9b0a4c0ac426b
arm: Implement show_boot_progress() for imx53's HSC and DDC devices

This patch provides information regarding the boot stage with using LEDs.
On the very beginning of U-Boot execution the GREEN LED is turned on.
When the execution is passed to Linux kernel the GREEN LED is off and
RED one is ON.

Afterwards, when Linux takes over the execution, the "heartbeat" driver
provides indication if the board is still alive.

Please also note that this patch uses {set|clr}bits_le32 macros as turning
ON GREEN LED is performed in a _very_ early stage of U-Boot execution
before DM_GPIOs are initialized.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
board/k+p/kp_imx53/kp_imx53.c