gaurav rana | f79323c | 2015-03-10 14:08:50 +0530 | [diff] [blame] | 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 |
Aneesh Bansal | 4310470 | 2016-01-22 16:37:24 +0530 | [diff] [blame] | 11 | |
| 12 | #ifndef CONFIG_FIT_SIGNATURE |
| 13 | #define CONFIG_CHAIN_OF_TRUST |
| 14 | #endif |
| 15 | |
| 16 | #endif |
| 17 | |
| 18 | #ifdef CONFIG_CHAIN_OF_TRUST |
Aneesh Bansal | d31bb3e | 2015-07-31 14:10:03 +0530 | [diff] [blame] | 19 | #define CONFIG_CMD_ESBC_VALIDATE |
Aneesh Bansal | 3322e21 | 2016-01-22 16:37:23 +0530 | [diff] [blame] | 20 | #define CONFIG_CMD_BLOB |
Aneesh Bansal | d31bb3e | 2015-07-31 14:10:03 +0530 | [diff] [blame] | 21 | #define CONFIG_FSL_SEC_MON |
| 22 | #define CONFIG_SHA_PROG_HW_ACCEL |
Aneesh Bansal | d31bb3e | 2015-07-31 14:10:03 +0530 | [diff] [blame] | 23 | #define CONFIG_RSA_FREESCALE_EXP |
Aneesh Bansal | b3e9820 | 2015-12-08 13:54:29 +0530 | [diff] [blame] | 24 | |
Aneesh Bansal | d31bb3e | 2015-07-31 14:10:03 +0530 | [diff] [blame] | 25 | #ifndef CONFIG_FSL_CAAM |
| 26 | #define CONFIG_FSL_CAAM |
| 27 | #endif |
| 28 | |
| 29 | #define CONFIG_KEY_REVOCATION |
| 30 | #ifndef CONFIG_SYS_RAMBOOT |
| 31 | /* The key used for verification of next level images |
| 32 | * is picked up from an Extension Table which has |
| 33 | * been verified by the ISBC (Internal Secure boot Code) |
| 34 | * in boot ROM of the SoC. |
| 35 | * The feature is only applicable in case of NOR boot and is |
| 36 | * not applicable in case of RAMBOOT (NAND, SD, SPI). |
| 37 | */ |
Saksham Jain | 6121f08 | 2016-03-23 16:24:34 +0530 | [diff] [blame^] | 38 | #ifndef CONFIG_ESBC_HDR_LS |
| 39 | /* Current Key EXT feature not available in LS ESBC Header */ |
Aneesh Bansal | d31bb3e | 2015-07-31 14:10:03 +0530 | [diff] [blame] | 40 | #define CONFIG_FSL_ISBC_KEY_EXT |
| 41 | #endif |
| 42 | |
Saksham Jain | 6121f08 | 2016-03-23 16:24:34 +0530 | [diff] [blame^] | 43 | #endif |
| 44 | |
Aneesh Bansal | 962021a | 2016-01-22 16:37:22 +0530 | [diff] [blame] | 45 | #ifdef CONFIG_LS1043A |
| 46 | /* For LS1043 (ARMv8), ESBC image Address in Header is 64 bit */ |
| 47 | #define CONFIG_ESBC_ADDR_64BIT |
| 48 | #endif |
| 49 | |
gaurav rana | f79323c | 2015-03-10 14:08:50 +0530 | [diff] [blame] | 50 | #define CONFIG_EXTRA_ENV \ |
| 51 | "setenv fdt_high 0xcfffffff;" \ |
| 52 | "setenv initrd_high 0xcfffffff;" \ |
| 53 | "setenv hwconfig \'fsl_ddr:ctlr_intlv=null,bank_intlv=null\';" |
| 54 | |
| 55 | /* The address needs to be modified according to NOR memory map */ |
| 56 | #define CONFIG_BOOTSCRIPT_HDR_ADDR 0x600a0000 |
| 57 | |
Aneesh Bansal | 4310470 | 2016-01-22 16:37:24 +0530 | [diff] [blame] | 58 | #include <config_fsl_chain_trust.h> |
| 59 | #endif /* #ifdef CONFIG_CHAIN_OF_TRUST */ |
gaurav rana | f79323c | 2015-03-10 14:08:50 +0530 | [diff] [blame] | 60 | #endif |