2015-03-10 08:38:50 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2015 Freescale Semiconductor, Inc.
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __FSL_SECURE_BOOT_H
|
|
|
|
#define __FSL_SECURE_BOOT_H
|
|
|
|
|
|
|
|
#ifdef CONFIG_SECURE_BOOT
|
2015-07-31 08:40:03 +00:00
|
|
|
#define CONFIG_CMD_ESBC_VALIDATE
|
|
|
|
#define CONFIG_FSL_SEC_MON
|
|
|
|
#define CONFIG_SHA_PROG_HW_ACCEL
|
|
|
|
#define CONFIG_RSA
|
|
|
|
#define CONFIG_RSA_FREESCALE_EXP
|
2015-12-08 08:24:29 +00:00
|
|
|
|
2015-07-31 08:40:03 +00:00
|
|
|
#ifndef CONFIG_FSL_CAAM
|
|
|
|
#define CONFIG_FSL_CAAM
|
|
|
|
#endif
|
|
|
|
|
2015-12-08 08:24:29 +00:00
|
|
|
#ifndef CONFIG_DM
|
|
|
|
#define CONFIG_DM
|
|
|
|
#endif
|
|
|
|
|
2015-07-31 08:40:03 +00:00
|
|
|
#define CONFIG_KEY_REVOCATION
|
|
|
|
#ifndef CONFIG_SYS_RAMBOOT
|
|
|
|
/* The key used for verification of next level images
|
|
|
|
* is picked up from an Extension Table which has
|
|
|
|
* been verified by the ISBC (Internal Secure boot Code)
|
|
|
|
* in boot ROM of the SoC.
|
|
|
|
* The feature is only applicable in case of NOR boot and is
|
|
|
|
* not applicable in case of RAMBOOT (NAND, SD, SPI).
|
|
|
|
*/
|
|
|
|
#define CONFIG_FSL_ISBC_KEY_EXT
|
|
|
|
#endif
|
|
|
|
|
2016-01-22 11:07:22 +00:00
|
|
|
#ifdef CONFIG_LS1043A
|
|
|
|
/* For LS1043 (ARMv8), ESBC image Address in Header is 64 bit */
|
|
|
|
#define CONFIG_ESBC_ADDR_64BIT
|
|
|
|
#endif
|
|
|
|
|
2015-03-10 08:38:50 +00:00
|
|
|
#ifndef CONFIG_FIT_SIGNATURE
|
|
|
|
|
|
|
|
#define CONFIG_EXTRA_ENV \
|
|
|
|
"setenv fdt_high 0xcfffffff;" \
|
|
|
|
"setenv initrd_high 0xcfffffff;" \
|
|
|
|
"setenv hwconfig \'fsl_ddr:ctlr_intlv=null,bank_intlv=null\';"
|
|
|
|
|
|
|
|
/* The address needs to be modified according to NOR memory map */
|
|
|
|
#define CONFIG_BOOTSCRIPT_HDR_ADDR 0x600a0000
|
|
|
|
|
|
|
|
#include <config_fsl_secboot.h>
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|