blob: a1f781edb74823f49bccc82b12baad5eced61b52 [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 Sunfa4199422016-12-28 08:43:31 -080034 select SYS_FSL_SEC_LE
York Sun6b62ef02016-10-04 18:01:34 -070035 select SYS_FSL_SRDS_2
York Sun4dd8c612016-10-04 14:31:48 -070036
37config FSL_LSCH2
38 bool
York Sun92c36e22016-12-28 08:43:30 -080039 select SYS_FSL_HAS_SEC
40 select SYS_FSL_SEC_COMPAT_5
York Sunfa4199422016-12-28 08:43:31 -080041 select SYS_FSL_SEC_BE
York Sun6b62ef02016-10-04 18:01:34 -070042 select SYS_FSL_SRDS_1
43 select SYS_HAS_SERDES
York Sun4dd8c612016-10-04 14:31:48 -070044
45config FSL_LSCH3
46 bool
York Sun6b62ef02016-10-04 18:01:34 -070047 select SYS_FSL_SRDS_1
48 select SYS_HAS_SERDES
York Sun4dd8c612016-10-04 14:31:48 -070049
50menu "Layerscape architecture"
51 depends on FSL_LSCH2 || FSL_LSCH3
York Sunfcd0e742016-10-04 14:31:47 -070052
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +080053menu "Layerscape PPA"
54config FSL_LS_PPA
55 bool "FSL Layerscape PPA firmware support"
macro.wave.z@gmail.com01bd3342016-12-08 11:58:22 +080056 depends on !ARMV8_PSCI
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +080057 depends on ARCH_LS1043A || ARCH_LS1046A
58 select FSL_PPA_ARMV8_PSCI
59 help
60 The FSL Primary Protected Application (PPA) is a software component
61 which is loaded during boot stage, and then remains resident in RAM
62 and runs in the TrustZone after boot.
63 Say y to enable it.
64
65config FSL_PPA_ARMV8_PSCI
66 bool "PSCI implementation in PPA firmware"
67 depends on FSL_LS_PPA
68 help
69 This config enables the ARMv8 PSCI implementation in PPA firmware.
70 This is a private PSCI implementation and different from those
71 implemented under the common ARMv8 PSCI framework.
72endmenu
73
York Sunb3d71642016-09-26 08:09:26 -070074config SYS_FSL_MMDC
York Sunfcd0e742016-10-04 14:31:47 -070075 bool
York Sun149eb332016-09-26 08:09:27 -070076
77config SYS_FSL_ERRATUM_A010315
78 bool "Workaround for PCIe erratum A010315"
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +080079
80config SYS_FSL_ERRATUM_A010539
81 bool "Workaround for PIN MUX erratum A010539"
York Sun4dd8c612016-10-04 14:31:48 -070082
York Sunf188d222016-10-04 14:45:01 -070083config MAX_CPUS
84 int "Maximum number of CPUs permitted for Layerscape"
85 default 4 if ARCH_LS1043A
86 default 4 if ARCH_LS1046A
87 default 16 if ARCH_LS2080A
88 default 1
89 help
90 Set this number to the maximum number of possible CPUs in the SoC.
91 SoCs may have multiple clusters with each cluster may have multiple
92 ports. If some ports are reserved but higher ports are used for
93 cores, count the reserved ports. This will allocate enough memory
94 in spin table to properly handle all cores.
95
York Sun0dc9abb2016-10-04 14:46:50 -070096config NUM_DDR_CONTROLLERS
97 int "Maximum DDR controllers"
98 default 3 if ARCH_LS2080A
99 default 1
100
York Sun728e7002016-12-02 09:32:35 -0800101config SECURE_BOOT
102 bool
103 help
104 Enable Freescale Secure Boot feature
105
Yuan Yao52ae4fd2016-12-01 10:13:52 +0800106config QSPI_AHB_INIT
107 bool "Init the QSPI AHB bus"
108 help
109 The default setting for QSPI AHB bus just support 3bytes addressing.
110 But some QSPI flash size up to 64MBytes, so initialize the QSPI AHB
111 bus for those flashes to support the full QSPI flash size.
112
York Sune7310a32016-10-04 14:45:54 -0700113config SYS_FSL_IFC_BANK_COUNT
114 int "Maximum banks of Integrated flash controller"
115 depends on ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A
116 default 4 if ARCH_LS1043A
117 default 4 if ARCH_LS1046A
118 default 8 if ARCH_LS2080A
119
York Sun0dc9abb2016-10-04 14:46:50 -0700120config SYS_FSL_HAS_DP_DDR
121 bool
122
York Sun6b62ef02016-10-04 18:01:34 -0700123config SYS_FSL_SRDS_1
124 bool
125
126config SYS_FSL_SRDS_2
127 bool
128
129config SYS_HAS_SERDES
130 bool
131
York Sunb6fffd82016-10-04 18:03:08 -0700132config SYS_FSL_DDR
133 bool "Freescale DDR driver"
134 help
135 Select Freescale General DDR driver, shared between most Freescale
136 PowerPC- based SoCs (such as mpc83xx, mpc85xx, mpc86xx) and ARM-
137 based Layerscape SoCs (such as ls2080a).
138
139config SYS_FSL_DDR_BE
140 bool
141 help
142 Access DDR registers in big-endian.
143
144config SYS_FSL_DDR_LE
145 bool
146 help
147 Access DDR registers in little-endian.
148
149config SYS_FSL_DDR_VER
150 int
151 default 50 if SYS_FSL_DDR_VER_50
152
153config SYS_FSL_DDR_VER_50
154 bool
155
156config SYS_FSL_DDRC_ARM_GEN3
157 bool
158
159config SYS_FSL_DDRC_GEN4
160 bool
161
162config SYS_FSL_DDR3
163 bool "Freescale DDR3 controller"
164 depends on !SYS_FSL_DDR4
165 select SYS_FSL_DDR
166 select SYS_FSL_DDRC_ARM_GEN3
167 help
168 Enable Freescale DDR3 controller on ARM-based SoCs.
169
170config SYS_FSL_DDR4
171 bool "Freescale DDR4 controller"
172 select SYS_FSL_DDR
173 select SYS_FSL_DDRC_GEN4
174 help
175 Enable Freescale DDR4 controller.
176
York Sun4dd8c612016-10-04 14:31:48 -0700177endmenu