]> git.baikalelectronics.ru Git - uboot.git/commit
rockchip: roc-rk3399-pc: Add custom led_setup()
authorJagan Teki <jagan@amarulasolutions.com>
Tue, 21 Jul 2020 15:06:01 +0000 (20:36 +0530)
committerKever Yang <kever.yang@rock-chips.com>
Wed, 22 Jul 2020 12:55:13 +0000 (20:55 +0800)
commite500865b82f2dbdc8000228e25d0e8038f8a4ae1
tree664fa1aaa5d9a53c3f5a104cfd6569ae8b34b67e
parent0f65ad63cf016cd171795fe4797ed35c5e6d4ae6
rockchip: roc-rk3399-pc: Add custom led_setup()

roc-rk3399-pc has some specific requirements to support LEDS,
environment. board detection and etc prior to U-Boot proper.

So as of now SPL would be a better stage for these custom board
requirements to support unlike TPL. Adding few of these custom
requirements like LEDS in TPL would require extra code pulling
and also the size of TPL can grow.

So, this patch moves the leds code from TPL into SPL Board init
led_setup code.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
(split tpl.c change as separate patch)
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
board/firefly/roc-pc-rk3399/roc-pc-rk3399.c
configs/roc-pc-mezzanine-rk3399_defconfig
configs/roc-pc-rk3399_defconfig