Since AVB use sysmem alloc, we can decrease malloc size.
Change-Id: I1c81f13946b3f8e74b2400f9d12be882e4387b38
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Since AVB use sysmem alloc, we can decrease malloc size.
Change-Id: Ie863ed0627dd8604c8dbc8b59ed8f4197c68bc93
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Since AVB use sysmem alloc, we can decrease malloc size.
Change-Id: Ic5a2df1fbfec0e6d94f9904042db8961aa0abf4d
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Since AVB use sysmem alloc, we can decrease malloc size.
Change-Id: If806c7736ada2852931f8e06d137658d8cf3c0db
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Since AVB use sysmem alloc, we can decrease malloc size.
Change-Id: If88b142a81f5cd28f333b9dc901e70619b9ce12b
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Since AVB use sysmem alloc, we can decrease malloc size.
Change-Id: I627ceab0440a1655524904a8c4b11905bcdc830d
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
- mkbootimg tool always use SHA1 for images;
- make the the crypto higher priority;
- AVB images does not need this verify;
Change-Id: I543a3a53da61b920b83ba464a71959518437c436
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This is a encapsulation of android_image_load_separate(). It is used
for AVB boot/recovery.img which has been loaded to ram by AVB bootflow,
and we memcpy kernel/ramdisk/dtb to where we expect.
Change-Id: Iea4ea3404b84e9d3c091954ab27fb8c9d2ad84bc
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
If the seconds position is not a resource file, maybe it's a
dtb file.
Change-Id: I819cb0ff9c702c306000bf30fb47891009e4ff32
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Or else system hang with:
"Calloc ddr memory failed"
Change-Id: I9e01b81a5ea6940a6bf05a58bbcbea38504ba195
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Add pmic node so that the fireprime can enable the current limit at
board_early_init().
Change-Id: I64b308b47b437feb19acd8521f37687a4463186c
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Since mtd_read() can not skip bad block if meet bad block, so use
nand_read_skip_bad().
Change-Id: Ic2364b7f29de193412353fad36c86dc6e289e02d
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Use the BOOT_DEVICE_MTD_BLK_XXX boot mode if the nand & spi nand & spi
nor driver are appended to MTD device.
New boot mode:
BOOT_DEVICE_MTD_BLK_NAND
BOOT_DEVICE_MTD_BLK_SPI_NAND
BOOT_DEVICE_MTD_BLK_SPI_NOR
Change-Id: I27a63791455073ccdcb80c16bac4dfb635da07de
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
- BOOTM_STATE_OS_PREP: before fdt fixup and DM works normally;
- BOOTM_STATE_OS_GO: before jump to linux and DM can't work normally;
Change-Id: Ic377a426970acd4f600f654a4efd4bdde38c3a89
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
- This makes arch_preboot_os() more flexsible;
- call arch_preboot_os() when BOOTM_STATE_OS_PREP;
Change-Id: Ia4ae3666b8180c993c761ef222acbcff5358ae97
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Remove atags test function, we don't need it any more since
we have applied atags to so many platforms and it works well.
Change-Id: Ideecdfb34141f848b81ef5441b61be54f72708ff
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
evb-px5 has only 1 CS, update for it.
Change-Id: I5393d21c88d44457a590cb31df31eb59d20bbf02
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Tested-by: Andy Yan <andy.yan@rock-chips.com>
mmc dma can only access dram area, use DRAM base and
max size to make it work for all socs.
Change-Id: I6d65285c7e441b1c454460ad6897fcfd83fade45
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
The phy phandle in usb node should be port instead of phy, or else the phy
driver not able to find the ops and abort at generic_phy_get_by_index().
Change-Id: I79161dc252cfa9e57b34290fb94d926476a3035d
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
We add secure_conf_base & otp_mask_base to platdata to operate
the secure OTP.
Change-Id: Ie336b2cf61076aa82f7c1987cc3cec7166751452
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
free() is using pointer while sysmem_free() is not using pointer,
so they can not use the same parameter.
Change-Id: Ib68319bda2ba1a400f2436e21d5864a0e2511fad
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
1. add default dhcp cmd for test
2. fix the argc(has -1 in test-rockchip)
3. fix return value for FAIL case(return value is '1').
Change-Id: If55a3a8d29240be98febbf4649a23964a74452b6
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Not test display and misc for upstream U-Boot, replace local APIs with
upstream APIs.
Use CONFIG_RKIMG_BOOTLOADER to identify the rockchip local U-Boot.
Change-Id: I65b69eca8262d8aa0cb621c90d4ff1f2756368ba
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Use module Macro for APIs from different module.
Change-Id: I765150f21bc9118e5ad0e661bb2b4ae12af77342
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Relate to commit 46a8a26905
("fastboot: add RK_AVB_LIBAVB_ENABLE_ATH_UNLOCK config")
Export config can help us select it easily.
Change-Id: I43a210f1efb35ff679102c8686cbca219d2def97
Signed-off-by: zain wang <wzz@rock-chips.com>
We only support FIT and rockchip image in SPL.
Change-Id: Ib96cb86c2df40d554bbaf0534127f565d1f857fc
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
We only support FIT and rockchip image in SPL.
Change-Id: I6a599367f8c63de844a58e6b53ef684bf8e3c3e0
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
We only support FIT and rockchip image in SPL.
Change-Id: I1b9a5542a23b54f53a48d3ead77cc78dbf862de6
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
We only support FIT and rockchip image in SPL.
Change-Id: Ic2760b1ad237234fe13d11da6f220301a5610e34
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
We only support FIT and rockchip image in SPL.
Change-Id: Id994fa60f04bdd278d5e4e723ec03626d47037a5
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
We only support FIT and rockchip image in SPL.
Change-Id: I2f51574d8a664909db84d0a013c7a1650038db6a
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>