1.mmc testsecurestorage to test secure storage
2.test secure storage in rpmb and test secure storage in
security partition when use emmc
3.test secure storage in security partition when use nand
Change-Id: Id6f72893c002c5040cb1790051c9685911878df7
Signed-off-by: Hisping Lin <hisping.lin@rock-chips.com>
Since the clock-names will be used by mmc module, so remove it from
CONFIG_OF_SPL_REMOVE_PROPS.
Change-Id: Ie42897b6b9eadfea86724ea1e25a6d47b57113af
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
We get TPL and no need back to bootrom in SPL.
Change-Id: I27b9793acc1a8d311dc9b518e73150c3af711808
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Both cmd and its implement shoud be in the same MACRO.
Change-Id: I93587c425f999d9701d88b1d278fcc2a70d64133
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
It fixes the dead loop issue of "bootrkp" command:
......
=Booting Rockchip format image=
boot: invalid image tag(0x0)
boot_rockchip_image ramdisk part boot read error
bad resource image magic:
DTB: rk-kernel.dtb
invalid entry tag
invalid entry tag
invalid entry tag
invalid entry tag
......
Change-Id: Ia15f315eee94dce06800139ff547ebeee3847cae
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Since the clock-names will be used by mmc module, so remove it from
CONFIG_OF_SPL_REMOVE_PROPS.
Change-Id: I7f1b4d9353564c5aa87cf33783e814b5390710ef
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Without this patch, the irq context get the irq_lr and irq_sp
which doesn't make any sense, what we need are svc_lr and svc_sp.
Change-Id: I4c07e3688e818cd4516824a78d57ff092fdbe2b9
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
IRQ_STACK_START_IN is default 0x0badc0de which is a invalid address,
this patch makes all exceptions routine work normally.
Change-Id: I3f4d75b90d840f7ea1cb7a2e1cbc7ad452aef15b
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
rk817/rk809 must restore the PMIC_POWER_EN OTP value before the system reboot.
Change-Id: Ia62cb8f5b0dc9fef8a32a3af5f087c55a9888d78
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
In the commit 525293385cca ("rockchip: board: rework board
usb init"), it correct the way to find the otg node. This
patch do the same thing here.
Change-Id: I27c66f48d9f6c99f1d6e45c2b83d2bcd6365a1f3
Signed-off-by: William Wu <william.wu@rock-chips.com>
Currently, usb 2.0 otg node was found by the compatible
"snps,dwc2" and the property "dr_mode". However, the
"dr_mode" isn't a necessary condition, more seriously,
if the dr_mode is set to "host" or "peripheral", we
will fail to get the otg node.
This patch finds otg node by the compatible "snps,dwc2"
for most of Rockchip SoCs supported only one DWC2 controller.
For RK3288, it supports two DWC2 controllers with the
same compatible "snps,dwc2", so we add another condition
(reg addr = 0xff580000) to get the otg node.
Change-Id: I16acbf3e8da9bec19b8ec0a331b9114cb5462ac0
Signed-off-by: William Wu <william.wu@rock-chips.com>
This patch adds eDP software reset operation to make sure
register access successfully on RK3288 and it fixes possible
register default value abnormal issue during boot up.
1) normal case:
Rockchip UBOOT DRM driver version: v1.0.1
0x120: 0x00000007
0x390: 0x00000003
Using display timing dts
Detailed mode clock 200000 kHz, flags[a]
H: 1536 1548 1564 1612
V: 2048 2056 2060 2068
bus_format: 100e
Link Training success!
final link rate = 0x06, lane count = 0x04
2) abnormal case:
Rockchip UBOOT DRM driver version: v1.0.1
0x120: 0x00000066
0x390: 0x00000202
Using display timing dts
Detailed mode clock 200000 kHz, flags[a]
H: 1536 1548 1564 1612
V: 2048 2056 2060 2068
bus_format: 100e
failed to get Rx Max Link Rate
failed to init training
unable to do link train
Change-Id: Idacbb0c72a40442da3a87e60bfe1d9965f3ca79c
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
- add interface to get android avb enable state;
- get ramdisk from "ramdisk_addr_r" only when android avb disabled
and CONFIG_ANDROID_BOOT_IMAGE_SEPARATE is enabled;
(fixes: 644e344 android: support loading android image separate)
Change-Id: I7280f911a0c5db851d119acb458b3f335dc28bce
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Avoid malloc_f space for pre-reloc is not enough which
may cause memory override.
Change-Id: Ifa358f5700dfa8b1dc1240a210e414fb69fca914
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Add the phy regulator supply for rv1108-evb, and fix the
configuration of clock_in_out.
But the phy will init failed because the phy-reset pin is
the same as the mipi data pin.
Change-Id: I14b0accd083742ca6eb4ae6bec1139ef5ba65db0
Signed-off-by: David Wu <david.wu@rock-chips.com>
Since sd does not have RPMB, so store secure data in security partition
for sdboot.
Change-Id: Ibf4557b5b2721657a6abf2f9e70e1b6c8893d7fc
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>