York Sun | b3d7164 | 2016-09-26 08:09:26 -0700 | [diff] [blame] | 1 | config ARCH_LS1012A |
York Sun | fcd0e74 | 2016-10-04 14:31:47 -0700 | [diff] [blame] | 2 | bool |
Hou Zhiqiang | 4d1525a | 2017-01-06 17:41:11 +0800 | [diff] [blame] | 3 | select ARMV8_SET_SMPEN |
York Sun | 4dd8c61 | 2016-10-04 14:31:48 -0700 | [diff] [blame] | 4 | select FSL_LSCH2 |
York Sun | b6fffd8 | 2016-10-04 18:03:08 -0700 | [diff] [blame] | 5 | select SYS_FSL_DDR_BE |
York Sun | b3d7164 | 2016-09-26 08:09:26 -0700 | [diff] [blame] | 6 | select SYS_FSL_MMDC |
York Sun | 149eb33 | 2016-09-26 08:09:27 -0700 | [diff] [blame] | 7 | select SYS_FSL_ERRATUM_A010315 |
| 8 | |
| 9 | config ARCH_LS1043A |
York Sun | fcd0e74 | 2016-10-04 14:31:47 -0700 | [diff] [blame] | 10 | bool |
Hou Zhiqiang | 4d1525a | 2017-01-06 17:41:11 +0800 | [diff] [blame] | 11 | select ARMV8_SET_SMPEN |
York Sun | 4dd8c61 | 2016-10-04 14:31:48 -0700 | [diff] [blame] | 12 | select FSL_LSCH2 |
York Sun | d297d39 | 2016-12-28 08:43:40 -0800 | [diff] [blame] | 13 | select SYS_FSL_DDR |
York Sun | b6fffd8 | 2016-10-04 18:03:08 -0700 | [diff] [blame] | 14 | select SYS_FSL_DDR_BE |
| 15 | select SYS_FSL_DDR_VER_50 |
York Sun | 1dc61ca | 2016-12-28 08:43:41 -0800 | [diff] [blame] | 16 | select SYS_FSL_ERRATUM_A008850 |
| 17 | select SYS_FSL_ERRATUM_A009660 |
| 18 | select SYS_FSL_ERRATUM_A009663 |
| 19 | select SYS_FSL_ERRATUM_A009929 |
| 20 | select SYS_FSL_ERRATUM_A009942 |
York Sun | 149eb33 | 2016-09-26 08:09:27 -0700 | [diff] [blame] | 21 | select SYS_FSL_ERRATUM_A010315 |
Hou Zhiqiang | c06b30a | 2016-09-29 12:42:44 +0800 | [diff] [blame] | 22 | select SYS_FSL_ERRATUM_A010539 |
York Sun | d297d39 | 2016-12-28 08:43:40 -0800 | [diff] [blame] | 23 | select SYS_FSL_HAS_DDR3 |
| 24 | select SYS_FSL_HAS_DDR4 |
York Sun | b3d7164 | 2016-09-26 08:09:26 -0700 | [diff] [blame] | 25 | |
York Sun | bad4984 | 2016-09-26 08:09:24 -0700 | [diff] [blame] | 26 | config ARCH_LS1046A |
York Sun | fcd0e74 | 2016-10-04 14:31:47 -0700 | [diff] [blame] | 27 | bool |
Hou Zhiqiang | 4d1525a | 2017-01-06 17:41:11 +0800 | [diff] [blame] | 28 | select ARMV8_SET_SMPEN |
York Sun | 4dd8c61 | 2016-10-04 14:31:48 -0700 | [diff] [blame] | 29 | select FSL_LSCH2 |
York Sun | d297d39 | 2016-12-28 08:43:40 -0800 | [diff] [blame] | 30 | select SYS_FSL_DDR |
York Sun | b6fffd8 | 2016-10-04 18:03:08 -0700 | [diff] [blame] | 31 | select SYS_FSL_DDR_BE |
York Sun | b6fffd8 | 2016-10-04 18:03:08 -0700 | [diff] [blame] | 32 | select SYS_FSL_DDR_VER_50 |
York Sun | 1dc61ca | 2016-12-28 08:43:41 -0800 | [diff] [blame] | 33 | select SYS_FSL_ERRATUM_A008511 |
| 34 | select SYS_FSL_ERRATUM_A009801 |
| 35 | select SYS_FSL_ERRATUM_A009803 |
| 36 | select SYS_FSL_ERRATUM_A009942 |
| 37 | select SYS_FSL_ERRATUM_A010165 |
Hou Zhiqiang | c06b30a | 2016-09-29 12:42:44 +0800 | [diff] [blame] | 38 | select SYS_FSL_ERRATUM_A010539 |
York Sun | d297d39 | 2016-12-28 08:43:40 -0800 | [diff] [blame] | 39 | select SYS_FSL_HAS_DDR4 |
York Sun | 6b62ef0 | 2016-10-04 18:01:34 -0700 | [diff] [blame] | 40 | select SYS_FSL_SRDS_2 |
York Sun | b3d7164 | 2016-09-26 08:09:26 -0700 | [diff] [blame] | 41 | |
York Sun | fcd0e74 | 2016-10-04 14:31:47 -0700 | [diff] [blame] | 42 | config ARCH_LS2080A |
| 43 | bool |
Hou Zhiqiang | 4d1525a | 2017-01-06 17:41:11 +0800 | [diff] [blame] | 44 | select ARMV8_SET_SMPEN |
York Sun | 4dd8c61 | 2016-10-04 14:31:48 -0700 | [diff] [blame] | 45 | select FSL_LSCH3 |
York Sun | d297d39 | 2016-12-28 08:43:40 -0800 | [diff] [blame] | 46 | select SYS_FSL_DDR |
York Sun | b6fffd8 | 2016-10-04 18:03:08 -0700 | [diff] [blame] | 47 | select SYS_FSL_DDR_LE |
| 48 | select SYS_FSL_DDR_VER_50 |
York Sun | 6b62ef0 | 2016-10-04 18:01:34 -0700 | [diff] [blame] | 49 | select SYS_FSL_HAS_DP_DDR |
York Sun | 92c36e2 | 2016-12-28 08:43:30 -0800 | [diff] [blame] | 50 | select SYS_FSL_HAS_SEC |
York Sun | d297d39 | 2016-12-28 08:43:40 -0800 | [diff] [blame] | 51 | select SYS_FSL_HAS_DDR4 |
York Sun | 92c36e2 | 2016-12-28 08:43:30 -0800 | [diff] [blame] | 52 | select SYS_FSL_SEC_COMPAT_5 |
York Sun | fa419942 | 2016-12-28 08:43:31 -0800 | [diff] [blame] | 53 | select SYS_FSL_SEC_LE |
York Sun | 6b62ef0 | 2016-10-04 18:01:34 -0700 | [diff] [blame] | 54 | select SYS_FSL_SRDS_2 |
York Sun | 1dc61ca | 2016-12-28 08:43:41 -0800 | [diff] [blame] | 55 | select SYS_FSL_ERRATUM_A008336 |
| 56 | select SYS_FSL_ERRATUM_A008511 |
| 57 | select SYS_FSL_ERRATUM_A008514 |
| 58 | select SYS_FSL_ERRATUM_A008585 |
| 59 | select SYS_FSL_ERRATUM_A009635 |
| 60 | select SYS_FSL_ERRATUM_A009663 |
| 61 | select SYS_FSL_ERRATUM_A009801 |
| 62 | select SYS_FSL_ERRATUM_A009803 |
| 63 | select SYS_FSL_ERRATUM_A009942 |
| 64 | select SYS_FSL_ERRATUM_A010165 |
York Sun | 4dd8c61 | 2016-10-04 14:31:48 -0700 | [diff] [blame] | 65 | |
| 66 | config FSL_LSCH2 |
| 67 | bool |
York Sun | 92c36e2 | 2016-12-28 08:43:30 -0800 | [diff] [blame] | 68 | select SYS_FSL_HAS_SEC |
| 69 | select SYS_FSL_SEC_COMPAT_5 |
York Sun | fa419942 | 2016-12-28 08:43:31 -0800 | [diff] [blame] | 70 | select SYS_FSL_SEC_BE |
York Sun | 6b62ef0 | 2016-10-04 18:01:34 -0700 | [diff] [blame] | 71 | select SYS_FSL_SRDS_1 |
| 72 | select SYS_HAS_SERDES |
York Sun | 4dd8c61 | 2016-10-04 14:31:48 -0700 | [diff] [blame] | 73 | |
| 74 | config FSL_LSCH3 |
| 75 | bool |
York Sun | 6b62ef0 | 2016-10-04 18:01:34 -0700 | [diff] [blame] | 76 | select SYS_FSL_SRDS_1 |
| 77 | select SYS_HAS_SERDES |
York Sun | 4dd8c61 | 2016-10-04 14:31:48 -0700 | [diff] [blame] | 78 | |
| 79 | menu "Layerscape architecture" |
| 80 | depends on FSL_LSCH2 || FSL_LSCH3 |
York Sun | fcd0e74 | 2016-10-04 14:31:47 -0700 | [diff] [blame] | 81 | |
Hou Zhiqiang | d553bf2 | 2016-12-13 14:54:24 +0800 | [diff] [blame] | 82 | config FSL_PCIE_COMPAT |
| 83 | string "PCIe compatible of Kernel DT" |
| 84 | depends on PCIE_LAYERSCAPE |
| 85 | default "fsl,ls1012a-pcie" if ARCH_LS1012A |
| 86 | default "fsl,ls1043a-pcie" if ARCH_LS1043A |
| 87 | default "fsl,ls1046a-pcie" if ARCH_LS1046A |
| 88 | default "fsl,ls2080a-pcie" if ARCH_LS2080A |
| 89 | help |
| 90 | This compatible is used to find pci controller node in Kernel DT |
| 91 | to complete fixup. |
| 92 | |
macro.wave.z@gmail.com | ec2d7ed | 2016-12-08 11:58:21 +0800 | [diff] [blame] | 93 | menu "Layerscape PPA" |
| 94 | config FSL_LS_PPA |
| 95 | bool "FSL Layerscape PPA firmware support" |
macro.wave.z@gmail.com | 01bd334 | 2016-12-08 11:58:22 +0800 | [diff] [blame] | 96 | depends on !ARMV8_PSCI |
macro.wave.z@gmail.com | ec2d7ed | 2016-12-08 11:58:21 +0800 | [diff] [blame] | 97 | depends on ARCH_LS1043A || ARCH_LS1046A |
| 98 | select FSL_PPA_ARMV8_PSCI |
| 99 | help |
| 100 | The FSL Primary Protected Application (PPA) is a software component |
| 101 | which is loaded during boot stage, and then remains resident in RAM |
| 102 | and runs in the TrustZone after boot. |
| 103 | Say y to enable it. |
| 104 | |
| 105 | config FSL_PPA_ARMV8_PSCI |
| 106 | bool "PSCI implementation in PPA firmware" |
| 107 | depends on FSL_LS_PPA |
| 108 | help |
| 109 | This config enables the ARMv8 PSCI implementation in PPA firmware. |
| 110 | This is a private PSCI implementation and different from those |
| 111 | implemented under the common ARMv8 PSCI framework. |
| 112 | endmenu |
| 113 | |
York Sun | 149eb33 | 2016-09-26 08:09:27 -0700 | [diff] [blame] | 114 | config SYS_FSL_ERRATUM_A010315 |
| 115 | bool "Workaround for PCIe erratum A010315" |
Hou Zhiqiang | c06b30a | 2016-09-29 12:42:44 +0800 | [diff] [blame] | 116 | |
| 117 | config SYS_FSL_ERRATUM_A010539 |
| 118 | bool "Workaround for PIN MUX erratum A010539" |
York Sun | 4dd8c61 | 2016-10-04 14:31:48 -0700 | [diff] [blame] | 119 | |
York Sun | f188d22 | 2016-10-04 14:45:01 -0700 | [diff] [blame] | 120 | config MAX_CPUS |
| 121 | int "Maximum number of CPUs permitted for Layerscape" |
| 122 | default 4 if ARCH_LS1043A |
| 123 | default 4 if ARCH_LS1046A |
| 124 | default 16 if ARCH_LS2080A |
| 125 | default 1 |
| 126 | help |
| 127 | Set this number to the maximum number of possible CPUs in the SoC. |
| 128 | SoCs may have multiple clusters with each cluster may have multiple |
| 129 | ports. If some ports are reserved but higher ports are used for |
| 130 | cores, count the reserved ports. This will allocate enough memory |
| 131 | in spin table to properly handle all cores. |
| 132 | |
York Sun | 728e700 | 2016-12-02 09:32:35 -0800 | [diff] [blame] | 133 | config SECURE_BOOT |
| 134 | bool |
| 135 | help |
| 136 | Enable Freescale Secure Boot feature |
| 137 | |
Yuan Yao | 52ae4fd | 2016-12-01 10:13:52 +0800 | [diff] [blame] | 138 | config QSPI_AHB_INIT |
| 139 | bool "Init the QSPI AHB bus" |
| 140 | help |
| 141 | The default setting for QSPI AHB bus just support 3bytes addressing. |
| 142 | But some QSPI flash size up to 64MBytes, so initialize the QSPI AHB |
| 143 | bus for those flashes to support the full QSPI flash size. |
| 144 | |
York Sun | e7310a3 | 2016-10-04 14:45:54 -0700 | [diff] [blame] | 145 | config SYS_FSL_IFC_BANK_COUNT |
| 146 | int "Maximum banks of Integrated flash controller" |
| 147 | depends on ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A |
| 148 | default 4 if ARCH_LS1043A |
| 149 | default 4 if ARCH_LS1046A |
| 150 | default 8 if ARCH_LS2080A |
| 151 | |
York Sun | 0dc9abb | 2016-10-04 14:46:50 -0700 | [diff] [blame] | 152 | config SYS_FSL_HAS_DP_DDR |
| 153 | bool |
| 154 | |
York Sun | 6b62ef0 | 2016-10-04 18:01:34 -0700 | [diff] [blame] | 155 | config SYS_FSL_SRDS_1 |
| 156 | bool |
| 157 | |
| 158 | config SYS_FSL_SRDS_2 |
| 159 | bool |
| 160 | |
| 161 | config SYS_HAS_SERDES |
| 162 | bool |
| 163 | |
York Sun | 4dd8c61 | 2016-10-04 14:31:48 -0700 | [diff] [blame] | 164 | endmenu |
York Sun | 1dc61ca | 2016-12-28 08:43:41 -0800 | [diff] [blame] | 165 | |
Hou Zhiqiang | 3f91cda | 2017-01-10 16:44:15 +0800 | [diff] [blame^] | 166 | menu "Layerscape clock tree configuration" |
| 167 | depends on FSL_LSCH2 || FSL_LSCH3 |
| 168 | |
| 169 | config SYS_FSL_CLK |
| 170 | bool "Enable clock tree initialization" |
| 171 | default y |
| 172 | |
| 173 | config CLUSTER_CLK_FREQ |
| 174 | int "Reference clock of core cluster" |
| 175 | depends on ARCH_LS1012A |
| 176 | default 100000000 |
| 177 | help |
| 178 | This number is the reference clock frequency of core PLL. |
| 179 | For most platforms, the core PLL and Platform PLL have the same |
| 180 | reference clock, but for some platforms, LS1012A for instance, |
| 181 | they are provided sepatately. |
| 182 | |
| 183 | config SYS_FSL_PCLK_DIV |
| 184 | int "Platform clock divider" |
| 185 | default 1 if ARCH_LS1043A |
| 186 | default 1 if ARCH_LS1046A |
| 187 | default 2 |
| 188 | help |
| 189 | This is the divider that is used to derive Platform clock from |
| 190 | Platform PLL, in another word: |
| 191 | Platform_clk = Platform_PLL_freq / this_divider |
| 192 | |
| 193 | config SYS_FSL_DSPI_CLK_DIV |
| 194 | int "DSPI clock divider" |
| 195 | default 1 if ARCH_LS1043A |
| 196 | default 2 |
| 197 | help |
| 198 | This is the divider that is used to derive DSPI clock from Platform |
| 199 | PLL, in another word DSPI_clk = Platform_PLL_freq / this_divider. |
| 200 | |
| 201 | config SYS_FSL_DUART_CLK_DIV |
| 202 | int "DUART clock divider" |
| 203 | default 1 if ARCH_LS1043A |
| 204 | default 2 |
| 205 | help |
| 206 | This is the divider that is used to derive DUART clock from Platform |
| 207 | clock, in another word DUART_clk = Platform_clk / this_divider. |
| 208 | |
| 209 | config SYS_FSL_I2C_CLK_DIV |
| 210 | int "I2C clock divider" |
| 211 | default 1 if ARCH_LS1043A |
| 212 | default 2 |
| 213 | help |
| 214 | This is the divider that is used to derive I2C clock from Platform |
| 215 | clock, in another word I2C_clk = Platform_clk / this_divider. |
| 216 | |
| 217 | config SYS_FSL_IFC_CLK_DIV |
| 218 | int "IFC clock divider" |
| 219 | default 1 if ARCH_LS1043A |
| 220 | default 2 |
| 221 | help |
| 222 | This is the divider that is used to derive IFC clock from Platform |
| 223 | clock, in another word IFC_clk = Platform_clk / this_divider. |
| 224 | |
| 225 | config SYS_FSL_LPUART_CLK_DIV |
| 226 | int "LPUART clock divider" |
| 227 | default 1 if ARCH_LS1043A |
| 228 | default 2 |
| 229 | help |
| 230 | This is the divider that is used to derive LPUART clock from Platform |
| 231 | clock, in another word LPUART_clk = Platform_clk / this_divider. |
| 232 | |
| 233 | config SYS_FSL_SDHC_CLK_DIV |
| 234 | int "SDHC clock divider" |
| 235 | default 1 if ARCH_LS1043A |
| 236 | default 1 if ARCH_LS1012A |
| 237 | default 2 |
| 238 | help |
| 239 | This is the divider that is used to derive SDHC clock from Platform |
| 240 | clock, in another word SDHC_clk = Platform_clk / this_divider. |
| 241 | endmenu |
| 242 | |
York Sun | 1dc61ca | 2016-12-28 08:43:41 -0800 | [diff] [blame] | 243 | config SYS_FSL_ERRATUM_A008336 |
| 244 | bool |
| 245 | |
| 246 | config SYS_FSL_ERRATUM_A008514 |
| 247 | bool |
| 248 | |
| 249 | config SYS_FSL_ERRATUM_A008585 |
| 250 | bool |
| 251 | |
| 252 | config SYS_FSL_ERRATUM_A008850 |
| 253 | bool |
| 254 | |
| 255 | config SYS_FSL_ERRATUM_A009635 |
| 256 | bool |
| 257 | |
| 258 | config SYS_FSL_ERRATUM_A009660 |
| 259 | bool |
| 260 | |
| 261 | config SYS_FSL_ERRATUM_A009929 |
| 262 | bool |