Not only does dw-hdmi use these functions, but others
need to use them, such as inno-hdmi.
Change-Id: I1ced6e30b7634511fecbbfb39c24ede78894dd1d
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Call panic() here since there is not a return value
accepted in the top caller.
Reading rollback index failed is already not allowed.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ic5235f01dc7e9791d8ebe546724078dbab91f993
support vendor storage with mtd devices, the mtd partition
name is "vnvm".
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I6a895140df8ba12ef093acf9805f44bb436f7b29
Use new args mechanism to call fit generator script.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ifc74852d5de1b76ea103981e7a71c3cb5e12a961
- Call make_fit_args.sh script to process all args.
- Clean up code.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Icfa04c4fc2ab4f64dfd389f71309776d924e9ebd
It's common for all rockchip platform to make its file.
Process args for all rockchip fit generator script, and
providing variables for it's caller.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: If9d741d16e397234d265f4ae32739514bfd7a5d1
The high speed spi nor's max frequency is about 133MHz and the
IO interface rate is about 100MHz, so enlarge spi-max-frequency
to 100MHz.
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I9ef7e459dece5e70eefd72024264a94a672636d1
None-zero gd->rollback_index value should be written into
trusty.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ib964c5883e5083a3f9828415ee05819960d20139
Implement __weak functions in this file.
Move fit_board_verify_required_sigs() to here.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I4d748f7bfe4cbc9a8f2f96f30978d3e64b73b9aa
Being convenient for other functions to be called.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ibfa3f30a50befa8773cc8729a5359f7a36e8180d
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>