]> git.dujemihanovic.xyz Git - u-boot.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)
commit9aed2880603b794daae7bee5c50a964215481072
tree664fa1aaa5d9a53c3f5a104cfd6569ae8b34b67e
parent500d1e7749b540b739a7daaa3693ad0497608286
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