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 | |
Shaohui Xie | 6759cc2 | 2016-09-07 17:56:09 +0800 | [diff] [blame] | 17 | #define CONFIG_STANDALONE_LOAD_ADDR 0x80300000 |
| 18 | |
York Sun | 0804d56 | 2015-12-04 11:57:08 -0800 | [diff] [blame] | 19 | /* |
| 20 | * Reserve secure memory |
| 21 | * To be aligned with MMU block size |
| 22 | */ |
Sumit Garg | 251c44b | 2017-09-01 13:55:00 +0530 | [diff] [blame] | 23 | #define CONFIG_SYS_MEM_RESERVE_SECURE (66 * 1024 * 1024) /* 66MB */ |
York Sun | f2aaf84 | 2017-05-15 08:52:00 -0700 | [diff] [blame] | 24 | #define SPL_TLB_SETBACK 0x1000000 /* 16MB under effective memory top */ |
York Sun | 0804d56 | 2015-12-04 11:57:08 -0800 | [diff] [blame] | 25 | |
York Sun | 4ce6fbf | 2017-03-27 11:41:01 -0700 | [diff] [blame] | 26 | #ifdef CONFIG_ARCH_LS2080A |
Mingkai Hu | 0e58b51 | 2015-10-26 19:47:50 +0800 | [diff] [blame] | 27 | #define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 4, 4 } |
| 28 | #define SRDS_MAX_LANES 8 |
Mingkai Hu | 0e58b51 | 2015-10-26 19:47:50 +0800 | [diff] [blame] | 29 | #define CONFIG_SYS_PAGE_SIZE 0x10000 |
Mingkai Hu | 0e58b51 | 2015-10-26 19:47:50 +0800 | [diff] [blame] | 30 | #ifndef L1_CACHE_BYTES |
| 31 | #define L1_CACHE_SHIFT 6 |
| 32 | #define L1_CACHE_BYTES BIT(L1_CACHE_SHIFT) |
| 33 | #endif |
| 34 | |
Hou Zhiqiang | 3a109ef | 2016-12-16 17:15:45 +0800 | [diff] [blame] | 35 | #define CONFIG_SYS_FSL_OCRAM_BASE 0x18000000 /* initial RAM */ |
| 36 | #define SYS_FSL_OCRAM_SPACE_SIZE 0x00200000 /* 2M space */ |
| 37 | #define CONFIG_SYS_FSL_OCRAM_SIZE 0x00020000 /* Real size 128K */ |
Mingkai Hu | 0e58b51 | 2015-10-26 19:47:50 +0800 | [diff] [blame] | 38 | |
| 39 | /* DDR */ |
York Sun | 4de24ef | 2017-03-06 09:02:28 -0800 | [diff] [blame] | 40 | #define CONFIG_SYS_DDR_BLOCK1_SIZE ((phys_size_t)2 << 30) |
| 41 | #define CONFIG_MAX_MEM_MAPPED CONFIG_SYS_DDR_BLOCK1_SIZE |
Mingkai Hu | 0e58b51 | 2015-10-26 19:47:50 +0800 | [diff] [blame] | 42 | |
| 43 | #define CONFIG_SYS_FSL_CCSR_GUR_LE |
| 44 | #define CONFIG_SYS_FSL_CCSR_SCFG_LE |
| 45 | #define CONFIG_SYS_FSL_ESDHC_LE |
| 46 | #define CONFIG_SYS_FSL_IFC_LE |
Mingkai Hu | 1921899 | 2015-11-11 17:58:34 +0800 | [diff] [blame] | 47 | #define CONFIG_SYS_FSL_PEX_LUT_LE |
Mingkai Hu | 0e58b51 | 2015-10-26 19:47:50 +0800 | [diff] [blame] | 48 | |
| 49 | #define CONFIG_SYS_MEMAC_LITTLE_ENDIAN |
| 50 | |
| 51 | /* Generic Interrupt Controller Definitions */ |
| 52 | #define GICD_BASE 0x06000000 |
| 53 | #define GICR_BASE 0x06100000 |
| 54 | |
| 55 | /* SMMU Defintions */ |
| 56 | #define SMMU_BASE 0x05000000 /* GR0 Base */ |
| 57 | |
Saksham Jain | 7b0b250 | 2016-03-23 16:24:39 +0530 | [diff] [blame] | 58 | /* DCFG - GUR */ |
| 59 | #define CONFIG_SYS_FSL_CCSR_GUR_LE |
| 60 | |
Mingkai Hu | 0e58b51 | 2015-10-26 19:47:50 +0800 | [diff] [blame] | 61 | /* Cache Coherent Interconnect */ |
| 62 | #define CCI_MN_BASE 0x04000000 |
| 63 | #define CCI_MN_RNF_NODEID_LIST 0x180 |
| 64 | #define CCI_MN_DVM_DOMAIN_CTL 0x200 |
| 65 | #define CCI_MN_DVM_DOMAIN_CTL_SET 0x210 |
| 66 | |
York Sun | d957a67 | 2015-11-04 09:53:10 -0800 | [diff] [blame] | 67 | #define CCI_HN_F_0_BASE (CCI_MN_BASE + 0x200000) |
| 68 | #define CCI_HN_F_1_BASE (CCI_MN_BASE + 0x210000) |
| 69 | #define CCN_HN_F_SAM_CTL 0x8 /* offset on base HN_F base */ |
| 70 | #define CCN_HN_F_SAM_NODEID_MASK 0x7f |
| 71 | #define CCN_HN_F_SAM_NODEID_DDR0 0x4 |
| 72 | #define CCN_HN_F_SAM_NODEID_DDR1 0xe |
| 73 | |
Mingkai Hu | 0e58b51 | 2015-10-26 19:47:50 +0800 | [diff] [blame] | 74 | #define CCI_RN_I_0_BASE (CCI_MN_BASE + 0x800000) |
| 75 | #define CCI_RN_I_2_BASE (CCI_MN_BASE + 0x820000) |
| 76 | #define CCI_RN_I_6_BASE (CCI_MN_BASE + 0x860000) |
| 77 | #define CCI_RN_I_12_BASE (CCI_MN_BASE + 0x8C0000) |
| 78 | #define CCI_RN_I_16_BASE (CCI_MN_BASE + 0x900000) |
| 79 | #define CCI_RN_I_20_BASE (CCI_MN_BASE + 0x940000) |
| 80 | |
| 81 | #define CCI_S0_QOS_CONTROL_BASE(x) ((CCI_RN_I_0_BASE + (x * 0x10000)) + 0x10) |
| 82 | #define CCI_S1_QOS_CONTROL_BASE(x) ((CCI_RN_I_0_BASE + (x * 0x10000)) + 0x110) |
| 83 | #define CCI_S2_QOS_CONTROL_BASE(x) ((CCI_RN_I_0_BASE + (x * 0x10000)) + 0x210) |
| 84 | |
Prabhakar Kushwaha | edbbd25 | 2016-01-25 12:08:45 +0530 | [diff] [blame] | 85 | #define CCI_AUX_CONTROL_BASE(x) ((CCI_RN_I_0_BASE + (x * 0x10000)) + 0x0500) |
| 86 | |
Mingkai Hu | 0e58b51 | 2015-10-26 19:47:50 +0800 | [diff] [blame] | 87 | /* TZ Protection Controller Definitions */ |
| 88 | #define TZPC_BASE 0x02200000 |
| 89 | #define TZPCR0SIZE_BASE (TZPC_BASE) |
| 90 | #define TZPCDECPROT_0_STAT_BASE (TZPC_BASE + 0x800) |
| 91 | #define TZPCDECPROT_0_SET_BASE (TZPC_BASE + 0x804) |
| 92 | #define TZPCDECPROT_0_CLR_BASE (TZPC_BASE + 0x808) |
| 93 | #define TZPCDECPROT_1_STAT_BASE (TZPC_BASE + 0x80C) |
| 94 | #define TZPCDECPROT_1_SET_BASE (TZPC_BASE + 0x810) |
| 95 | #define TZPCDECPROT_1_CLR_BASE (TZPC_BASE + 0x814) |
| 96 | #define TZPCDECPROT_2_STAT_BASE (TZPC_BASE + 0x818) |
| 97 | #define TZPCDECPROT_2_SET_BASE (TZPC_BASE + 0x81C) |
| 98 | #define TZPCDECPROT_2_CLR_BASE (TZPC_BASE + 0x820) |
| 99 | |
Prabhakar Kushwaha | 22cfe96 | 2015-11-05 12:00:14 +0530 | [diff] [blame] | 100 | #define DCSR_CGACRE5 0x700070914ULL |
| 101 | #define EPU_EPCMPR5 0x700060914ULL |
| 102 | #define EPU_EPCCR5 0x700060814ULL |
| 103 | #define EPU_EPSMCR5 0x700060228ULL |
| 104 | #define EPU_EPECR5 0x700060314ULL |
| 105 | #define EPU_EPCTR5 0x700060a14ULL |
| 106 | #define EPU_EPGCR 0x700060000ULL |
| 107 | |
Mingkai Hu | 0e58b51 | 2015-10-26 19:47:50 +0800 | [diff] [blame] | 108 | #define CONFIG_SYS_FSL_ERRATUM_A008751 |
Shengzhou Liu | bdda96c | 2015-12-16 16:45:41 +0800 | [diff] [blame] | 109 | |
Alex Porosanu | b4848d0 | 2016-04-29 15:17:59 +0300 | [diff] [blame] | 110 | #define CONFIG_SYS_FSL_MAX_NUM_OF_SEC 1 |
Ashish Kumar | b25faa2 | 2017-08-31 16:12:53 +0530 | [diff] [blame] | 111 | |
| 112 | #elif defined(CONFIG_ARCH_LS1088A) |
| 113 | #define CONFIG_SYS_FSL_NUM_CC_PLLS 3 |
| 114 | #define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1 } |
Ashish Kumar | b25faa2 | 2017-08-31 16:12:53 +0530 | [diff] [blame] | 115 | #define CONFIG_SYS_PAGE_SIZE 0x10000 |
| 116 | |
| 117 | #define SRDS_MAX_LANES 4 |
Alex Marginean | 47568ce | 2020-01-11 01:05:40 +0200 | [diff] [blame] | 118 | #define SRDS_BITS_PER_LANE 4 |
Ashish Kumar | b25faa2 | 2017-08-31 16:12:53 +0530 | [diff] [blame] | 119 | |
| 120 | /* TZ Protection Controller Definitions */ |
| 121 | #define TZPC_BASE 0x02200000 |
| 122 | #define TZPCR0SIZE_BASE (TZPC_BASE) |
| 123 | #define TZPCDECPROT_0_STAT_BASE (TZPC_BASE + 0x800) |
| 124 | #define TZPCDECPROT_0_SET_BASE (TZPC_BASE + 0x804) |
| 125 | #define TZPCDECPROT_0_CLR_BASE (TZPC_BASE + 0x808) |
| 126 | #define TZPCDECPROT_1_STAT_BASE (TZPC_BASE + 0x80C) |
| 127 | #define TZPCDECPROT_1_SET_BASE (TZPC_BASE + 0x810) |
| 128 | #define TZPCDECPROT_1_CLR_BASE (TZPC_BASE + 0x814) |
| 129 | #define TZPCDECPROT_2_STAT_BASE (TZPC_BASE + 0x818) |
| 130 | #define TZPCDECPROT_2_SET_BASE (TZPC_BASE + 0x81C) |
| 131 | #define TZPCDECPROT_2_CLR_BASE (TZPC_BASE + 0x820) |
| 132 | |
| 133 | /* Generic Interrupt Controller Definitions */ |
| 134 | #define GICD_BASE 0x06000000 |
| 135 | #define GICR_BASE 0x06100000 |
| 136 | |
| 137 | /* SMMU Defintions */ |
| 138 | #define SMMU_BASE 0x05000000 /* GR0 Base */ |
| 139 | |
| 140 | /* DDR */ |
| 141 | #define CONFIG_SYS_DDR_BLOCK1_SIZE ((phys_size_t)2 << 30) |
| 142 | #define CONFIG_MAX_MEM_MAPPED CONFIG_SYS_DDR_BLOCK1_SIZE |
| 143 | |
| 144 | #define CONFIG_SYS_FSL_CCSR_GUR_LE |
| 145 | #define CONFIG_SYS_FSL_CCSR_SCFG_LE |
| 146 | #define CONFIG_SYS_FSL_ESDHC_LE |
| 147 | #define CONFIG_SYS_FSL_IFC_LE |
| 148 | #define CONFIG_SYS_FSL_PEX_LUT_LE |
| 149 | |
| 150 | #define CONFIG_SYS_MEMAC_LITTLE_ENDIAN |
| 151 | |
Ashish Kumar | b25faa2 | 2017-08-31 16:12:53 +0530 | [diff] [blame] | 152 | /* DCFG - GUR */ |
| 153 | #define CONFIG_SYS_FSL_CCSR_GUR_LE |
| 154 | #define CONFIG_SYS_FSL_MAX_NUM_OF_SEC 1 |
| 155 | #define CONFIG_SYS_FSL_OCRAM_BASE 0x18000000 /* initial RAM */ |
| 156 | #define SYS_FSL_OCRAM_SPACE_SIZE 0x00200000 /* 2M space */ |
| 157 | #define CONFIG_SYS_FSL_OCRAM_SIZE 0x00020000 /* Real size 128K */ |
| 158 | |
Meenakshi Aggarwal | ccb5d5d | 2020-10-29 19:16:16 +0530 | [diff] [blame] | 159 | /* LX2160A/LX2162A Soc Support */ |
| 160 | #elif defined(CONFIG_ARCH_LX2160A) || defined(CONFIG_ARCH_LX2162A) |
Priyanka Jain | ef76b2e | 2018-10-29 09:17:09 +0000 | [diff] [blame] | 161 | #define TZPC_BASE 0x02200000 |
| 162 | #define TZPCDECPROT_0_SET_BASE (TZPC_BASE + 0x804) |
Priyanka Jain | ef76b2e | 2018-10-29 09:17:09 +0000 | [diff] [blame] | 163 | #define SRDS_MAX_LANES 8 |
| 164 | #ifndef L1_CACHE_BYTES |
| 165 | #define L1_CACHE_SHIFT 6 |
| 166 | #define L1_CACHE_BYTES BIT(L1_CACHE_SHIFT) |
| 167 | #endif |
| 168 | #define CONFIG_SYS_FSL_CORES_PER_CLUSTER 2 |
| 169 | #define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1, 1, 1, 4, 4, 4, 4 } |
| 170 | #define CONFIG_SYS_FSL_NUM_CC_PLLS 4 |
| 171 | |
| 172 | #define CONFIG_SYS_PAGE_SIZE 0x10000 |
| 173 | |
| 174 | #define CONFIG_SYS_FSL_OCRAM_BASE 0x18000000 /* initial RAM */ |
| 175 | #define SYS_FSL_OCRAM_SPACE_SIZE 0x00200000 /* 2M space */ |
| 176 | #define CONFIG_SYS_FSL_OCRAM_SIZE 0x00040000 /* Real size 256K */ |
| 177 | |
| 178 | /* DDR */ |
| 179 | #define CONFIG_SYS_DDR_BLOCK1_SIZE ((phys_size_t)2 << 30) |
| 180 | #define CONFIG_MAX_MEM_MAPPED CONFIG_SYS_DDR_BLOCK1_SIZE |
| 181 | |
| 182 | #define CONFIG_SYS_FSL_CCSR_GUR_LE |
| 183 | #define CONFIG_SYS_FSL_CCSR_SCFG_LE |
| 184 | #define CONFIG_SYS_FSL_ESDHC_LE |
| 185 | #define CONFIG_SYS_FSL_PEX_LUT_LE |
| 186 | |
| 187 | #define CONFIG_SYS_MEMAC_LITTLE_ENDIAN |
| 188 | |
| 189 | /* Generic Interrupt Controller Definitions */ |
| 190 | #define GICD_BASE 0x06000000 |
| 191 | #define GICR_BASE 0x06200000 |
| 192 | |
| 193 | /* SMMU Definitions */ |
| 194 | #define SMMU_BASE 0x05000000 /* GR0 Base */ |
| 195 | |
Priyanka Jain | ef76b2e | 2018-10-29 09:17:09 +0000 | [diff] [blame] | 196 | /* DCFG - GUR */ |
| 197 | #define CONFIG_SYS_FSL_CCSR_GUR_LE |
| 198 | |
| 199 | #define CONFIG_SYS_FSL_MAX_NUM_OF_SEC 1 |
| 200 | |
Yuantian Tang | 4aefa16 | 2019-04-10 16:43:33 +0800 | [diff] [blame] | 201 | #elif defined(CONFIG_ARCH_LS1028A) |
| 202 | #define CONFIG_SYS_FSL_NUM_CC_PLLS 3 |
| 203 | #define CONFIG_SYS_FSL_CLUSTER_CLOCKS { 1, 1 } |
Yuantian Tang | 4aefa16 | 2019-04-10 16:43:33 +0800 | [diff] [blame] | 204 | #define CONFIG_FSL_TZASC_400 |
| 205 | |
| 206 | /* TZ Protection Controller Definitions */ |
| 207 | #define TZPC_BASE 0x02200000 |
| 208 | #define TZPCR0SIZE_BASE (TZPC_BASE) |
| 209 | #define TZPCDECPROT_0_STAT_BASE (TZPC_BASE + 0x800) |
| 210 | #define TZPCDECPROT_0_SET_BASE (TZPC_BASE + 0x804) |
| 211 | #define TZPCDECPROT_0_CLR_BASE (TZPC_BASE + 0x808) |
| 212 | #define TZPCDECPROT_1_STAT_BASE (TZPC_BASE + 0x80C) |
| 213 | #define TZPCDECPROT_1_SET_BASE (TZPC_BASE + 0x810) |
| 214 | #define TZPCDECPROT_1_CLR_BASE (TZPC_BASE + 0x814) |
| 215 | #define TZPCDECPROT_2_STAT_BASE (TZPC_BASE + 0x818) |
| 216 | #define TZPCDECPROT_2_SET_BASE (TZPC_BASE + 0x81C) |
| 217 | #define TZPCDECPROT_2_CLR_BASE (TZPC_BASE + 0x820) |
| 218 | |
| 219 | #define SRDS_MAX_LANES 4 |
Alex Marginean | 47568ce | 2020-01-11 01:05:40 +0200 | [diff] [blame] | 220 | #define SRDS_BITS_PER_LANE 4 |
Yuantian Tang | 4aefa16 | 2019-04-10 16:43:33 +0800 | [diff] [blame] | 221 | |
| 222 | #define CONFIG_SYS_FSL_OCRAM_BASE 0x18000000 /* initial RAM */ |
| 223 | #define SYS_FSL_OCRAM_SPACE_SIZE 0x00200000 /* 2M */ |
| 224 | #define CONFIG_SYS_FSL_OCRAM_SIZE 0x00040000 /* Real size 256K */ |
| 225 | |
| 226 | /* Generic Interrupt Controller Definitions */ |
| 227 | #define GICD_BASE 0x06000000 |
| 228 | #define GICR_BASE 0x06040000 |
| 229 | |
| 230 | /* SMMU Definitions */ |
| 231 | #define SMMU_BASE 0x05000000 /* GR0 Base */ |
| 232 | |
| 233 | /* DDR */ |
| 234 | #define CONFIG_SYS_DDR_BLOCK1_SIZE ((phys_size_t)2 << 30) |
| 235 | #define CONFIG_MAX_MEM_MAPPED CONFIG_SYS_DDR_BLOCK1_SIZE |
| 236 | |
| 237 | #define CONFIG_SYS_FSL_CCSR_GUR_LE |
| 238 | #define CONFIG_SYS_FSL_CCSR_SCFG_LE |
| 239 | #define CONFIG_SYS_FSL_ESDHC_LE |
| 240 | #define CONFIG_SYS_FSL_PEX_LUT_LE |
| 241 | |
| 242 | #define CONFIG_SYS_MEMAC_LITTLE_ENDIAN |
| 243 | |
Yuantian Tang | 4aefa16 | 2019-04-10 16:43:33 +0800 | [diff] [blame] | 244 | /* SEC */ |
| 245 | #define CONFIG_SYS_FSL_MAX_NUM_OF_SEC 1 |
| 246 | |
Yuantian Tang | 4aefa16 | 2019-04-10 16:43:33 +0800 | [diff] [blame] | 247 | /* DCFG - GUR */ |
| 248 | #define CONFIG_SYS_FSL_CCSR_GUR_LE |
| 249 | |
Qianyu Gong | 8aec719 | 2016-07-05 16:01:53 +0800 | [diff] [blame] | 250 | #elif defined(CONFIG_FSL_LSCH2) |
Mingkai Hu | e4e93ea | 2015-10-26 19:47:51 +0800 | [diff] [blame] | 251 | #define CONFIG_SYS_FSL_OCRAM_BASE 0x10000000 /* initial RAM */ |
Hou Zhiqiang | 3a109ef | 2016-12-16 17:15:45 +0800 | [diff] [blame] | 252 | #define SYS_FSL_OCRAM_SPACE_SIZE 0x00200000 /* 2M space */ |
| 253 | #define CONFIG_SYS_FSL_OCRAM_SIZE 0x00020000 /* Real size 128K */ |
Mingkai Hu | e4e93ea | 2015-10-26 19:47:51 +0800 | [diff] [blame] | 254 | |
Hou Zhiqiang | c479780 | 2016-12-16 17:15:46 +0800 | [diff] [blame] | 255 | #define DCSR_DCFG_SBEESR2 0x20140534 |
| 256 | #define DCSR_DCFG_MBEESR2 0x20140544 |
| 257 | |
Mingkai Hu | e4e93ea | 2015-10-26 19:47:51 +0800 | [diff] [blame] | 258 | #define CONFIG_SYS_FSL_CCSR_SCFG_BE |
Mingkai Hu | e4e93ea | 2015-10-26 19:47:51 +0800 | [diff] [blame] | 259 | #define CONFIG_SYS_FSL_ESDHC_BE |
| 260 | #define CONFIG_SYS_FSL_WDOG_BE |
| 261 | #define CONFIG_SYS_FSL_DSPI_BE |
Qianyu Gong | 8aec719 | 2016-07-05 16:01:53 +0800 | [diff] [blame] | 262 | #define CONFIG_SYS_FSL_CCSR_GUR_BE |
Mingkai Hu | 1921899 | 2015-11-11 17:58:34 +0800 | [diff] [blame] | 263 | #define CONFIG_SYS_FSL_PEX_LUT_BE |
Qianyu Gong | 8aec719 | 2016-07-05 16:01:53 +0800 | [diff] [blame] | 264 | |
Qianyu Gong | 8aec719 | 2016-07-05 16:01:53 +0800 | [diff] [blame] | 265 | /* SoC related */ |
York Sun | 342cf06 | 2017-03-27 11:41:02 -0700 | [diff] [blame] | 266 | #ifdef CONFIG_ARCH_LS1043A |
Qianyu Gong | 8aec719 | 2016-07-05 16:01:53 +0800 | [diff] [blame] | 267 | #define CONFIG_SYS_FMAN_V3 |
Laurentiu Tudor | 2ace367 | 2018-08-27 17:33:58 +0300 | [diff] [blame] | 268 | #define CONFIG_SYS_FSL_QMAN_V3 |
Qianyu Gong | 8aec719 | 2016-07-05 16:01:53 +0800 | [diff] [blame] | 269 | #define CONFIG_SYS_NUM_FMAN 1 |
| 270 | #define CONFIG_SYS_NUM_FM1_DTSEC 7 |
| 271 | #define CONFIG_SYS_NUM_FM1_10GEC 1 |
Qianyu Gong | 8aec719 | 2016-07-05 16:01:53 +0800 | [diff] [blame] | 272 | #define CONFIG_SYS_DDR_BLOCK1_SIZE ((phys_size_t)2 << 30) |
| 273 | #define CONFIG_MAX_MEM_MAPPED CONFIG_SYS_DDR_BLOCK1_SIZE |
Mingkai Hu | e4e93ea | 2015-10-26 19:47:51 +0800 | [diff] [blame] | 274 | |
| 275 | #define QE_MURAM_SIZE 0x6000UL |
| 276 | #define MAX_QE_RISC 1 |
| 277 | #define QE_NUM_OF_SNUM 28 |
| 278 | |
Qianyu Gong | 8aec719 | 2016-07-05 16:01:53 +0800 | [diff] [blame] | 279 | #define CONFIG_SYS_FSL_IFC_BE |
Mingkai Hu | e4e93ea | 2015-10-26 19:47:51 +0800 | [diff] [blame] | 280 | |
| 281 | /* SMMU Defintions */ |
| 282 | #define SMMU_BASE 0x09000000 |
| 283 | |
| 284 | /* Generic Interrupt Controller Definitions */ |
| 285 | #define GICD_BASE 0x01401000 |
| 286 | #define GICC_BASE 0x01402000 |
Wenbin Song | a8f57a9 | 2017-01-17 18:31:15 +0800 | [diff] [blame] | 287 | #define GICH_BASE 0x01404000 |
| 288 | #define GICV_BASE 0x01406000 |
| 289 | #define GICD_SIZE 0x1000 |
| 290 | #define GICC_SIZE 0x2000 |
| 291 | #define GICH_SIZE 0x2000 |
| 292 | #define GICV_SIZE 0x2000 |
| 293 | #ifdef CONFIG_HAS_FEATURE_GIC64K_ALIGN |
| 294 | #define GICD_BASE_64K 0x01410000 |
| 295 | #define GICC_BASE_64K 0x01420000 |
| 296 | #define GICH_BASE_64K 0x01440000 |
| 297 | #define GICV_BASE_64K 0x01460000 |
| 298 | #define GICD_SIZE_64K 0x10000 |
| 299 | #define GICC_SIZE_64K 0x20000 |
| 300 | #define GICH_SIZE_64K 0x20000 |
| 301 | #define GICV_SIZE_64K 0x20000 |
| 302 | #endif |
| 303 | |
| 304 | #define DCFG_CCSR_SVR 0x1ee00a4 |
| 305 | #define REV1_0 0x10 |
| 306 | #define REV1_1 0x11 |
| 307 | #define GIC_ADDR_BIT 31 |
| 308 | #define SCFG_GIC400_ALIGN 0x1570188 |
Mingkai Hu | e4e93ea | 2015-10-26 19:47:51 +0800 | [diff] [blame] | 309 | |
Alex Porosanu | b4848d0 | 2016-04-29 15:17:59 +0300 | [diff] [blame] | 310 | #define CONFIG_SYS_FSL_MAX_NUM_OF_SEC 1 |
Prabhakar Kushwaha | d169ebe | 2016-06-03 18:41:31 +0530 | [diff] [blame] | 311 | |
York Sun | d297d39 | 2016-12-28 08:43:40 -0800 | [diff] [blame] | 312 | #elif defined(CONFIG_ARCH_LS1012A) |
Prabhakar Kushwaha | d169ebe | 2016-06-03 18:41:31 +0530 | [diff] [blame] | 313 | #define GICD_BASE 0x01401000 |
| 314 | #define GICC_BASE 0x01402000 |
Vinitha Pillai-B57223 | 6cb92e7 | 2017-03-23 13:48:19 +0530 | [diff] [blame] | 315 | #define CONFIG_SYS_FSL_MAX_NUM_OF_SEC 1 |
Prabhakar Kushwaha | 1fb2f11 | 2017-01-30 17:05:22 +0530 | [diff] [blame] | 316 | #define CONFIG_SYS_DDR_BLOCK1_SIZE ((phys_size_t)2 << 30) |
| 317 | #define CONFIG_MAX_MEM_MAPPED CONFIG_SYS_DDR_BLOCK1_SIZE |
| 318 | |
York Sun | bad4984 | 2016-09-26 08:09:24 -0700 | [diff] [blame] | 319 | #elif defined(CONFIG_ARCH_LS1046A) |
Mingkai Hu | cd54c0f | 2016-07-05 16:01:55 +0800 | [diff] [blame] | 320 | #define CONFIG_SYS_FMAN_V3 |
Laurentiu Tudor | 60707f4 | 2018-08-09 15:19:43 +0300 | [diff] [blame] | 321 | #define CONFIG_SYS_FSL_QMAN_V3 |
Mingkai Hu | cd54c0f | 2016-07-05 16:01:55 +0800 | [diff] [blame] | 322 | #define CONFIG_SYS_NUM_FMAN 1 |
| 323 | #define CONFIG_SYS_NUM_FM1_DTSEC 8 |
| 324 | #define CONFIG_SYS_NUM_FM1_10GEC 2 |
Mingkai Hu | cd54c0f | 2016-07-05 16:01:55 +0800 | [diff] [blame] | 325 | #define CONFIG_SYS_DDR_BLOCK1_SIZE ((phys_size_t)2 << 30) |
| 326 | #define CONFIG_MAX_MEM_MAPPED CONFIG_SYS_DDR_BLOCK1_SIZE |
| 327 | |
Mingkai Hu | cd54c0f | 2016-07-05 16:01:55 +0800 | [diff] [blame] | 328 | #define CONFIG_SYS_FSL_IFC_BE |
Mingkai Hu | cd54c0f | 2016-07-05 16:01:55 +0800 | [diff] [blame] | 329 | |
| 330 | /* SMMU Defintions */ |
| 331 | #define SMMU_BASE 0x09000000 |
| 332 | |
| 333 | /* Generic Interrupt Controller Definitions */ |
| 334 | #define GICD_BASE 0x01410000 |
| 335 | #define GICC_BASE 0x01420000 |
| 336 | |
| 337 | #define CONFIG_SYS_FSL_MAX_NUM_OF_SEC 1 |
Mingkai Hu | 0e58b51 | 2015-10-26 19:47:50 +0800 | [diff] [blame] | 338 | #else |
| 339 | #error SoC not defined |
| 340 | #endif |
Qianyu Gong | 8aec719 | 2016-07-05 16:01:53 +0800 | [diff] [blame] | 341 | #endif |
Mingkai Hu | 0e58b51 | 2015-10-26 19:47:50 +0800 | [diff] [blame] | 342 | |
| 343 | #endif /* _ASM_ARMV8_FSL_LAYERSCAPE_CONFIG_H_ */ |