diff options
author | Haixiang Bao <haixiang.bao@amlogic.com> | 2018-12-19 20:52:01 +0800 |
---|---|---|
committer | Dongjin Kim <tobetter@gmail.com> | 2019-03-05 23:25:59 +0900 |
commit | ebf62f265f0928c0cebca3f78c4cb5aa8ef138c6 (patch) | |
tree | 517d608f5d6308aea3b8256dd21236de881fb4c8 /common/cmd_bootm.c | |
parent | 6864574e3cbfc9e92b99814e3044b516d7e5e395 (diff) | |
download | u-boot-odroid-c1-ebf62f265f0928c0cebca3f78c4cb5aa8ef138c6.tar.gz |
BL33: EFUSE: use EFUSE_LICX for Riscure review [1/1]
PD#SWPL-3175
Problem:
Riscure code review report EFUSE license should use EFUSE_LICx but not
AO_SEC_SD_CFG10/9 any more
Solution:
For G12A/G12B/TL1... which have EFUSE_LICx will use them instead
of AO_SEC_SD_CFG10/9
EFUSE_LIC0/1/2/3 -> AO_SEC_SD_CFG10/9
Verify:
axg/g12a/g12b/gxb/gxl/gxtvbb/tl1/txhd/txl/txlx skt board verify on the way
Change-Id: I13979aecf4e6e58f6d3469b110b500bc83d18e25
Signed-off-by: Haixiang Bao <haixiang.bao@amlogic.com>
Diffstat (limited to 'common/cmd_bootm.c')
-rw-r--r-- | common/cmd_bootm.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c index 6367002014..1707347a1c 100644 --- a/common/cmd_bootm.c +++ b/common/cmd_bootm.c @@ -29,6 +29,8 @@ #endif #include <asm/arch/secure_apb.h> +#include <amlogic/aml_efuse.h> + DECLARE_GLOBAL_DATA_PTR; #if defined(CONFIG_CMD_IMI) @@ -94,12 +96,6 @@ static int do_bootm_subcommand(cmd_tbl_t *cmdtp, int flag, int argc, return ret; } -static int is_secure_boot_enabled(void) -{ - const unsigned long cfg10 = readl(AO_SEC_SD_CFG10); - return ( cfg10 & (0x1<< 4) ); -} - /*******************************************************************/ /* bootm - boot application image from image in memory */ /*******************************************************************/ @@ -258,7 +254,7 @@ int do_bootm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) #endif #endif//#ifndef CONFIG_AML_SIGNED_UBOOT - if (is_secure_boot_enabled()) + if (IS_FEAT_BOOT_VERIFY()) { /* Override load address argument to skip secure boot header (512). * Only skip if secure boot so normal boot can use plain boot.img+ */ |