blob: 221f9d842a8326984e705a6303c95eff68e1982d [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Ruchika Gupta8ca8d822010-12-15 17:02:08 +00002/*
3 * Copyright 2010-2011 Freescale Semiconductor, Inc.
Ruchika Gupta8ca8d822010-12-15 17:02:08 +00004 */
5
6#ifndef __FSL_SECURE_BOOT_H
7#define __FSL_SECURE_BOOT_H
gaurav rana8b5ea652015-02-27 09:46:17 +05308#include <asm/config_mpc85xx.h>
Ruchika Gupta8ca8d822010-12-15 17:02:08 +00009
Udit Agarwald2dd2f72019-11-07 16:11:39 +000010#ifdef CONFIG_NXP_ESBC
Ruchika Gupta8ca8d822010-12-15 17:02:08 +000011#if defined(CONFIG_FSL_CORENET)
Tom Rini6a5dccc2022-11-16 13:10:41 -050012#define CFG_SYS_PBI_FLASH_BASE 0xc0000000
Ruchika Gupta8ca8d822010-12-15 17:02:08 +000013#else
Tom Rini6a5dccc2022-11-16 13:10:41 -050014#define CFG_SYS_PBI_FLASH_BASE 0xce000000
Ruchika Gupta8ca8d822010-12-15 17:02:08 +000015#endif
Tom Rini6a5dccc2022-11-16 13:10:41 -050016#define CFG_SYS_PBI_FLASH_WINDOW 0xcff80000
Ruchika Gupta8ca8d822010-12-15 17:02:08 +000017
Tom Rinibf1dfd82022-06-17 16:24:34 -040018#if defined(CONFIG_TARGET_T2080QDS) || \
York Suna05baa42016-12-28 08:43:37 -080019 defined(CONFIG_TARGET_T2080RDB) || \
York Sun097aa602016-11-21 11:25:26 -080020 defined(CONFIG_TARGET_T1042D4RDB) || \
York Sun7d29dd62016-11-18 13:01:34 -080021 defined(CONFIG_ARCH_T1024)
Tom Rini6a5dccc2022-11-16 13:10:41 -050022#undef CFG_SYS_INIT_L3_ADDR
23#define CFG_SYS_INIT_L3_ADDR 0xbff00000
Aneesh Bansal8bcbc272014-03-18 23:40:26 +053024#endif
25
Aneesh Bansale0f50152015-06-16 10:36:00 +053026#if defined(CONFIG_RAMBOOT_PBL)
Tom Rini6a5dccc2022-11-16 13:10:41 -050027#undef CFG_SYS_INIT_L3_ADDR
28#ifdef CFG_SYS_INIT_L3_VADDR
29#define CFG_SYS_INIT_L3_ADDR \
30 (CFG_SYS_INIT_L3_VADDR & ~0xFFF00000) | \
Sumit Gargafaca2a2016-07-14 12:27:52 -040031 0xbff00000
32#else
Tom Rini6a5dccc2022-11-16 13:10:41 -050033#define CFG_SYS_INIT_L3_ADDR 0xbff00000
Sumit Gargafaca2a2016-07-14 12:27:52 -040034#endif
Aneesh Bansale0f50152015-06-16 10:36:00 +053035#endif
Udit Agarwald2dd2f72019-11-07 16:11:39 +000036#endif /* #ifdef CONFIG_NXP_ESBC */
gaurav rana8b5ea652015-02-27 09:46:17 +053037
Aneesh Bansal43104702016-01-22 16:37:24 +053038#ifdef CONFIG_CHAIN_OF_TRUST
Simon Glass3aa66122016-09-12 23:18:23 -060039#ifdef CONFIG_SPL_BUILD
Sumit Gargf6d96cb2016-07-14 12:27:51 -040040/*
41 * PPAACT and SPAACT table for PAMU must be placed on DDR after DDR init
42 * due to space crunch on CPC and thus malloc will not work.
43 */
Tom Rini364d0022023-01-10 11:19:45 -050044#define CFG_SPL_PPAACT_ADDR 0x2e000000
45#define CFG_SPL_SPAACT_ADDR 0x2f000000
46#define CFG_SPL_JR0_LIODN_S 454
47#define CFG_SPL_JR0_LIODN_NS 458
Sumit Gargf6d96cb2016-07-14 12:27:51 -040048#endif /* ifdef CONFIG_SPL_BUILD */
49
Sumit Gargf6d96cb2016-07-14 12:27:51 -040050#ifndef CONFIG_SPL_BUILD
Aneesh Bansal43104702016-01-22 16:37:24 +053051#include <config_fsl_chain_trust.h>
Sumit Gargf6d96cb2016-07-14 12:27:51 -040052#endif /* #ifndef CONFIG_SPL_BUILD */
Aneesh Bansal43104702016-01-22 16:37:24 +053053#endif /* #ifdef CONFIG_CHAIN_OF_TRUST */
Po Liud1030092013-08-21 14:20:21 +080054#endif