The mmc is not passed in spl_mtd_load_rkfw, use desc.
Change-Id: I68a577487dc8a4f2a82c4b80095f10cd6319b508
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
The normal mtd block attachment steps are UCLASS_BLK -> UCLASS_MTD ->
UCLASS_(SPI or NAND). Since the spi flash frame is attached to
UCLASS_SPI_FLASH, this make mistake to find the UCLASS_MTD when
find the mtd block device. Fix it here when enable CONFIG_MTD_BLK.
Change-Id: I815f85a3bc51aa31e0896d9809a0b5a90f186a18
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
I2c MUx is in cpll by default, but cpll is for dclk_vop exclusive.
If dclk_vop set rate after i2c init, the CPLL changed,
but the i2c not perception, it will resulting the wrong frequency
of the i2c.
So set the i2c frequency according to the kernel configuration.
and Hang I2C on the GPLL.
Change-Id: I91f891e9033e9d4648027ea253998a54011f4863
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Since func nand_read_skip_bad is used in uboot, so just build it in
uboot build. And use func mtd_read to replace it.
Change-Id: Ic5e161f7f03cd2da0099891812360af67a2b9db8
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
RK3308 EVB use GPIO0_C5 control 5V power supply for
usb host.
Change-Id: Iafdffc7aa5114eb4909b083e2e2a98088d792b14
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
If the board do not have the 'devnum', the env_get() returns NULL
and strcmp will lead to "data abort".
Change-Id: I329237b61fc96bc90e7a07653b665192d6a9d7b8
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
The 'rktest all v2/3' do not really pass arg to sub cmd, always set argc
for 'rktest all *' cmd to 1 for sub commands.
Change-Id: I2d69ad25aaca074f52bfd2e69be4c33bc41186df
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Open RK_AVB_LIBAVB_ENABLE_ATH_UNLOCK if need advanced security requirements.
Change-Id: Ie01c6342d379b672fe69e367262496d97b5890e9
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
The commit point is updated to google external/avb/
which commit point is 868db2a514bbb02e166fb55b1592b27de8c9680c.
Change-Id: I10f7c0ac356a7666b518b62e59ccb62277668578
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
It handles the issue when the bootflow without Miniloader,
i.e. Maskrom => Trust(optional) => U-Boot.
Change-Id: I445225d5cce9abd2117ef468f15774e3fa57e16d
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
RK3399 SPL only supports FIT and rockchip image type.
Change-Id: Ibcfc6cf5bcdb6f8da4107ac10426f83aec9c010d
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
We are going to update atf base to 0x40000, so that we can use space
0~0x40000 for SPL without relocate for support ATF.
0x40000 should be enough for SPL text, and we have separate BSS and
STACK.
Change-Id: I081d289f10a54d8a98e9f466e1730659f2c712a3
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
We are using separate BSS with CONFIG_SPL_BSS_START_ADDR.
Change-Id: I42f3f4a71db1460997a47491c8688fa8085bf594
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Disable the ddr secure region so that emmc/sd controller can access
the DRAM, this reg should be override in ATF.
Change-Id: I30ed494bbe0ec93d162cc84a815ab591a00eb0e5
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Both px30 and px30mini are using ddr3, change the default
dram type to ddr3 to adapt it.
Change-Id: I177dc41cd2a5e6a1cac718c75fa5a2541050ee6d
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Some bridge can't get tv edid such as rk1000 cvbs, but
at present bridge can't provide timing without edid. So
we add get_timing interface to provide timing.
Change-Id: Id74802a3bff8140e3677f6633788aacd021afc91
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
dtb addr should add the size of recovery_dtbo when
recover_dtbo is included.
Change-Id: I97f7bd6e248f61413b530972abe46c3236bd0b01
Signed-off-by: Bian Jin chen <kenjc.bian@rock-chips.com>
In sd-update card, we use RKPARM partition in bootloader to load
firmware, and use MS-DOS partition in recovery to update system.
Now, we want to use gpt in bootloader and abandon the RKPARM
partition. So in new sd-update card, we write the MS-DOS partition
table and gpt to sd card. Then we must return 1 directly when test
the mbr sector otherwise the gpt is unavailable.
Change-Id: I994a0cb86e7829c6edadfe357cbf51ad00b65cec
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
lcdc data[15:12] is reuse with jtag, when use rgb output
set as rgb output.
Change-Id: Ia7f5006a0d61d94895fad519c622b6a85451cc1a
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
- We have implement dump_stack() for both ARM and ARM64;
- It was brought back by careless on commit: (28386b6 UPSTREAM: lib: Add hexdump)
Change-Id: I8ebbd46862475485963d2ac835ea4031207d2153
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
In android Q, the bootloader must implement a new Boot Control
Block (BCB) command of boot-fastboot in order to support fastbootd.
Then the bootloader is expected to load and boot into the recovery
image upon seeing boot-fastboot in the BCB command. Recovery then
parses the BCB message and switches to fastbootd mode.
Change-Id: Ie868912071f6a371ec83caa8d591281fc063e6ae
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>