1 From e84c8c3f444aae4359cd4d60fabd3d2145d011b5 Mon Sep 17 00:00:00 2001
2 From: Abhimanyu Saini <abhimanyu.saini@nxp.com>
3 Date: Fri, 24 Jun 2016 11:03:38 +0530
4 Subject: [PATCH 61/93] ARMv8: freescale: Consolidate PPA flags under a single
9 LS1012A places PPA binary on QSPI flash instead of NOR.
10 So, depricating CONFIG_SYS_LS_PPA_FW_IN_NOR in favour of
11 CONFIG_SYS_LS_PPA_FW_IN_XIP to prevent fragmentation of code
12 by addition of a new QSPI specific flag.
14 Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
15 Signed-off-by: Abhimanyu Saini <abhimanyu.saini@nxp.com>
16 Integrated-by: Jiang Yutang <yutang.jiang@nxp.com>
18 arch/arm/cpu/armv8/fsl-layerscape/ppa.c | 4 ++--
19 arch/arm/include/asm/fsl_secure_boot.h | 2 +-
20 include/configs/ls1043ardb.h | 4 ++--
21 3 files changed, 5 insertions(+), 5 deletions(-)
23 diff --git a/arch/arm/cpu/armv8/fsl-layerscape/ppa.c b/arch/arm/cpu/armv8/fsl-layerscape/ppa.c
24 index 116e164..8986260 100644
25 --- a/arch/arm/cpu/armv8/fsl-layerscape/ppa.c
26 +++ b/arch/arm/cpu/armv8/fsl-layerscape/ppa.c
27 @@ -163,7 +163,7 @@ static int ppa_parse_firmware_fit_image(const void **raw_image_addr,
31 -#ifdef CONFIG_SYS_LS_PPA_FW_IN_NOR
32 +#ifdef CONFIG_SYS_LS_PPA_FW_IN_XIP
33 ppa_addr = (void *)CONFIG_SYS_LS_PPA_FW_ADDR;
35 #error "No CONFIG_SYS_LS_PPA_FW_IN_xxx defined"
36 @@ -197,7 +197,7 @@ int sec_firmware_validate(void)
40 -#ifdef CONFIG_SYS_LS_PPA_FW_IN_NOR
41 +#ifdef CONFIG_SYS_LS_PPA_FW_IN_XIP
42 ppa_addr = (void *)CONFIG_SYS_LS_PPA_FW_ADDR;
44 #error "No CONFIG_SYS_LS_PPA_FW_IN_xxx defined"
45 diff --git a/arch/arm/include/asm/fsl_secure_boot.h b/arch/arm/include/asm/fsl_secure_boot.h
46 index c973255..b2e9105 100644
47 --- a/arch/arm/include/asm/fsl_secure_boot.h
48 +++ b/arch/arm/include/asm/fsl_secure_boot.h
52 #ifdef CONFIG_FSL_LS_PPA
53 -#ifdef CONFIG_SYS_LS_PPA_FW_IN_NOR
54 +#ifdef CONFIG_SYS_LS_PPA_FW_IN_XIP
56 #define CONFIG_SYS_LS_PPA_ESBC_ADDR 0x600c0000
58 diff --git a/include/configs/ls1043ardb.h b/include/configs/ls1043ardb.h
59 index af8b441..46818e8 100644
60 --- a/include/configs/ls1043ardb.h
61 +++ b/include/configs/ls1043ardb.h
63 #define CONFIG_ARMV8_PSCI
64 #define CONFIG_SYS_LS_PPA_DRAM_BLOCK_MIN_SIZE (1UL * 1024 * 1024)
66 -#define CONFIG_SYS_LS_PPA_FW_IN_NOR
67 -#ifdef CONFIG_SYS_LS_PPA_FW_IN_NOR
68 +#define CONFIG_SYS_LS_PPA_FW_IN_XIP
69 +#ifdef CONFIG_SYS_LS_PPA_FW_IN_XIP
70 #define CONFIG_SYS_LS_PPA_FW_ADDR 0x60500000