|
6 | 6 | # SPDX-License-Identifier: Apache-2.0
|
7 | 7 | #
|
8 | 8 |
|
| 9 | +# NOTE: We have the specific core implementations first and outside of the |
| 10 | +# if CPU_CORTEX_M block so that SoCs can select which core they are using |
| 11 | +# without having to select all the options related to that core. Everything |
| 12 | +# else is captured inside the if CPU_CORTEX_M block so they are not exposed |
| 13 | +# if one select a differnet ARM Cortex Family (Cortex-A or Cortex-R) |
| 14 | + |
| 15 | +config CPU_CORTEX_M0 |
| 16 | + bool |
| 17 | + select CPU_CORTEX_M |
| 18 | + # Omit prompt to signify "hidden" option |
| 19 | + select ARMV6_M_ARMV8_M_BASELINE |
| 20 | + help |
| 21 | + This option signifies the use of a Cortex-M0 CPU |
| 22 | + |
| 23 | +config CPU_CORTEX_M0PLUS |
| 24 | + bool |
| 25 | + select CPU_CORTEX_M |
| 26 | + # Omit prompt to signify "hidden" option |
| 27 | + select ARMV6_M_ARMV8_M_BASELINE |
| 28 | + help |
| 29 | + This option signifies the use of a Cortex-M0+ CPU |
| 30 | + |
| 31 | +config CPU_CORTEX_M3 |
| 32 | + bool |
| 33 | + select CPU_CORTEX_M |
| 34 | + # Omit prompt to signify "hidden" option |
| 35 | + select ARMV7_M_ARMV8_M_MAINLINE |
| 36 | + help |
| 37 | + This option signifies the use of a Cortex-M3 CPU |
| 38 | + |
| 39 | +config CPU_CORTEX_M4 |
| 40 | + bool |
| 41 | + select CPU_CORTEX_M |
| 42 | + # Omit prompt to signify "hidden" option |
| 43 | + select ARMV7_M_ARMV8_M_MAINLINE |
| 44 | + help |
| 45 | + This option signifies the use of a Cortex-M4 CPU |
| 46 | + |
| 47 | +config CPU_CORTEX_M23 |
| 48 | + bool |
| 49 | + select CPU_CORTEX_M |
| 50 | + # Omit prompt to signify "hidden" option |
| 51 | + select ARMV6_M_ARMV8_M_BASELINE |
| 52 | + help |
| 53 | + This option signifies the use of a Cortex-M23 CPU |
| 54 | + |
| 55 | +config CPU_CORTEX_M33 |
| 56 | + bool |
| 57 | + select CPU_CORTEX_M |
| 58 | + # Omit prompt to signify "hidden" option |
| 59 | + select ARMV7_M_ARMV8_M_MAINLINE |
| 60 | + help |
| 61 | + This option signifies the use of a Cortex-M33 CPU |
| 62 | + |
| 63 | +config CPU_CORTEX_M7 |
| 64 | + bool |
| 65 | + select CPU_CORTEX_M |
| 66 | + # Omit prompt to signify "hidden" option |
| 67 | + select ARMV7_M_ARMV8_M_MAINLINE |
| 68 | + default n |
| 69 | + help |
| 70 | + This option signifies the use of a Cortex-M7 CPU |
| 71 | + |
| 72 | +if CPU_CORTEX_M |
| 73 | + |
9 | 74 | config ISA_THUMB2
|
10 | 75 | bool
|
11 | 76 | # Omit prompt to signify "hidden" option
|
@@ -116,59 +181,6 @@ config ARMV7_M_ARMV8_M_FP
|
116 | 181 | implementation, or the use of an ARMv8-M processor
|
117 | 182 | implementation supporting the Floating-Point Extension.
|
118 | 183 |
|
119 |
| -config CPU_CORTEX_M0 |
120 |
| - bool |
121 |
| - # Omit prompt to signify "hidden" option |
122 |
| - select ARMV6_M_ARMV8_M_BASELINE |
123 |
| - help |
124 |
| - This option signifies the use of a Cortex-M0 CPU |
125 |
| - |
126 |
| -config CPU_CORTEX_M0PLUS |
127 |
| - bool |
128 |
| - # Omit prompt to signify "hidden" option |
129 |
| - select ARMV6_M_ARMV8_M_BASELINE |
130 |
| - help |
131 |
| - This option signifies the use of a Cortex-M0+ CPU |
132 |
| - |
133 |
| -config CPU_CORTEX_M3 |
134 |
| - bool |
135 |
| - # Omit prompt to signify "hidden" option |
136 |
| - select ARMV7_M_ARMV8_M_MAINLINE |
137 |
| - help |
138 |
| - This option signifies the use of a Cortex-M3 CPU |
139 |
| - |
140 |
| -config CPU_CORTEX_M4 |
141 |
| - bool |
142 |
| - # Omit prompt to signify "hidden" option |
143 |
| - select ARMV7_M_ARMV8_M_MAINLINE |
144 |
| - select ARMV7_M_ARMV8_M_FP if CPU_HAS_FPU |
145 |
| - help |
146 |
| - This option signifies the use of a Cortex-M4 CPU |
147 |
| - |
148 |
| -config CPU_CORTEX_M23 |
149 |
| - bool |
150 |
| - # Omit prompt to signify "hidden" option |
151 |
| - select ARMV6_M_ARMV8_M_BASELINE |
152 |
| - help |
153 |
| - This option signifies the use of a Cortex-M23 CPU |
154 |
| - |
155 |
| -config CPU_CORTEX_M33 |
156 |
| - bool |
157 |
| - # Omit prompt to signify "hidden" option |
158 |
| - select ARMV7_M_ARMV8_M_MAINLINE |
159 |
| - select ARMV7_M_ARMV8_M_FP if CPU_HAS_FPU |
160 |
| - help |
161 |
| - This option signifies the use of a Cortex-M33 CPU |
162 |
| - |
163 |
| -config CPU_CORTEX_M7 |
164 |
| - bool |
165 |
| - # Omit prompt to signify "hidden" option |
166 |
| - select ARMV7_M_ARMV8_M_MAINLINE |
167 |
| - select ARMV7_M_ARMV8_M_FP if CPU_HAS_FPU |
168 |
| - default n |
169 |
| - help |
170 |
| - This option signifies the use of a Cortex-M7 CPU |
171 |
| - |
172 | 184 | menu "ARM Cortex-M options"
|
173 | 185 | depends on CPU_CORTEX_M
|
174 | 186 |
|
@@ -259,3 +271,5 @@ config SW_VECTOR_RELAY
|
259 | 271 | (or an Armv8-M baseline core) with no VTOR and no other hardware
|
260 | 272 | relocation table mechanisms.
|
261 | 273 | endmenu
|
| 274 | + |
| 275 | +endif # CPU_CORTEX_M |
0 commit comments