It works when CONFIG_USING_KERNEL_DTB is enabled, because we can
set either 'u-boot,dm-spl' or 'u-boot,dm-pre-reloc' for the node
that we can to leave in the u-boot.dtb.
Change-Id: Id3cec0c64ee55ca9bc1e5871e7ad5a2ebb4b1b6a
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
The irq framework takes over the enable/disable management
for virq chip.
Change-Id: I63202b22b121b4a889d5a408a6a5a8f50a3c24d8
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
- disable virq chip by default;
- fix bank->use_count little than 0;
Change-Id: I69aa07cc2924dab40eea6524588869361ad8cf66
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Since the patch "3bdef7e gpt: return 1 directly when test the mbr sector"
always treats partition type as GPT, the error message is always printed
which may make developers miss understand.
Change-Id: I8be6cf5027ff4b61549b83132492d41d2b352ecd
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Find the first useful block in the end, and it is the end of
the nand storage.
Change-Id: I83203cbd764b2a6a6baa69694407f75339f176d5
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Remove the config about SDRAM_COMMON_CAP_DETECT,SDRAM_COMMON_OSREG,
SDRAM_COMMON_MSCH_RK3399 and SDRAM_COMMON_MSCH_PX30.
Change-Id: I17f2bdae585454a1d869ae9d967843d1d169381f
Signed-off-by: YouMin Chen <cym@rock-chips.com>
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>