This reverts commit 359ed52cc2.
This early return causes variable "image_info" not initialized.
spl_load_fit_image() should return 0 only at the end.
Change-Id: I7dba24826758763e6e4da56579546cb50b9cb984
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Without this patch, only ARMv8 and AArch32 support assign
image size.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I7d15d366251328ac2283172ef6f3a173298d451b
1.use get_rkss_version function to get rkss version,
if security partition have data with rkss version 1, then
we choice rkss version 1, if security partition is empty,
then we choice rkss version 2
2.rkss version 2 support dual backup mechanism,
security partition total use 1M
3.rkss version 2 R&W 256k data one time
Change-Id: I2f17b22d6a442df84be0d94a808b03465dc6fefe
Signed-off-by: Hisping Lin <hisping.lin@rock-chips.com>
1.use get_rkss_version function to get rkss version,
if security partition have data with rkss version 1, then
we choice rkss version 1, if security partition is empty,
then we choice rkss version 2
2.rkss version 2 support dual backup mechanism,
security partition total use 1M
3.rkss version 2 R&W 256k data one time
Change-Id: I4103b6600666dffccf473ec4ed8854776a46da31
Signed-off-by: Hisping Lin <hisping.lin@rock-chips.com>
It's not a standard and nice interface, remove it.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ib918c4759fa5e01393c36eccd5673b8ca754ef35
Being convenient for other functions to be called.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I1a02a150cf66ccf3dfc4be3621ad62829c3e6eb5
Use CONFIG_ROCKCHIP_TPL_INIT_DRAM_TYPE to select dram type.
Use the same define with arch/arm/include/asm/arch-rockchip/sdram.h (0 for
DDR4, 2 for DDR2, 3 for DDR3, 5 for LPDDR2, 6 for LPDDR3, 7 for LPDDR4).
Change-Id: I982db49c1881f6975afd4ba48f88ee3dd9286d3e
Signed-off-by: Tang Yun ping <typ@rock-chips.com>
If some child info->prefix are the same, try to
distinguish them by parent addr.
Example:
pmic@20, pmic@1a...
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I504cd887e232bb309d8e1790f6d55910172d08b5
If CONFIG_ROCKCHIP_THUNDER_BOOT=y, it will enable ddr fast boot.
Change-Id: Ia43039dd1247ebb937aaa8b6d9a9103df2dfe1f5
Signed-off-by: Tang Yun ping <typ@rock-chips.com>
According to the description of GRF_IO_VSEL, the voltage of
VCCIO6(which is the concern of emmc/flash/sfc controller) will
indicate by GPIO0_B6 or io_vsel6. The SOC defaults use GPIO0_B6
to indicate power supply voltage for VCCIO6 by hardware, then
we can switch to io_vsel6 after system power on, and release
GPIO0_B6 for other usage.
Change-Id: I9c8339e357a7328d9ffeb711ba5d0bdd41971101
Signed-off-by: Liang Chen <cl@rock-chips.com>
This defconfig provides a template to generate a minimum u-boot.bin
for eMMC board with some basic features, developer can enable more
features base on it. If developer want to get a even smaller
u-boot.bin, try to drop them accordding to board requirement:
- Remove Power(about 15KB):
# CONFIG_DM_PMIC is not set
# CONFIG_DM_REGULATOR is not set
# CONFIG_DM_REGULATOR_FIXED is not set
# CONFIG_DM_PWM is not set
# CONFIG_DM_I2C is not set
- Remove USB(about 55KB):
# CONFIG_USB is not set
# CONFIG_PHY_ROCKCHIP_NANENG_USB2 is not set
- The USB is not available and U-Boot fallbacks to bootrom download
mode by menu key pressed.
- Remove Command-interface(about 33KB):
# CONFIG_CMDLINE is not set
CONFIG_U_BOOT_CMD_ALWAYS=y
- Only the command with U_BOOT_CMD_ALWAYS() delcared is available.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I2ec124bc1014ed3627aec3e7b5f6545d2670eff4
The propery is brought by CONFIG_OF_U_BOOT_REMOVE_PROPS
required from GMAC.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ib85ec0678a0a0404eb4cda5974c52076bf0a1e37
It's possible that USB is disabled due to developer needs
a critial size of u-boot.bin.
Disabling USB makes vbus can't be detected any more, so that
we add menu key and the events trigger are changed:
- rockusb mode(fallback to bootrom mode):
"recovery key pressed + vbus=1" => "menu key pressed"
- recovery mode:
"recovery key pressed + vbus=0" => "recovery key pressed"
At the most time, USB is enabled and this feature is not applied.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I9da8f17987742cea3267dbb35ee88d57a00c578a
1.add DECOM_AXI_STAT to test decompress whether is in idle
2.correct the misc_decompress_is_complete return value
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Signed-off-by: Simon Xue <xxm@rock-chips.com>
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I904d9909ade709fb479893325dd6c0b3d47d5908
vop full need to do rb swap when deal with rgb888/bgr888;
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I60fac72b21720fcf4f406c56fe7d9dc21ebf7635
They are basic commands even in critical cost down version
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I0ad56056133226c25cbcfb70e54d519eb7582341
Rename CONSOLE_SERIAL_SKIP_INIT to DEBUG_UART_ALWAYS_MODE for
easy understand.
Select this to always use debug UART, skip complicated
console UART register.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I3c265840bde015fe5fd7c73d959ba0538297b7c2
Some configurations was changed, let's update defconfig.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I70c977a7e2256732f9e6e1c68bf3f469366fbf71
This function prepares to read data without confirming completed.
We can use it to prefetch data and run other process.
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I76116c25dfdb7559b80a0216c414189e85409a3e
1.support GPT partition
2.support a/b system
3.enlarge the CONFIG_SYS_MALLOC_F_LEN for GPT partition
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I8ff0c0327c3f9e5ab68dc1b405503dcfc70ee0ec
1.Check map table block address overflow
2.Reinit map table original value
Change-Id: I4450b5a6856e38e2624da9db31d5eb98de7f5696
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
command: ./make.sh --no-uboot.
Providing empty file for mcu or U-Boot image if it's
not required.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I48650f6cc0bbcc9ed111fee0354ccafe4f6c1773
"--uboot" => "--uboot-itb";
"--boot" => "--boot-itb".
In order to distinguish with "--no-uboot".
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I4d1e1a3f88619fb728165764af52ca58665a5e89