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 112ed948f4SAneesh Bansal #define CONFIG_CMD_ESBC_VALIDATE 12*74eecd82SAneesh Bansal #define CONFIG_CMD_BLOB 132ed948f4SAneesh Bansal #define CONFIG_FSL_SEC_MON 142ed948f4SAneesh Bansal #define CONFIG_SHA_PROG_HW_ACCEL 152ed948f4SAneesh Bansal #define CONFIG_RSA 162ed948f4SAneesh Bansal #define CONFIG_RSA_FREESCALE_EXP 179711f528SAneesh Bansal 182ed948f4SAneesh Bansal #ifndef CONFIG_FSL_CAAM 192ed948f4SAneesh Bansal #define CONFIG_FSL_CAAM 202ed948f4SAneesh Bansal #endif 212ed948f4SAneesh Bansal 229711f528SAneesh Bansal #ifndef CONFIG_DM 239711f528SAneesh Bansal #define CONFIG_DM 249711f528SAneesh Bansal #endif 259711f528SAneesh Bansal 262ed948f4SAneesh Bansal #define CONFIG_KEY_REVOCATION 272ed948f4SAneesh Bansal #ifndef CONFIG_SYS_RAMBOOT 282ed948f4SAneesh Bansal /* The key used for verification of next level images 292ed948f4SAneesh Bansal * is picked up from an Extension Table which has 302ed948f4SAneesh Bansal * been verified by the ISBC (Internal Secure boot Code) 312ed948f4SAneesh Bansal * in boot ROM of the SoC. 322ed948f4SAneesh Bansal * The feature is only applicable in case of NOR boot and is 332ed948f4SAneesh Bansal * not applicable in case of RAMBOOT (NAND, SD, SPI). 342ed948f4SAneesh Bansal */ 352ed948f4SAneesh Bansal #define CONFIG_FSL_ISBC_KEY_EXT 362ed948f4SAneesh Bansal #endif 372ed948f4SAneesh Bansal 38ef6c55a2SAneesh Bansal #ifdef CONFIG_LS1043A 39ef6c55a2SAneesh Bansal /* For LS1043 (ARMv8), ESBC image Address in Header is 64 bit */ 40ef6c55a2SAneesh Bansal #define CONFIG_ESBC_ADDR_64BIT 41ef6c55a2SAneesh Bansal #endif 42ef6c55a2SAneesh Bansal 4398cb0efdSgaurav rana #ifndef CONFIG_FIT_SIGNATURE 4498cb0efdSgaurav rana 4598cb0efdSgaurav rana #define CONFIG_EXTRA_ENV \ 4698cb0efdSgaurav rana "setenv fdt_high 0xcfffffff;" \ 4798cb0efdSgaurav rana "setenv initrd_high 0xcfffffff;" \ 4898cb0efdSgaurav rana "setenv hwconfig \'fsl_ddr:ctlr_intlv=null,bank_intlv=null\';" 4998cb0efdSgaurav rana 5098cb0efdSgaurav rana /* The address needs to be modified according to NOR memory map */ 5198cb0efdSgaurav rana #define CONFIG_BOOTSCRIPT_HDR_ADDR 0x600a0000 5298cb0efdSgaurav rana 5398cb0efdSgaurav rana #include <config_fsl_secboot.h> 5498cb0efdSgaurav rana #endif 5598cb0efdSgaurav rana #endif 5698cb0efdSgaurav rana 5798cb0efdSgaurav rana #endif 58