xref: /rk3399_rockchip-uboot/arch/arm/include/asm/fsl_secure_boot.h (revision fd6dbc98a73207ff961f1f83ea833654d98354c3)
198cb0efdSgaurav rana /*
298cb0efdSgaurav rana  * Copyright 2015 Freescale Semiconductor, Inc.
398cb0efdSgaurav rana  *
498cb0efdSgaurav rana  * SPDX-License-Identifier:	GPL-2.0+
598cb0efdSgaurav rana  */
698cb0efdSgaurav rana 
798cb0efdSgaurav rana #ifndef __FSL_SECURE_BOOT_H
898cb0efdSgaurav rana #define __FSL_SECURE_BOOT_H
998cb0efdSgaurav rana 
1098cb0efdSgaurav rana #ifdef CONFIG_SECURE_BOOT
11bdc22074SAneesh Bansal 
12bdc22074SAneesh Bansal #ifndef CONFIG_FIT_SIGNATURE
13bdc22074SAneesh Bansal #define CONFIG_CHAIN_OF_TRUST
14bdc22074SAneesh Bansal #endif
15bdc22074SAneesh Bansal 
16bdc22074SAneesh Bansal #endif
17bdc22074SAneesh Bansal 
18bdc22074SAneesh Bansal #ifdef CONFIG_CHAIN_OF_TRUST
192ed948f4SAneesh Bansal #define CONFIG_CMD_ESBC_VALIDATE
2074eecd82SAneesh Bansal #define CONFIG_CMD_BLOB
212ed948f4SAneesh Bansal #define CONFIG_FSL_SEC_MON
222ed948f4SAneesh Bansal #define CONFIG_SHA_PROG_HW_ACCEL
232ed948f4SAneesh Bansal #define CONFIG_RSA_FREESCALE_EXP
249711f528SAneesh Bansal 
252ed948f4SAneesh Bansal #ifndef CONFIG_FSL_CAAM
262ed948f4SAneesh Bansal #define CONFIG_FSL_CAAM
272ed948f4SAneesh Bansal #endif
282ed948f4SAneesh Bansal 
292ed948f4SAneesh Bansal #define CONFIG_KEY_REVOCATION
302ed948f4SAneesh Bansal #ifndef CONFIG_SYS_RAMBOOT
312ed948f4SAneesh Bansal /* The key used for verification of next level images
322ed948f4SAneesh Bansal  * is picked up from an Extension Table which has
332ed948f4SAneesh Bansal  * been verified by the ISBC (Internal Secure boot Code)
342ed948f4SAneesh Bansal  * in boot ROM of the SoC.
352ed948f4SAneesh Bansal  * The feature is only applicable in case of NOR boot and is
362ed948f4SAneesh Bansal  * not applicable in case of RAMBOOT (NAND, SD, SPI).
372ed948f4SAneesh Bansal  */
38*fd6dbc98SSaksham Jain #ifndef CONFIG_ESBC_HDR_LS
39*fd6dbc98SSaksham Jain /* Current Key EXT feature not available in LS ESBC Header */
402ed948f4SAneesh Bansal #define CONFIG_FSL_ISBC_KEY_EXT
412ed948f4SAneesh Bansal #endif
422ed948f4SAneesh Bansal 
43*fd6dbc98SSaksham Jain #endif
44*fd6dbc98SSaksham Jain 
45ef6c55a2SAneesh Bansal #ifdef CONFIG_LS1043A
46ef6c55a2SAneesh Bansal /* For LS1043 (ARMv8), ESBC image Address in Header is 64 bit */
47ef6c55a2SAneesh Bansal #define CONFIG_ESBC_ADDR_64BIT
48ef6c55a2SAneesh Bansal #endif
49ef6c55a2SAneesh Bansal 
5098cb0efdSgaurav rana #define CONFIG_EXTRA_ENV \
5198cb0efdSgaurav rana 	"setenv fdt_high 0xcfffffff;"	\
5298cb0efdSgaurav rana 	"setenv initrd_high 0xcfffffff;"	\
5398cb0efdSgaurav rana 	"setenv hwconfig \'fsl_ddr:ctlr_intlv=null,bank_intlv=null\';"
5498cb0efdSgaurav rana 
5598cb0efdSgaurav rana /* The address needs to be modified according to NOR memory map */
5698cb0efdSgaurav rana #define CONFIG_BOOTSCRIPT_HDR_ADDR	0x600a0000
5798cb0efdSgaurav rana 
58bdc22074SAneesh Bansal #include <config_fsl_chain_trust.h>
59bdc22074SAneesh Bansal #endif /* #ifdef CONFIG_CHAIN_OF_TRUST */
6098cb0efdSgaurav rana #endif
61