Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Mingkai Hu | 0e58b51 | 2015-10-26 19:47:50 +0800 | [diff] [blame] | 2 | /* |
Meenakshi Aggarwal | ccb5d5d | 2020-10-29 19:16:16 +0530 | [diff] [blame] | 3 | * Copyright 2016-2018, 2020 NXP |
Mingkai Hu | 0e58b51 | 2015-10-26 19:47:50 +0800 | [diff] [blame] | 4 | * Copyright 2015, Freescale Semiconductor |
Mingkai Hu | 0e58b51 | 2015-10-26 19:47:50 +0800 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef _ASM_ARMV8_FSL_LAYERSCAPE_CONFIG_H_ |
| 8 | #define _ASM_ARMV8_FSL_LAYERSCAPE_CONFIG_H_ |
| 9 | |
York Sun | bad4984 | 2016-09-26 08:09:24 -0700 | [diff] [blame] | 10 | #include <linux/kconfig.h> |
Mingkai Hu | 0e58b51 | 2015-10-26 19:47:50 +0800 | [diff] [blame] | 11 | #include <fsl_ddrc_version.h> |
| 12 | |
Simon Glass | 4dcacfc | 2020-05-10 11:40:13 -0600 | [diff] [blame] | 13 | #ifndef __ASSEMBLY__ |
| 14 | #include <linux/bitops.h> |
| 15 | #endif |
| 16 | |
York Sun | 0804d56 | 2015-12-04 11:57:08 -0800 | [diff] [blame] | 17 | /* |
| 18 | * Reserve secure memory |
| 19 | * To be aligned with MMU block size |
| 20 | */ |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 21 | #define CFG_SYS_MEM_RESERVE_SECURE (66 * 1024 * 1024) /* 66MB */ |
York Sun | f2aaf84 | 2017-05-15 08:52:00 -0700 | [diff] [blame] | 22 | #define SPL_TLB_SETBACK 0x1000000 /* 16MB under effective memory top */ |
York Sun | 0804d56 | 2015-12-04 11:57:08 -0800 | [diff] [blame] | 23 | |
York Sun | 4ce6fbf | 2017-03-27 11:41:01 -0700 | [diff] [blame] | 24 | #ifdef CONFIG_ARCH_LS2080A |
Tom Rini | 376b88a | 2022-10-28 20:27:13 -0400 | [diff] [blame] | 25 | #define CFG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 4, 4 } |
Mingkai Hu | 0e58b51 | 2015-10-26 19:47:50 +0800 | [diff] [blame] | 26 | #define SRDS_MAX_LANES 8 |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 27 | #define CFG_SYS_PAGE_SIZE 0x10000 |
Mingkai Hu | 0e58b51 | 2015-10-26 19:47:50 +0800 | [diff] [blame] | 28 | #ifndef L1_CACHE_BYTES |
| 29 | #define L1_CACHE_SHIFT 6 |
| 30 | #define L1_CACHE_BYTES BIT(L1_CACHE_SHIFT) |
| 31 | #endif |
| 32 | |
Tom Rini | 376b88a | 2022-10-28 20:27:13 -0400 | [diff] [blame] | 33 | #define CFG_SYS_FSL_OCRAM_BASE 0x18000000 /* initial RAM */ |
Hou Zhiqiang | 3a109ef | 2016-12-16 17:15:45 +0800 | [diff] [blame] | 34 | #define SYS_FSL_OCRAM_SPACE_SIZE 0x00200000 /* 2M space */ |
Tom Rini | 376b88a | 2022-10-28 20:27:13 -0400 | [diff] [blame] | 35 | #define CFG_SYS_FSL_OCRAM_SIZE 0x00020000 /* Real size 128K */ |
Mingkai Hu | 0e58b51 | 2015-10-26 19:47:50 +0800 | [diff] [blame] | 36 | |
| 37 | /* DDR */ |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 38 | #define CFG_SYS_DDR_BLOCK1_SIZE ((phys_size_t)2 << 30) |
Tom Rini | bc9d46b | 2022-12-04 10:04:50 -0500 | [diff] [blame] | 39 | #define CFG_MAX_MEM_MAPPED CFG_SYS_DDR_BLOCK1_SIZE |
Mingkai Hu | 0e58b51 | 2015-10-26 19:47:50 +0800 | [diff] [blame] | 40 | |
Mingkai Hu | 0e58b51 | 2015-10-26 19:47:50 +0800 | [diff] [blame] | 41 | /* Generic Interrupt Controller Definitions */ |
| 42 | #define GICD_BASE 0x06000000 |
| 43 | #define GICR_BASE 0x06100000 |
| 44 | |
| 45 | /* SMMU Defintions */ |
| 46 | #define SMMU_BASE 0x05000000 /* GR0 Base */ |
| 47 | |
| 48 | /* Cache Coherent Interconnect */ |
| 49 | #define CCI_MN_BASE 0x04000000 |
| 50 | #define CCI_MN_RNF_NODEID_LIST 0x180 |
| 51 | #define CCI_MN_DVM_DOMAIN_CTL 0x200 |
| 52 | #define CCI_MN_DVM_DOMAIN_CTL_SET 0x210 |
| 53 | |
York Sun | d957a67 | 2015-11-04 09:53:10 -0800 | [diff] [blame] | 54 | #define CCI_HN_F_0_BASE (CCI_MN_BASE + 0x200000) |
| 55 | #define CCI_HN_F_1_BASE (CCI_MN_BASE + 0x210000) |
| 56 | #define CCN_HN_F_SAM_CTL 0x8 /* offset on base HN_F base */ |
| 57 | #define CCN_HN_F_SAM_NODEID_MASK 0x7f |
| 58 | #define CCN_HN_F_SAM_NODEID_DDR0 0x4 |
| 59 | #define CCN_HN_F_SAM_NODEID_DDR1 0xe |
| 60 | |
Mingkai Hu | 0e58b51 | 2015-10-26 19:47:50 +0800 | [diff] [blame] | 61 | #define CCI_RN_I_0_BASE (CCI_MN_BASE + 0x800000) |
| 62 | #define CCI_RN_I_2_BASE (CCI_MN_BASE + 0x820000) |
| 63 | #define CCI_RN_I_6_BASE (CCI_MN_BASE + 0x860000) |
| 64 | #define CCI_RN_I_12_BASE (CCI_MN_BASE + 0x8C0000) |
| 65 | #define CCI_RN_I_16_BASE (CCI_MN_BASE + 0x900000) |
| 66 | #define CCI_RN_I_20_BASE (CCI_MN_BASE + 0x940000) |
| 67 | |
| 68 | #define CCI_S0_QOS_CONTROL_BASE(x) ((CCI_RN_I_0_BASE + (x * 0x10000)) + 0x10) |
| 69 | #define CCI_S1_QOS_CONTROL_BASE(x) ((CCI_RN_I_0_BASE + (x * 0x10000)) + 0x110) |
| 70 | #define CCI_S2_QOS_CONTROL_BASE(x) ((CCI_RN_I_0_BASE + (x * 0x10000)) + 0x210) |
| 71 | |
Prabhakar Kushwaha | edbbd25 | 2016-01-25 12:08:45 +0530 | [diff] [blame] | 72 | #define CCI_AUX_CONTROL_BASE(x) ((CCI_RN_I_0_BASE + (x * 0x10000)) + 0x0500) |
| 73 | |
Mingkai Hu | 0e58b51 | 2015-10-26 19:47:50 +0800 | [diff] [blame] | 74 | /* TZ Protection Controller Definitions */ |
| 75 | #define TZPC_BASE 0x02200000 |
| 76 | #define TZPCR0SIZE_BASE (TZPC_BASE) |
| 77 | #define TZPCDECPROT_0_STAT_BASE (TZPC_BASE + 0x800) |
| 78 | #define TZPCDECPROT_0_SET_BASE (TZPC_BASE + 0x804) |
| 79 | #define TZPCDECPROT_0_CLR_BASE (TZPC_BASE + 0x808) |
| 80 | #define TZPCDECPROT_1_STAT_BASE (TZPC_BASE + 0x80C) |
| 81 | #define TZPCDECPROT_1_SET_BASE (TZPC_BASE + 0x810) |
| 82 | #define TZPCDECPROT_1_CLR_BASE (TZPC_BASE + 0x814) |
| 83 | #define TZPCDECPROT_2_STAT_BASE (TZPC_BASE + 0x818) |
| 84 | #define TZPCDECPROT_2_SET_BASE (TZPC_BASE + 0x81C) |
| 85 | #define TZPCDECPROT_2_CLR_BASE (TZPC_BASE + 0x820) |
| 86 | |
Prabhakar Kushwaha | 22cfe96 | 2015-11-05 12:00:14 +0530 | [diff] [blame] | 87 | #define DCSR_CGACRE5 0x700070914ULL |
| 88 | #define EPU_EPCMPR5 0x700060914ULL |
| 89 | #define EPU_EPCCR5 0x700060814ULL |
| 90 | #define EPU_EPSMCR5 0x700060228ULL |
| 91 | #define EPU_EPECR5 0x700060314ULL |
| 92 | #define EPU_EPCTR5 0x700060a14ULL |
| 93 | #define EPU_EPGCR 0x700060000ULL |
| 94 | |
Ashish Kumar | b25faa2 | 2017-08-31 16:12:53 +0530 | [diff] [blame] | 95 | #elif defined(CONFIG_ARCH_LS1088A) |
Tom Rini | 376b88a | 2022-10-28 20:27:13 -0400 | [diff] [blame] | 96 | #define CFG_SYS_FSL_CLUSTER_CLOCKS { 1, 1 } |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 97 | #define CFG_SYS_PAGE_SIZE 0x10000 |
Ashish Kumar | b25faa2 | 2017-08-31 16:12:53 +0530 | [diff] [blame] | 98 | |
| 99 | #define SRDS_MAX_LANES 4 |
Alex Marginean | 47568ce | 2020-01-11 01:05:40 +0200 | [diff] [blame] | 100 | #define SRDS_BITS_PER_LANE 4 |
Ashish Kumar | b25faa2 | 2017-08-31 16:12:53 +0530 | [diff] [blame] | 101 | |
| 102 | /* TZ Protection Controller Definitions */ |
| 103 | #define TZPC_BASE 0x02200000 |
| 104 | #define TZPCR0SIZE_BASE (TZPC_BASE) |
| 105 | #define TZPCDECPROT_0_STAT_BASE (TZPC_BASE + 0x800) |
| 106 | #define TZPCDECPROT_0_SET_BASE (TZPC_BASE + 0x804) |
| 107 | #define TZPCDECPROT_0_CLR_BASE (TZPC_BASE + 0x808) |
| 108 | #define TZPCDECPROT_1_STAT_BASE (TZPC_BASE + 0x80C) |
| 109 | #define TZPCDECPROT_1_SET_BASE (TZPC_BASE + 0x810) |
| 110 | #define TZPCDECPROT_1_CLR_BASE (TZPC_BASE + 0x814) |
| 111 | #define TZPCDECPROT_2_STAT_BASE (TZPC_BASE + 0x818) |
| 112 | #define TZPCDECPROT_2_SET_BASE (TZPC_BASE + 0x81C) |
| 113 | #define TZPCDECPROT_2_CLR_BASE (TZPC_BASE + 0x820) |
| 114 | |
| 115 | /* Generic Interrupt Controller Definitions */ |
| 116 | #define GICD_BASE 0x06000000 |
| 117 | #define GICR_BASE 0x06100000 |
| 118 | |
| 119 | /* SMMU Defintions */ |
| 120 | #define SMMU_BASE 0x05000000 /* GR0 Base */ |
| 121 | |
| 122 | /* DDR */ |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 123 | #define CFG_SYS_DDR_BLOCK1_SIZE ((phys_size_t)2 << 30) |
Tom Rini | bc9d46b | 2022-12-04 10:04:50 -0500 | [diff] [blame] | 124 | #define CFG_MAX_MEM_MAPPED CFG_SYS_DDR_BLOCK1_SIZE |
Ashish Kumar | b25faa2 | 2017-08-31 16:12:53 +0530 | [diff] [blame] | 125 | |
Ashish Kumar | b25faa2 | 2017-08-31 16:12:53 +0530 | [diff] [blame] | 126 | /* DCFG - GUR */ |
Tom Rini | 376b88a | 2022-10-28 20:27:13 -0400 | [diff] [blame] | 127 | #define CFG_SYS_FSL_OCRAM_BASE 0x18000000 /* initial RAM */ |
Ashish Kumar | b25faa2 | 2017-08-31 16:12:53 +0530 | [diff] [blame] | 128 | #define SYS_FSL_OCRAM_SPACE_SIZE 0x00200000 /* 2M space */ |
Tom Rini | 376b88a | 2022-10-28 20:27:13 -0400 | [diff] [blame] | 129 | #define CFG_SYS_FSL_OCRAM_SIZE 0x00020000 /* Real size 128K */ |
Ashish Kumar | b25faa2 | 2017-08-31 16:12:53 +0530 | [diff] [blame] | 130 | |
Meenakshi Aggarwal | ccb5d5d | 2020-10-29 19:16:16 +0530 | [diff] [blame] | 131 | /* LX2160A/LX2162A Soc Support */ |
| 132 | #elif defined(CONFIG_ARCH_LX2160A) || defined(CONFIG_ARCH_LX2162A) |
Priyanka Jain | ef76b2e | 2018-10-29 09:17:09 +0000 | [diff] [blame] | 133 | #define TZPC_BASE 0x02200000 |
| 134 | #define TZPCDECPROT_0_SET_BASE (TZPC_BASE + 0x804) |
Priyanka Jain | ef76b2e | 2018-10-29 09:17:09 +0000 | [diff] [blame] | 135 | #define SRDS_MAX_LANES 8 |
| 136 | #ifndef L1_CACHE_BYTES |
| 137 | #define L1_CACHE_SHIFT 6 |
| 138 | #define L1_CACHE_BYTES BIT(L1_CACHE_SHIFT) |
| 139 | #endif |
Tom Rini | 376b88a | 2022-10-28 20:27:13 -0400 | [diff] [blame] | 140 | #define CFG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 1, 1, 4, 4, 4, 4 } |
Priyanka Jain | ef76b2e | 2018-10-29 09:17:09 +0000 | [diff] [blame] | 141 | |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 142 | #define CFG_SYS_PAGE_SIZE 0x10000 |
Priyanka Jain | ef76b2e | 2018-10-29 09:17:09 +0000 | [diff] [blame] | 143 | |
Tom Rini | 376b88a | 2022-10-28 20:27:13 -0400 | [diff] [blame] | 144 | #define CFG_SYS_FSL_OCRAM_BASE 0x18000000 /* initial RAM */ |
Priyanka Jain | ef76b2e | 2018-10-29 09:17:09 +0000 | [diff] [blame] | 145 | #define SYS_FSL_OCRAM_SPACE_SIZE 0x00200000 /* 2M space */ |
Tom Rini | 376b88a | 2022-10-28 20:27:13 -0400 | [diff] [blame] | 146 | #define CFG_SYS_FSL_OCRAM_SIZE 0x00040000 /* Real size 256K */ |
Priyanka Jain | ef76b2e | 2018-10-29 09:17:09 +0000 | [diff] [blame] | 147 | |
| 148 | /* DDR */ |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 149 | #define CFG_SYS_DDR_BLOCK1_SIZE ((phys_size_t)2 << 30) |
Tom Rini | bc9d46b | 2022-12-04 10:04:50 -0500 | [diff] [blame] | 150 | #define CFG_MAX_MEM_MAPPED CFG_SYS_DDR_BLOCK1_SIZE |
Priyanka Jain | ef76b2e | 2018-10-29 09:17:09 +0000 | [diff] [blame] | 151 | |
Priyanka Jain | ef76b2e | 2018-10-29 09:17:09 +0000 | [diff] [blame] | 152 | /* Generic Interrupt Controller Definitions */ |
| 153 | #define GICD_BASE 0x06000000 |
| 154 | #define GICR_BASE 0x06200000 |
| 155 | |
| 156 | /* SMMU Definitions */ |
| 157 | #define SMMU_BASE 0x05000000 /* GR0 Base */ |
| 158 | |
Priyanka Jain | ef76b2e | 2018-10-29 09:17:09 +0000 | [diff] [blame] | 159 | /* DCFG - GUR */ |
Priyanka Jain | ef76b2e | 2018-10-29 09:17:09 +0000 | [diff] [blame] | 160 | |
Yuantian Tang | 4aefa16 | 2019-04-10 16:43:33 +0800 | [diff] [blame] | 161 | #elif defined(CONFIG_ARCH_LS1028A) |
Tom Rini | 376b88a | 2022-10-28 20:27:13 -0400 | [diff] [blame] | 162 | #define CFG_SYS_FSL_CLUSTER_CLOCKS { 1, 1 } |
Yuantian Tang | 4aefa16 | 2019-04-10 16:43:33 +0800 | [diff] [blame] | 163 | |
| 164 | /* TZ Protection Controller Definitions */ |
| 165 | #define TZPC_BASE 0x02200000 |
| 166 | #define TZPCR0SIZE_BASE (TZPC_BASE) |
| 167 | #define TZPCDECPROT_0_STAT_BASE (TZPC_BASE + 0x800) |
| 168 | #define TZPCDECPROT_0_SET_BASE (TZPC_BASE + 0x804) |
| 169 | #define TZPCDECPROT_0_CLR_BASE (TZPC_BASE + 0x808) |
| 170 | #define TZPCDECPROT_1_STAT_BASE (TZPC_BASE + 0x80C) |
| 171 | #define TZPCDECPROT_1_SET_BASE (TZPC_BASE + 0x810) |
| 172 | #define TZPCDECPROT_1_CLR_BASE (TZPC_BASE + 0x814) |
| 173 | #define TZPCDECPROT_2_STAT_BASE (TZPC_BASE + 0x818) |
| 174 | #define TZPCDECPROT_2_SET_BASE (TZPC_BASE + 0x81C) |
| 175 | #define TZPCDECPROT_2_CLR_BASE (TZPC_BASE + 0x820) |
| 176 | |
| 177 | #define SRDS_MAX_LANES 4 |
Alex Marginean | 47568ce | 2020-01-11 01:05:40 +0200 | [diff] [blame] | 178 | #define SRDS_BITS_PER_LANE 4 |
Yuantian Tang | 4aefa16 | 2019-04-10 16:43:33 +0800 | [diff] [blame] | 179 | |
Tom Rini | 376b88a | 2022-10-28 20:27:13 -0400 | [diff] [blame] | 180 | #define CFG_SYS_FSL_OCRAM_BASE 0x18000000 /* initial RAM */ |
Yuantian Tang | 4aefa16 | 2019-04-10 16:43:33 +0800 | [diff] [blame] | 181 | #define SYS_FSL_OCRAM_SPACE_SIZE 0x00200000 /* 2M */ |
Tom Rini | 376b88a | 2022-10-28 20:27:13 -0400 | [diff] [blame] | 182 | #define CFG_SYS_FSL_OCRAM_SIZE 0x00040000 /* Real size 256K */ |
Yuantian Tang | 4aefa16 | 2019-04-10 16:43:33 +0800 | [diff] [blame] | 183 | |
| 184 | /* Generic Interrupt Controller Definitions */ |
| 185 | #define GICD_BASE 0x06000000 |
| 186 | #define GICR_BASE 0x06040000 |
| 187 | |
| 188 | /* SMMU Definitions */ |
| 189 | #define SMMU_BASE 0x05000000 /* GR0 Base */ |
| 190 | |
| 191 | /* DDR */ |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 192 | #define CFG_SYS_DDR_BLOCK1_SIZE ((phys_size_t)2 << 30) |
Tom Rini | bc9d46b | 2022-12-04 10:04:50 -0500 | [diff] [blame] | 193 | #define CFG_MAX_MEM_MAPPED CFG_SYS_DDR_BLOCK1_SIZE |
Yuantian Tang | 4aefa16 | 2019-04-10 16:43:33 +0800 | [diff] [blame] | 194 | |
Yuantian Tang | 4aefa16 | 2019-04-10 16:43:33 +0800 | [diff] [blame] | 195 | /* SEC */ |
Yuantian Tang | 4aefa16 | 2019-04-10 16:43:33 +0800 | [diff] [blame] | 196 | |
Yuantian Tang | 4aefa16 | 2019-04-10 16:43:33 +0800 | [diff] [blame] | 197 | /* DCFG - GUR */ |
Yuantian Tang | 4aefa16 | 2019-04-10 16:43:33 +0800 | [diff] [blame] | 198 | |
Qianyu Gong | 8aec719 | 2016-07-05 16:01:53 +0800 | [diff] [blame] | 199 | #elif defined(CONFIG_FSL_LSCH2) |
Tom Rini | 376b88a | 2022-10-28 20:27:13 -0400 | [diff] [blame] | 200 | #define CFG_SYS_FSL_OCRAM_BASE 0x10000000 /* initial RAM */ |
Hou Zhiqiang | 3a109ef | 2016-12-16 17:15:45 +0800 | [diff] [blame] | 201 | #define SYS_FSL_OCRAM_SPACE_SIZE 0x00200000 /* 2M space */ |
Tom Rini | 376b88a | 2022-10-28 20:27:13 -0400 | [diff] [blame] | 202 | #define CFG_SYS_FSL_OCRAM_SIZE 0x00020000 /* Real size 128K */ |
Mingkai Hu | e4e93ea | 2015-10-26 19:47:51 +0800 | [diff] [blame] | 203 | |
Hou Zhiqiang | c479780 | 2016-12-16 17:15:46 +0800 | [diff] [blame] | 204 | #define DCSR_DCFG_SBEESR2 0x20140534 |
| 205 | #define DCSR_DCFG_MBEESR2 0x20140544 |
| 206 | |
Qianyu Gong | 8aec719 | 2016-07-05 16:01:53 +0800 | [diff] [blame] | 207 | /* SoC related */ |
York Sun | 342cf06 | 2017-03-27 11:41:02 -0700 | [diff] [blame] | 208 | #ifdef CONFIG_ARCH_LS1043A |
Tom Rini | 0a2bac7 | 2022-11-16 13:10:29 -0500 | [diff] [blame] | 209 | #define CFG_SYS_NUM_FMAN 1 |
| 210 | #define CFG_SYS_NUM_FM1_DTSEC 7 |
| 211 | #define CFG_SYS_NUM_FM1_10GEC 1 |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 212 | #define CFG_SYS_DDR_BLOCK1_SIZE ((phys_size_t)2 << 30) |
Tom Rini | bc9d46b | 2022-12-04 10:04:50 -0500 | [diff] [blame] | 213 | #define CFG_MAX_MEM_MAPPED CFG_SYS_DDR_BLOCK1_SIZE |
Mingkai Hu | e4e93ea | 2015-10-26 19:47:51 +0800 | [diff] [blame] | 214 | |
| 215 | #define QE_MURAM_SIZE 0x6000UL |
| 216 | #define MAX_QE_RISC 1 |
| 217 | #define QE_NUM_OF_SNUM 28 |
| 218 | |
Mingkai Hu | e4e93ea | 2015-10-26 19:47:51 +0800 | [diff] [blame] | 219 | /* SMMU Defintions */ |
| 220 | #define SMMU_BASE 0x09000000 |
| 221 | |
| 222 | /* Generic Interrupt Controller Definitions */ |
| 223 | #define GICD_BASE 0x01401000 |
| 224 | #define GICC_BASE 0x01402000 |
Wenbin Song | a8f57a9 | 2017-01-17 18:31:15 +0800 | [diff] [blame] | 225 | #define GICH_BASE 0x01404000 |
| 226 | #define GICV_BASE 0x01406000 |
| 227 | #define GICD_SIZE 0x1000 |
| 228 | #define GICC_SIZE 0x2000 |
| 229 | #define GICH_SIZE 0x2000 |
| 230 | #define GICV_SIZE 0x2000 |
| 231 | #ifdef CONFIG_HAS_FEATURE_GIC64K_ALIGN |
| 232 | #define GICD_BASE_64K 0x01410000 |
| 233 | #define GICC_BASE_64K 0x01420000 |
| 234 | #define GICH_BASE_64K 0x01440000 |
| 235 | #define GICV_BASE_64K 0x01460000 |
| 236 | #define GICD_SIZE_64K 0x10000 |
| 237 | #define GICC_SIZE_64K 0x20000 |
| 238 | #define GICH_SIZE_64K 0x20000 |
| 239 | #define GICV_SIZE_64K 0x20000 |
| 240 | #endif |
| 241 | |
| 242 | #define DCFG_CCSR_SVR 0x1ee00a4 |
| 243 | #define REV1_0 0x10 |
| 244 | #define REV1_1 0x11 |
| 245 | #define GIC_ADDR_BIT 31 |
| 246 | #define SCFG_GIC400_ALIGN 0x1570188 |
Mingkai Hu | e4e93ea | 2015-10-26 19:47:51 +0800 | [diff] [blame] | 247 | |
York Sun | d297d39 | 2016-12-28 08:43:40 -0800 | [diff] [blame] | 248 | #elif defined(CONFIG_ARCH_LS1012A) |
Prabhakar Kushwaha | d169ebe | 2016-06-03 18:41:31 +0530 | [diff] [blame] | 249 | #define GICD_BASE 0x01401000 |
| 250 | #define GICC_BASE 0x01402000 |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 251 | #define CFG_SYS_DDR_BLOCK1_SIZE ((phys_size_t)2 << 30) |
Tom Rini | bc9d46b | 2022-12-04 10:04:50 -0500 | [diff] [blame] | 252 | #define CFG_MAX_MEM_MAPPED CFG_SYS_DDR_BLOCK1_SIZE |
Prabhakar Kushwaha | 1fb2f11 | 2017-01-30 17:05:22 +0530 | [diff] [blame] | 253 | |
York Sun | bad4984 | 2016-09-26 08:09:24 -0700 | [diff] [blame] | 254 | #elif defined(CONFIG_ARCH_LS1046A) |
Tom Rini | 0a2bac7 | 2022-11-16 13:10:29 -0500 | [diff] [blame] | 255 | #define CFG_SYS_NUM_FMAN 1 |
| 256 | #define CFG_SYS_NUM_FM1_DTSEC 8 |
| 257 | #define CFG_SYS_NUM_FM1_10GEC 2 |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 258 | #define CFG_SYS_DDR_BLOCK1_SIZE ((phys_size_t)2 << 30) |
Tom Rini | bc9d46b | 2022-12-04 10:04:50 -0500 | [diff] [blame] | 259 | #define CFG_MAX_MEM_MAPPED CFG_SYS_DDR_BLOCK1_SIZE |
Mingkai Hu | cd54c0f | 2016-07-05 16:01:55 +0800 | [diff] [blame] | 260 | |
Mingkai Hu | cd54c0f | 2016-07-05 16:01:55 +0800 | [diff] [blame] | 261 | /* SMMU Defintions */ |
| 262 | #define SMMU_BASE 0x09000000 |
| 263 | |
| 264 | /* Generic Interrupt Controller Definitions */ |
| 265 | #define GICD_BASE 0x01410000 |
| 266 | #define GICC_BASE 0x01420000 |
Mingkai Hu | 0e58b51 | 2015-10-26 19:47:50 +0800 | [diff] [blame] | 267 | #else |
| 268 | #error SoC not defined |
| 269 | #endif |
Qianyu Gong | 8aec719 | 2016-07-05 16:01:53 +0800 | [diff] [blame] | 270 | #endif |
Mingkai Hu | 0e58b51 | 2015-10-26 19:47:50 +0800 | [diff] [blame] | 271 | |
| 272 | #endif /* _ASM_ARMV8_FSL_LAYERSCAPE_CONFIG_H_ */ |