blob: a4f4961fc877b32b49fde7e40a461910576872c4 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
gaurav ranaf79323c2015-03-10 14:08:50 +05302/*
3 * Copyright 2015 Freescale Semiconductor, Inc.
Sumit Garg666bbd02017-08-16 07:13:28 -04004 * Copyright 2017 NXP
gaurav ranaf79323c2015-03-10 14:08:50 +05305 */
6
7#ifndef __FSL_SECURE_BOOT_H
8#define __FSL_SECURE_BOOT_H
9
Aneesh Bansal43104702016-01-22 16:37:24 +053010#ifdef CONFIG_CHAIN_OF_TRUST
Sumit Gargbdddd6e2016-06-14 13:52:38 -040011#ifndef CONFIG_SPL_BUILD
Aneesh Bansald31bb3e2015-07-31 14:10:03 +053012#ifndef CONFIG_SYS_RAMBOOT
13/* The key used for verification of next level images
14 * is picked up from an Extension Table which has
15 * been verified by the ISBC (Internal Secure boot Code)
16 * in boot ROM of the SoC.
17 * The feature is only applicable in case of NOR boot and is
18 * not applicable in case of RAMBOOT (NAND, SD, SPI).
Udit Agarwal990a9972017-02-09 21:36:11 +053019 * For LS, this feature is available for all device if IE Table
20 * is copied to XIP memory
21 * Also, for LS, ISBC doesn't verify this table.
Aneesh Bansald31bb3e2015-07-31 14:10:03 +053022 */
23#define CONFIG_FSL_ISBC_KEY_EXT
Aneesh Bansald31bb3e2015-07-31 14:10:03 +053024
Saksham Jain6121f082016-03-23 16:24:34 +053025#endif
26
Sumit Garge0f9e9b2016-09-01 12:56:44 -040027#ifdef CONFIG_FSL_LS_PPA
Sumit Garge0f9e9b2016-09-01 12:56:44 -040028/* Define the key hash here if SRK used for signing PPA image is
29 * different from SRK hash put in SFP used for U-Boot.
30 * Example
Vinitha Pillai-B57223a4b3ded2017-03-23 13:48:14 +053031 * #define PPA_KEY_HASH \
Sumit Garge0f9e9b2016-09-01 12:56:44 -040032 * "41066b564c6ffcef40ccbc1e0a5d0d519604000c785d97bbefd25e4d288d1c8b"
33 */
Vinitha Pillai-B57223a4b3ded2017-03-23 13:48:14 +053034#define PPA_KEY_HASH NULL
Sumit Garge0f9e9b2016-09-01 12:56:44 -040035#endif /* ifdef CONFIG_FSL_LS_PPA */
36
Sumit Gargbdddd6e2016-06-14 13:52:38 -040037#endif /* #ifndef CONFIG_SPL_BUILD */
Aneesh Bansal43104702016-01-22 16:37:24 +053038#endif /* #ifdef CONFIG_CHAIN_OF_TRUST */
gaurav ranaf79323c2015-03-10 14:08:50 +053039#endif