blob: 49f6814383f1757d48db8935eb05c9e427bfa1cf [file] [log] [blame]
Ruchika Gupta7065b7d2010-12-15 17:02:08 +00001/*
2 * Copyright 2010-2011 Freescale Semiconductor, Inc.
3 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Ruchika Gupta7065b7d2010-12-15 17:02:08 +00005 */
6
7#ifndef __FSL_SECURE_BOOT_H
8#define __FSL_SECURE_BOOT_H
gaurav ranae04916a2015-02-27 09:46:17 +05309#include <asm/config_mpc85xx.h>
10
11#ifdef CONFIG_SECURE_BOOT
12#define CONFIG_CMD_ESBC_VALIDATE
13#define CONFIG_FSL_SEC_MON
14#define CONFIG_SHA_PROG_HW_ACCEL
15#define CONFIG_DM
16#define CONFIG_RSA
17#define CONFIG_RSA_FREESCALE_EXP
18#ifndef CONFIG_FSL_CAAM
19#define CONFIG_FSL_CAAM
20#endif
21#endif
Ruchika Gupta7065b7d2010-12-15 17:02:08 +000022
Po Liu0d2cff22013-08-21 14:20:21 +080023#ifdef CONFIG_SECURE_BOOT
Ruchika Gupta7065b7d2010-12-15 17:02:08 +000024#if defined(CONFIG_FSL_CORENET)
25#define CONFIG_SYS_PBI_FLASH_BASE 0xc0000000
Aneesh Bansalf978f7c2014-03-12 00:07:27 +053026#elif defined(CONFIG_BSC9132QDS)
27#define CONFIG_SYS_PBI_FLASH_BASE 0xc8000000
Aneesh Bansalb3f0f632014-12-12 15:35:04 +053028#elif defined(CONFIG_C29XPCIE)
29#define CONFIG_SYS_PBI_FLASH_BASE 0xcc000000
Ruchika Gupta7065b7d2010-12-15 17:02:08 +000030#else
31#define CONFIG_SYS_PBI_FLASH_BASE 0xce000000
32#endif
33#define CONFIG_SYS_PBI_FLASH_WINDOW 0xcff80000
34
Aneesh Bansalca4819d2014-03-18 23:40:59 +053035#if defined(CONFIG_B4860QDS) || \
36 defined(CONFIG_T4240QDS) || \
Aneesh Bansal2d8db6d2014-03-18 23:41:14 +053037 defined(CONFIG_T2080QDS) || \
Aneesh Bansale47c2a62014-04-22 15:17:06 +053038 defined(CONFIG_T2080RDB) || \
Aneesh Bansal2d8db6d2014-03-18 23:41:14 +053039 defined(CONFIG_T1040QDS) || \
Shengzhou Liuf6050792014-11-24 17:11:54 +080040 defined(CONFIG_T104xRDB) || \
41 defined(CONFIG_PPC_T1023) || \
42 defined(CONFIG_PPC_T1024)
Aneesh Bansalfb4a2402014-03-18 23:40:26 +053043#define CONFIG_SYS_CPC_REINIT_F
gaurav ranae04916a2015-02-27 09:46:17 +053044#define CONFIG_KEY_REVOCATION
Aneesh Bansalfb4a2402014-03-18 23:40:26 +053045#undef CONFIG_SYS_INIT_L3_ADDR
46#define CONFIG_SYS_INIT_L3_ADDR 0xbff00000
47#endif
48
gaurav ranae04916a2015-02-27 09:46:17 +053049#if defined(CONFIG_C29XPCIE)
50#define CONFIG_KEY_REVOCATION
51#endif
52
53#if defined(CONFIG_PPC_P3041) || \
54 defined(CONFIG_PPC_P4080) || \
55 defined(CONFIG_PPC_P5020) || \
56 defined(CONFIG_PPC_P5040) || \
57 defined(CONFIG_PPC_P2041)
58 #define CONFIG_FSL_TRUST_ARCH_v1
59#endif
60
61#if defined(CONFIG_FSL_CORENET)
62/* The key used for verification of next level images
63 * is picked up from an Extension Table which has
64 * been verified by the ISBC (Internal Secure boot Code)
65 * in boot ROM of the SoC
66 */
67#define CONFIG_FSL_ISBC_KEY_EXT
68#endif
69
Ruchika Gupta7065b7d2010-12-15 17:02:08 +000070#endif
Po Liu0d2cff22013-08-21 14:20:21 +080071#endif