blob: 0da05997386009eab33c9d2a82c7cdf81efd8277 [file] [log] [blame]
gaurav ranaf79323c2015-03-10 14:08:50 +05301/*
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
Aneesh Bansal43104702016-01-22 16:37:24 +053011
12#ifndef CONFIG_FIT_SIGNATURE
13#define CONFIG_CHAIN_OF_TRUST
14#endif
15
16#endif
17
18#ifdef CONFIG_CHAIN_OF_TRUST
Aneesh Bansald31bb3e2015-07-31 14:10:03 +053019#define CONFIG_CMD_ESBC_VALIDATE
Aneesh Bansal3322e212016-01-22 16:37:23 +053020#define CONFIG_CMD_BLOB
Aneesh Bansald31bb3e2015-07-31 14:10:03 +053021#define CONFIG_FSL_SEC_MON
22#define CONFIG_SHA_PROG_HW_ACCEL
Aneesh Bansald31bb3e2015-07-31 14:10:03 +053023#define CONFIG_RSA
24#define CONFIG_RSA_FREESCALE_EXP
Aneesh Bansalb3e98202015-12-08 13:54:29 +053025
Aneesh Bansald31bb3e2015-07-31 14:10:03 +053026#ifndef CONFIG_FSL_CAAM
27#define CONFIG_FSL_CAAM
28#endif
29
Aneesh Bansalb3e98202015-12-08 13:54:29 +053030#ifndef CONFIG_DM
31#define CONFIG_DM
32#endif
33
Aneesh Bansald31bb3e2015-07-31 14:10:03 +053034#define CONFIG_KEY_REVOCATION
35#ifndef CONFIG_SYS_RAMBOOT
36/* The key used for verification of next level images
37 * is picked up from an Extension Table which has
38 * been verified by the ISBC (Internal Secure boot Code)
39 * in boot ROM of the SoC.
40 * The feature is only applicable in case of NOR boot and is
41 * not applicable in case of RAMBOOT (NAND, SD, SPI).
42 */
43#define CONFIG_FSL_ISBC_KEY_EXT
44#endif
45
Aneesh Bansal962021a2016-01-22 16:37:22 +053046#ifdef CONFIG_LS1043A
47/* For LS1043 (ARMv8), ESBC image Address in Header is 64 bit */
48#define CONFIG_ESBC_ADDR_64BIT
49#endif
50
gaurav ranaf79323c2015-03-10 14:08:50 +053051#define CONFIG_EXTRA_ENV \
52 "setenv fdt_high 0xcfffffff;" \
53 "setenv initrd_high 0xcfffffff;" \
54 "setenv hwconfig \'fsl_ddr:ctlr_intlv=null,bank_intlv=null\';"
55
56/* The address needs to be modified according to NOR memory map */
57#define CONFIG_BOOTSCRIPT_HDR_ADDR 0x600a0000
58
Aneesh Bansal43104702016-01-22 16:37:24 +053059#include <config_fsl_chain_trust.h>
60#endif /* #ifdef CONFIG_CHAIN_OF_TRUST */
gaurav ranaf79323c2015-03-10 14:08:50 +053061#endif