remove unused "initrd=0x...,0x...", this for compatible
with legacy parameter.txt.
Change-Id: I7d9c5708a6b183479ac5980a90067cff8f0872de
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Reserve memory only when there is reserve mem info at TRUST_PARAMETER_OFFSET,
both ARM64 and ARM32 need to do this.
Change-Id: I14370b92a4f4446482d5c241b85d1588acea14b5
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Fix condition logic error in rockchip_usb2phy_parse().
Change-Id: I51d2e97d73f9fc81295d424f97737f00d0e846d7
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Correct the current capacity to support the different storage
devices upgrade.
Change-Id: I2c96183f317f42944887d02af097ff8a8d29cd4e
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
In the new android images, the ramdisk.img is packed in the
system.img. So transmit the "skip_initramfs" to cmdline to
ignore the ramdisk.img (if have) loaded from boot.img.
Change-Id: I1b2051d65078c903411f3ddcc0c7803cbd6892f4
Signed-off-by: Jason Zhu <jason.zhu@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>
boot_devices may defined in soc file, and used in board file,
we need to delear it in header file.
Change-Id: I621dac73d0e00379da49b78b3a9079e30642881a
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
The "fdt_*" functions may not enable even if the OF_CONTROL is enabled.
Change-Id: I66760056f6f721e4d33f25468b46b1446ebbaf4a
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Use common board file and move SoC spec setting into rk3399.c
Change-Id: Ic674cef566b16c33978a1430eadfa9438b2de1db
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Use common board file and move SoC spec setting into rk3368.c
Change-Id: I1d5a2b0bae03f89092cc0daf1c52622b3884cc43
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Use common board file and move SoC spec setting into rk3328.c
Change-Id: Ia7cf43e0096da980d744260caa61456ddc6b24eb
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Use "uboot,spl-boot-orde" instead of "uboot,boot0".
Change-Id: I647500193ab7cd89e7e409b75793a3eff4453d84
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Use common board file and move SoC spec setting into rk3288.c
Change-Id: Ie17232dd60d2b185b635631ce9373eb59b11c89c
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
dram_init_banksize() can be common used by all SoCs, move it into
sdram_common.c
Change-Id: Ie8caa63b898202ae588d5a71f130d14c741943a2
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
We are going to remove rockchip_udelay after enable arch timer.
Change-Id: I8c7eea8315a42401d0fd7dbf1e4c812b5605bc73
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Do not need to use rockchip_udelay after we can use systimer.
Change-Id: Ibcd722a71ca383c057128d9706c6679b49c17a3d
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
We can use arch timer instead of rockchip timer.
Change-Id: I9098f42180515202c39c9fd86299687cb4902ec1
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
We don't need tpl for rk3066 after we enable this option.
NOTE: need to update code for clock init in boot0 later
Change-Id: I253e6a0fd3633d982ebabaa045a0d4839570bc6a
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
We add this for get the location for boot device of bootrom.
Change-Id: Ibf142129cacb09ed9e4e0084d003c6cc0812df54
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
STIMER is can only access in secure mode if the SoCs supports trust,
and it locate in alive power domain, as the source of ARM arch/generic
timer, we add a base addr for all SoCs so that we can init with a common
function.
Change-Id: Iab7b8706344ecdc635d66196eed1ff855afc9a24
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
All rockchip SoCs can use ns16550 driver, enable it for all
and set SYS_NS16550_MEM32 for all SoCs.
Change-Id: I4be3a801bf5537b94ed0c100cb44f49d78b8b15a
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
All rockchip SoCs can use ARM arch timer, let's enable it in
common header file
Change-Id: Ic74024b34c72cfbeffa2288ef2b2375f5f141c2c
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
The configure_l2ctlr() is used only by rk3288, do not need to
locate in sys_proto.h
Change-Id: I98f8cffdbc990e3fcf19f41ca53ff5fd25155e63
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
SPL and TPL may not always need spl_board_init() at the same time.
Change-Id: I5f26956414f1d2ff3fd2fce11a4d7759de7804fe
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
If CONFIG_SPL_BUILD is not enable, some functions are defined but
not used.
Change-Id: I1d67f8f5d69c92d2d26209a17d7a765a56b10e59
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
cb_flashing() should be in the same MACRO of cb_flash().
Change-Id: Ic5641a1bf1fb0ab53ad98bdececd028f1e75a5e2
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Need to reserver first 4MB for EMMC while use the addr directly for NAND.
Change-Id: I5c6309e41a9c287388cb6c0ff7ba5b1ef9ff29bf
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
It's better to be done anyway and as early as possible.
Change-Id: I681c93b97a8c3da681886b23ef350ecab8156f8e
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>