Implement __weak functions in this file.
Move fit_board_verify_required_sigs() to here.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I4d748f7bfe4cbc9a8f2f96f30978d3e64b73b9aa
Being convenient for other functions to be called.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ibfa3f30a50befa8773cc8729a5359f7a36e8180d
Key read can be access with key uclass or a tiny key read interface,
such as CONFIG_SPL_ADC_KEY.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ic1abdee3f778fd1d0d57ab270d5cead81a580fa9
Use it to make sure which firmware can be bring up.
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: Ib2cec8bf7c78fa436efade0518b07c3193170c7b
We always try to init stimer in case it's not init in previous stage,
but don't re-init if it already work.
Change-Id: I2133804560c6e31e51e6b2cb0a6e51b9544970d3
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
arch_cpu_init() may use DM to get cru handler.
Change-Id: I5f2daa4718bcdcc5a4aa5601d26e9f4f31a01b69
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
add udelay(),hang(),memset() in spl.c when we do not config
CONFIG_SPL_LIBGENERIC_SUPPORT.
Change-Id: Ib6c5532af002b501659ee5964d3a09954f0b3fdf
Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
Some SoCs like rk3188 do not have a generic timer.
Change-Id: Ief0e78d6939ac76eec0ffe08650e1a0d930f2f86
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Make sure arch_cpu_init() is called very early,
if TPL exist, call it at the beginning of TPL board_init() and do not
call it again in SPL.
Change-Id: I035bac4c5da28640c866d51d1b7b250eb5912440
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
add rv1108 spl support so we can load u-boot from SPL
Change-Id: I9d36cd590a22d26a46dd84bc3ee0c761048f7b01
Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
We use common board/spl/tpl file for all rockchip SoCs,
- all the SoC spec setting should move into SoC file like rk3288.c;
- tpl is option and only purpose to init DRAM, clock, uart(option);
- spl do secure relate one time init, boot device select, boot into
U-Boot or trust or OS in falcon mode;
- board do boot mode detect, enable regulator, usb init and so on.
Change-Id: I7b5fa1e3e6e5f4a30a382003215425530087a586
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>