Current relocation code is limited to 21bit PC-relative addressing
which might not be enough for bigger code sizes. The following patch
increases the addressing to 32bit PC-relative. This feature is
specially interesting if U-Boot is build without optimiation (-O0) as
the text section is increased significativelly.
Signed-off-by: Ibai Erkiaga <ibai.erkiaga-elorza@xilinx.com>
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: Ib54540ff040642588b4bfe2d030e5d9eabf8348c
It's better to add platform name for the uboot.img.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I050981356d68ac1816ebd2cdc8c0cc69bfd841bd
This reverts commit 34b05be1cb.
This property is added in u-boot-spl.dtb file.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I4d102c1acab2d659e4dc8ce493cfd768639ef5bb
The RK3568 has two gmac, but only support one mac address right now,
define the more ethernet mac address at vendor storage to support it.
We also write random address back to vendor storage, so that we can
not generate random address every time.
Change-Id: I2aba82c4af70d9dfdfdbc5d7e776d8100ae2fda9
Signed-off-by: David Wu <david.wu@rock-chips.com>
Add sdmmc pinctrl node so that the sdmmc io can be set when in
sd-boot process. And delete some unused pinctrl node such as
sfc and nandc.
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I675262800dbfaeaf9beb9f7f1724faa6688bbf92
It is available when verified boot is enabled, to active
this feature: ./make.sh ... --burn-key-hash
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I2224bae079f12d48609989b080b287dfe4fd2cb3
The OTP_S access is not allowed from the non-secure world.
so, remove it for ramboot which have already done in trust.
ram boot flow:
usb boot -> trust/op-tee -> uboot -> kernel -> rootfs
normal boot flow:
spl boot -> trust/op-tee -> uboot -> kernel -> rootfs
Fixes: 1ac424cf03 ("rockchip: rv1126: Increase otp tRWH timing for stable read")
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I76ef84cb79ca29837cae01120296523804a75ff8
PH and PL is from boot mode register, reading once.
PM is from misc.img and should be updated if BCB offset is changed.
Return the boot mode according to priority: PH > PM > PL.
Fixes:
(3aaa96e8af rockchip: boot-mode: reinitialize static variable "boot_mode")
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ibd577dd8ebfb0d4c36ac8b90e176d3b1103f347e
If we enable usb2phy1 with dm-pre-reloc in uboot and disable it
in kernel, the status of usb2phy1 will be "okay" and usb2phy1
node will be put ahead of usb2phy0 which leads to vbus detect
fail.
Here is the error log:
get syscon usbgrf failed
rockchip_chg_get_type: get u2phy node failed: -19
Signed-off-by: Ren Jianing <jianing.ren@rock-chips.com>
Change-Id: I16c1ddd42bf1a2e7a98fc9cdf1509a62714c8b6b
The arch_cpu_init() should be called for cpu early init
for tpl.
Change-Id: I3aad0f284089d8523710a2d24daab44995fa148d
Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
kernel FDT is for U-Boot if there is not valid one from images,
ie: resource.img, boot.img or recovery.img. It is put right
after U-Boot FDT.
This is used for U-disk bing up.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Iab1ddbbf3978a6b2fc08316bb136c43c0d2eef60
Simply check cru node to verify if this kernel dtb
is belong to current platform.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I8c0b2181a2ca3cada72a9e18788de0bfdc9ba3c5