blob: 17b470dbd4ec01d852fe6005ff858023e699b56a [file] [log] [blame]
York Sunb3d71642016-09-26 08:09:26 -07001config ARCH_LS1012A
York Sunfcd0e742016-10-04 14:31:47 -07002 bool
York Sun4dd8c612016-10-04 14:31:48 -07003 select FSL_LSCH2
York Sunb6fffd82016-10-04 18:03:08 -07004 select SYS_FSL_DDR_BE
York Sunb3d71642016-09-26 08:09:26 -07005 select SYS_FSL_MMDC
York Sun149eb332016-09-26 08:09:27 -07006 select SYS_FSL_ERRATUM_A010315
7
8config ARCH_LS1043A
York Sunfcd0e742016-10-04 14:31:47 -07009 bool
York Sun4dd8c612016-10-04 14:31:48 -070010 select FSL_LSCH2
York Sunb6fffd82016-10-04 18:03:08 -070011 select SYS_FSL_DDR_BE
12 select SYS_FSL_DDR_VER_50
York Sun149eb332016-09-26 08:09:27 -070013 select SYS_FSL_ERRATUM_A010315
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +080014 select SYS_FSL_ERRATUM_A010539
York Sunb3d71642016-09-26 08:09:26 -070015
York Sunbad49842016-09-26 08:09:24 -070016config ARCH_LS1046A
York Sunfcd0e742016-10-04 14:31:47 -070017 bool
York Sun4dd8c612016-10-04 14:31:48 -070018 select FSL_LSCH2
York Sunb6fffd82016-10-04 18:03:08 -070019 select SYS_FSL_DDR_BE
20 select SYS_FSL_DDR4
21 select SYS_FSL_DDR_VER_50
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +080022 select SYS_FSL_ERRATUM_A010539
York Sun6b62ef02016-10-04 18:01:34 -070023 select SYS_FSL_SRDS_2
York Sunb3d71642016-09-26 08:09:26 -070024
York Sunfcd0e742016-10-04 14:31:47 -070025config ARCH_LS2080A
26 bool
York Sun4dd8c612016-10-04 14:31:48 -070027 select FSL_LSCH3
York Sunb6fffd82016-10-04 18:03:08 -070028 select SYS_FSL_DDR4
29 select SYS_FSL_DDR_LE
30 select SYS_FSL_DDR_VER_50
York Sun6b62ef02016-10-04 18:01:34 -070031 select SYS_FSL_HAS_DP_DDR
York Sun92c36e22016-12-28 08:43:30 -080032 select SYS_FSL_HAS_SEC
33 select SYS_FSL_SEC_COMPAT_5
York Sun6b62ef02016-10-04 18:01:34 -070034 select SYS_FSL_SRDS_2
York Sun4dd8c612016-10-04 14:31:48 -070035
36config FSL_LSCH2
37 bool
York Sun92c36e22016-12-28 08:43:30 -080038 select SYS_FSL_HAS_SEC
39 select SYS_FSL_SEC_COMPAT_5
York Sun6b62ef02016-10-04 18:01:34 -070040 select SYS_FSL_SRDS_1
41 select SYS_HAS_SERDES
York Sun4dd8c612016-10-04 14:31:48 -070042
43config FSL_LSCH3
44 bool
York Sun6b62ef02016-10-04 18:01:34 -070045 select SYS_FSL_SRDS_1
46 select SYS_HAS_SERDES
York Sun4dd8c612016-10-04 14:31:48 -070047
48menu "Layerscape architecture"
49 depends on FSL_LSCH2 || FSL_LSCH3
York Sunfcd0e742016-10-04 14:31:47 -070050
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +080051menu "Layerscape PPA"
52config FSL_LS_PPA
53 bool "FSL Layerscape PPA firmware support"
macro.wave.z@gmail.com01bd3342016-12-08 11:58:22 +080054 depends on !ARMV8_PSCI
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +080055 depends on ARCH_LS1043A || ARCH_LS1046A
56 select FSL_PPA_ARMV8_PSCI
57 help
58 The FSL Primary Protected Application (PPA) is a software component
59 which is loaded during boot stage, and then remains resident in RAM
60 and runs in the TrustZone after boot.
61 Say y to enable it.
62
63config FSL_PPA_ARMV8_PSCI
64 bool "PSCI implementation in PPA firmware"
65 depends on FSL_LS_PPA
66 help
67 This config enables the ARMv8 PSCI implementation in PPA firmware.
68 This is a private PSCI implementation and different from those
69 implemented under the common ARMv8 PSCI framework.
70endmenu
71
York Sunb3d71642016-09-26 08:09:26 -070072config SYS_FSL_MMDC
York Sunfcd0e742016-10-04 14:31:47 -070073 bool
York Sun149eb332016-09-26 08:09:27 -070074
75config SYS_FSL_ERRATUM_A010315
76 bool "Workaround for PCIe erratum A010315"
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +080077
78config SYS_FSL_ERRATUM_A010539
79 bool "Workaround for PIN MUX erratum A010539"
York Sun4dd8c612016-10-04 14:31:48 -070080
York Sunf188d222016-10-04 14:45:01 -070081config MAX_CPUS
82 int "Maximum number of CPUs permitted for Layerscape"
83 default 4 if ARCH_LS1043A
84 default 4 if ARCH_LS1046A
85 default 16 if ARCH_LS2080A
86 default 1
87 help
88 Set this number to the maximum number of possible CPUs in the SoC.
89 SoCs may have multiple clusters with each cluster may have multiple
90 ports. If some ports are reserved but higher ports are used for
91 cores, count the reserved ports. This will allocate enough memory
92 in spin table to properly handle all cores.
93
York Sun0dc9abb2016-10-04 14:46:50 -070094config NUM_DDR_CONTROLLERS
95 int "Maximum DDR controllers"
96 default 3 if ARCH_LS2080A
97 default 1
98
York Sun728e7002016-12-02 09:32:35 -080099config SECURE_BOOT
100 bool
101 help
102 Enable Freescale Secure Boot feature
103
Yuan Yao52ae4fd2016-12-01 10:13:52 +0800104config QSPI_AHB_INIT
105 bool "Init the QSPI AHB bus"
106 help
107 The default setting for QSPI AHB bus just support 3bytes addressing.
108 But some QSPI flash size up to 64MBytes, so initialize the QSPI AHB
109 bus for those flashes to support the full QSPI flash size.
110
York Sune7310a32016-10-04 14:45:54 -0700111config SYS_FSL_IFC_BANK_COUNT
112 int "Maximum banks of Integrated flash controller"
113 depends on ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A
114 default 4 if ARCH_LS1043A
115 default 4 if ARCH_LS1046A
116 default 8 if ARCH_LS2080A
117
York Sun0dc9abb2016-10-04 14:46:50 -0700118config SYS_FSL_HAS_DP_DDR
119 bool
120
York Sun6b62ef02016-10-04 18:01:34 -0700121config SYS_FSL_SRDS_1
122 bool
123
124config SYS_FSL_SRDS_2
125 bool
126
127config SYS_HAS_SERDES
128 bool
129
York Sunb6fffd82016-10-04 18:03:08 -0700130config SYS_FSL_DDR
131 bool "Freescale DDR driver"
132 help
133 Select Freescale General DDR driver, shared between most Freescale
134 PowerPC- based SoCs (such as mpc83xx, mpc85xx, mpc86xx) and ARM-
135 based Layerscape SoCs (such as ls2080a).
136
137config SYS_FSL_DDR_BE
138 bool
139 help
140 Access DDR registers in big-endian.
141
142config SYS_FSL_DDR_LE
143 bool
144 help
145 Access DDR registers in little-endian.
146
147config SYS_FSL_DDR_VER
148 int
149 default 50 if SYS_FSL_DDR_VER_50
150
151config SYS_FSL_DDR_VER_50
152 bool
153
154config SYS_FSL_DDRC_ARM_GEN3
155 bool
156
157config SYS_FSL_DDRC_GEN4
158 bool
159
160config SYS_FSL_DDR3
161 bool "Freescale DDR3 controller"
162 depends on !SYS_FSL_DDR4
163 select SYS_FSL_DDR
164 select SYS_FSL_DDRC_ARM_GEN3
165 help
166 Enable Freescale DDR3 controller on ARM-based SoCs.
167
168config SYS_FSL_DDR4
169 bool "Freescale DDR4 controller"
170 select SYS_FSL_DDR
171 select SYS_FSL_DDRC_GEN4
172 help
173 Enable Freescale DDR4 controller.
174
York Sun4dd8c612016-10-04 14:31:48 -0700175endmenu