blob: 806302bc610801a8bb892f8315df287929312d56 [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 Bansald31bb3e2015-07-31 14:10:03 +053011#define CONFIG_CMD_ESBC_VALIDATE
12#define CONFIG_FSL_SEC_MON
13#define CONFIG_SHA_PROG_HW_ACCEL
Aneesh Bansald31bb3e2015-07-31 14:10:03 +053014#define CONFIG_RSA
15#define CONFIG_RSA_FREESCALE_EXP
Aneesh Bansalb3e98202015-12-08 13:54:29 +053016
Aneesh Bansald31bb3e2015-07-31 14:10:03 +053017#ifndef CONFIG_FSL_CAAM
18#define CONFIG_FSL_CAAM
19#endif
20
Aneesh Bansalb3e98202015-12-08 13:54:29 +053021#ifndef CONFIG_DM
22#define CONFIG_DM
23#endif
24
Aneesh Bansald31bb3e2015-07-31 14:10:03 +053025#define CONFIG_KEY_REVOCATION
26#ifndef CONFIG_SYS_RAMBOOT
27/* The key used for verification of next level images
28 * is picked up from an Extension Table which has
29 * been verified by the ISBC (Internal Secure boot Code)
30 * in boot ROM of the SoC.
31 * The feature is only applicable in case of NOR boot and is
32 * not applicable in case of RAMBOOT (NAND, SD, SPI).
33 */
34#define CONFIG_FSL_ISBC_KEY_EXT
35#endif
36
gaurav ranaf79323c2015-03-10 14:08:50 +053037#ifndef CONFIG_FIT_SIGNATURE
38
39#define CONFIG_EXTRA_ENV \
40 "setenv fdt_high 0xcfffffff;" \
41 "setenv initrd_high 0xcfffffff;" \
42 "setenv hwconfig \'fsl_ddr:ctlr_intlv=null,bank_intlv=null\';"
43
44/* The address needs to be modified according to NOR memory map */
45#define CONFIG_BOOTSCRIPT_HDR_ADDR 0x600a0000
46
47#include <config_fsl_secboot.h>
48#endif
49#endif
50
51#endif