Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Ruchika Gupta | 8ca8d82 | 2010-12-15 17:02:08 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Copyright 2010-2011 Freescale Semiconductor, Inc. |
Ruchika Gupta | 8ca8d82 | 2010-12-15 17:02:08 +0000 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef __FSL_SECURE_BOOT_H |
| 7 | #define __FSL_SECURE_BOOT_H |
gaurav rana | 8b5ea65 | 2015-02-27 09:46:17 +0530 | [diff] [blame] | 8 | #include <asm/config_mpc85xx.h> |
Ruchika Gupta | 8ca8d82 | 2010-12-15 17:02:08 +0000 | [diff] [blame] | 9 | |
Udit Agarwal | d2dd2f7 | 2019-11-07 16:11:39 +0000 | [diff] [blame] | 10 | #ifdef CONFIG_NXP_ESBC |
Ruchika Gupta | 8ca8d82 | 2010-12-15 17:02:08 +0000 | [diff] [blame] | 11 | #if defined(CONFIG_FSL_CORENET) |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 12 | #define CFG_SYS_PBI_FLASH_BASE 0xc0000000 |
Ruchika Gupta | 8ca8d82 | 2010-12-15 17:02:08 +0000 | [diff] [blame] | 13 | #else |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 14 | #define CFG_SYS_PBI_FLASH_BASE 0xce000000 |
Ruchika Gupta | 8ca8d82 | 2010-12-15 17:02:08 +0000 | [diff] [blame] | 15 | #endif |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 16 | #define CFG_SYS_PBI_FLASH_WINDOW 0xcff80000 |
Ruchika Gupta | 8ca8d82 | 2010-12-15 17:02:08 +0000 | [diff] [blame] | 17 | |
Tom Rini | bf1dfd8 | 2022-06-17 16:24:34 -0400 | [diff] [blame] | 18 | #if defined(CONFIG_TARGET_T2080QDS) || \ |
York Sun | a05baa4 | 2016-12-28 08:43:37 -0800 | [diff] [blame] | 19 | defined(CONFIG_TARGET_T2080RDB) || \ |
York Sun | 097aa60 | 2016-11-21 11:25:26 -0800 | [diff] [blame] | 20 | defined(CONFIG_TARGET_T1042D4RDB) || \ |
York Sun | 7d29dd6 | 2016-11-18 13:01:34 -0800 | [diff] [blame] | 21 | defined(CONFIG_ARCH_T1024) |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 22 | #undef CFG_SYS_INIT_L3_ADDR |
| 23 | #define CFG_SYS_INIT_L3_ADDR 0xbff00000 |
Aneesh Bansal | 8bcbc27 | 2014-03-18 23:40:26 +0530 | [diff] [blame] | 24 | #endif |
| 25 | |
Aneesh Bansal | e0f5015 | 2015-06-16 10:36:00 +0530 | [diff] [blame] | 26 | #if defined(CONFIG_RAMBOOT_PBL) |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 27 | #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 Garg | afaca2a | 2016-07-14 12:27:52 -0400 | [diff] [blame] | 31 | 0xbff00000 |
| 32 | #else |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 33 | #define CFG_SYS_INIT_L3_ADDR 0xbff00000 |
Sumit Garg | afaca2a | 2016-07-14 12:27:52 -0400 | [diff] [blame] | 34 | #endif |
Aneesh Bansal | e0f5015 | 2015-06-16 10:36:00 +0530 | [diff] [blame] | 35 | #endif |
Udit Agarwal | d2dd2f7 | 2019-11-07 16:11:39 +0000 | [diff] [blame] | 36 | #endif /* #ifdef CONFIG_NXP_ESBC */ |
gaurav rana | 8b5ea65 | 2015-02-27 09:46:17 +0530 | [diff] [blame] | 37 | |
Aneesh Bansal | 4310470 | 2016-01-22 16:37:24 +0530 | [diff] [blame] | 38 | #ifdef CONFIG_CHAIN_OF_TRUST |
Simon Glass | 3aa6612 | 2016-09-12 23:18:23 -0600 | [diff] [blame] | 39 | #ifdef CONFIG_SPL_BUILD |
Sumit Garg | f6d96cb | 2016-07-14 12:27:51 -0400 | [diff] [blame] | 40 | /* |
| 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 Rini | 364d002 | 2023-01-10 11:19:45 -0500 | [diff] [blame^] | 44 | #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 Garg | f6d96cb | 2016-07-14 12:27:51 -0400 | [diff] [blame] | 48 | #endif /* ifdef CONFIG_SPL_BUILD */ |
| 49 | |
Sumit Garg | f6d96cb | 2016-07-14 12:27:51 -0400 | [diff] [blame] | 50 | #ifndef CONFIG_SPL_BUILD |
Aneesh Bansal | 4310470 | 2016-01-22 16:37:24 +0530 | [diff] [blame] | 51 | #include <config_fsl_chain_trust.h> |
Sumit Garg | f6d96cb | 2016-07-14 12:27:51 -0400 | [diff] [blame] | 52 | #endif /* #ifndef CONFIG_SPL_BUILD */ |
Aneesh Bansal | 4310470 | 2016-01-22 16:37:24 +0530 | [diff] [blame] | 53 | #endif /* #ifdef CONFIG_CHAIN_OF_TRUST */ |
Po Liu | d103009 | 2013-08-21 14:20:21 +0800 | [diff] [blame] | 54 | #endif |