2 * Copyright 2015 Freescale Semiconductor, Inc.
4 * SPDX-License-Identifier: GPL-2.0+
7 #ifndef __FSL_SECURE_BOOT_H
8 #define __FSL_SECURE_BOOT_H
10 #ifdef CONFIG_SECURE_BOOT
11 #define CONFIG_CMD_ESBC_VALIDATE
12 #define CONFIG_FSL_SEC_MON
13 #define CONFIG_SHA_PROG_HW_ACCEL
16 #define CONFIG_RSA_FREESCALE_EXP
17 #ifndef CONFIG_FSL_CAAM
18 #define CONFIG_FSL_CAAM
21 #define CONFIG_KEY_REVOCATION
22 #ifndef CONFIG_SYS_RAMBOOT
23 /* The key used for verification of next level images
24 * is picked up from an Extension Table which has
25 * been verified by the ISBC (Internal Secure boot Code)
26 * in boot ROM of the SoC.
27 * The feature is only applicable in case of NOR boot and is
28 * not applicable in case of RAMBOOT (NAND, SD, SPI).
30 #define CONFIG_FSL_ISBC_KEY_EXT
33 #ifndef CONFIG_FIT_SIGNATURE
35 #define CONFIG_EXTRA_ENV \
36 "setenv fdt_high 0xcfffffff;" \
37 "setenv initrd_high 0xcfffffff;" \
38 "setenv hwconfig \'fsl_ddr:ctlr_intlv=null,bank_intlv=null\';"
40 /* The address needs to be modified according to NOR memory map */
41 #define CONFIG_BOOTSCRIPT_HDR_ADDR 0x600a0000
43 #include <config_fsl_secboot.h>