1 /* 2 * Copyright 2015 Freescale Semiconductor, Inc. 3 * 4 * SPDX-License-Identifier: GPL-2.0+ 5 */ 6 7 #ifndef __FSL_SECURE_BOOT_H 8 #define __FSL_SECURE_BOOT_H 9 10 #ifdef CONFIG_SECURE_BOOT 11 #define CONFIG_CMD_ESBC_VALIDATE 12 #define CONFIG_CMD_BLOB 13 #define CONFIG_FSL_SEC_MON 14 #define CONFIG_SHA_PROG_HW_ACCEL 15 #define CONFIG_RSA 16 #define CONFIG_RSA_FREESCALE_EXP 17 18 #ifndef CONFIG_FSL_CAAM 19 #define CONFIG_FSL_CAAM 20 #endif 21 22 #ifndef CONFIG_DM 23 #define CONFIG_DM 24 #endif 25 26 #define CONFIG_KEY_REVOCATION 27 #ifndef CONFIG_SYS_RAMBOOT 28 /* The key used for verification of next level images 29 * is picked up from an Extension Table which has 30 * been verified by the ISBC (Internal Secure boot Code) 31 * in boot ROM of the SoC. 32 * The feature is only applicable in case of NOR boot and is 33 * not applicable in case of RAMBOOT (NAND, SD, SPI). 34 */ 35 #define CONFIG_FSL_ISBC_KEY_EXT 36 #endif 37 38 #ifdef CONFIG_LS1043A 39 /* For LS1043 (ARMv8), ESBC image Address in Header is 64 bit */ 40 #define CONFIG_ESBC_ADDR_64BIT 41 #endif 42 43 #ifndef CONFIG_FIT_SIGNATURE 44 45 #define CONFIG_EXTRA_ENV \ 46 "setenv fdt_high 0xcfffffff;" \ 47 "setenv initrd_high 0xcfffffff;" \ 48 "setenv hwconfig \'fsl_ddr:ctlr_intlv=null,bank_intlv=null\';" 49 50 /* The address needs to be modified according to NOR memory map */ 51 #define CONFIG_BOOTSCRIPT_HDR_ADDR 0x600a0000 52 53 #include <config_fsl_secboot.h> 54 #endif 55 #endif 56 57 #endif 58