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
Special handle:
Once the BCB offset changes, reinitialize "boot_mode".
Background:
1. there are two Android BCB at the 0x00 and 0x20 offset in
misc.img to compatible legacy(0x20) SDK.
2. android_bcb_msg_sector_offset() is for android image:
return 0x20 if image version < 10, otherwise 0x00.
3. If not android image, BCB at 0x20 is the valid one.
U-Boot can support booting both FIT & Android image, if FIT
boot flow enters here early than Android, the "boot_mode" is
set as BOOT_MODE_RECOVERY according to BCB at 0x20 offset.
After that, this function always return static variable "boot_mode"
as BOOT_MODE_RECOVERY even android(>=10) boot flow enter here.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I0ed05ba1b18447a58d3faff37ac50ecc79fab374
error: ‘CRU_SOFTRST_CON02’ undeclared (first use in this function)
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I64935d50646a1ca7d228308c11f2f95a2e2378bb