|
1 |
| -# ARM Cortex-R platform configuration options |
| 1 | +# ARM Cortex-A and Cortex-R platform configuration options |
2 | 2 |
|
3 | 3 | # Copyright (c) 2018 Marvell
|
4 | 4 | # Copyright (c) 2018 Lexmark International, Inc.
|
| 5 | +# Copyright (c) 2021 Weidmueller Interface GmbH & Co. KG |
| 6 | +# |
5 | 7 | # SPDX-License-Identifier: Apache-2.0
|
6 | 8 |
|
7 | 9 | # NOTE: We have the specific core implementations first and outside of the
|
8 |
| -# if CPU_CORTEX_R block so that SoCs can select which core they are using |
9 |
| -# without having to select all the options related to that core. Everything |
10 |
| -# else is captured inside the if CPU_CORTEX_R block so they are not exposed |
11 |
| -# if one selects a different ARM Cortex Family (Cortex-A or Cortex-M) |
| 10 | +# if CPU_AARCH32_CORTEX_A / if CPU_CORTEX_R block so that SoCs can select |
| 11 | +# which core they are using without having to select all the options related |
| 12 | +# to that core. Everything else is captured inside the if CPU_CORTEX_A / if |
| 13 | +# CPU_CORTEX_R blocks so they are not exposed if one selects a different ARM |
| 14 | +# Cortex Family (Cortex-M). |
12 | 15 |
|
| 16 | +config CPU_CORTEX_A9 |
| 17 | + bool |
| 18 | + select CPU_AARCH32_CORTEX_A |
| 19 | + select ARMV7_A |
| 20 | + help |
| 21 | + This option signifies the use of a Cortex-A9 CPU. |
| 22 | + |
| 23 | +if CPU_AARCH32_CORTEX_A |
| 24 | + |
| 25 | +config ARMV7_A |
| 26 | + bool |
| 27 | + select ATOMIC_OPERATIONS_BUILTIN |
| 28 | + select ISA_ARM |
| 29 | + |
| 30 | +config ARMV7_EXCEPTION_STACK_SIZE |
| 31 | + int "Undefined Instruction and Abort stack size (in bytes)" |
| 32 | + default 256 |
| 33 | + help |
| 34 | + This option specifies the size of the stack used by the undefined |
| 35 | + instruction and data abort exception handlers. |
| 36 | + |
| 37 | +config ARMV7_FIQ_STACK_SIZE |
| 38 | + int "FIQ stack size (in bytes)" |
| 39 | + default 256 |
| 40 | + help |
| 41 | + This option specifies the size of the stack used by the FIQ handler. |
| 42 | + |
| 43 | +config ARMV7_SVC_STACK_SIZE |
| 44 | + int "SVC stack size (in bytes)" |
| 45 | + default 512 |
| 46 | + help |
| 47 | + This option specifies the size of the stack used by the SVC handler. |
| 48 | + |
| 49 | +config ARMV7_SYS_STACK_SIZE |
| 50 | + int "SYS stack size (in bytes)" |
| 51 | + default 1024 |
| 52 | + help |
| 53 | + This option specifies the size of the stack used by the system mode. |
| 54 | + |
| 55 | +config RUNTIME_NMI |
| 56 | + default y |
| 57 | + |
| 58 | +config GEN_ISR_TABLES |
| 59 | + default y |
| 60 | + |
| 61 | +config GEN_IRQ_VECTOR_TABLE |
| 62 | + default n |
| 63 | + |
| 64 | +endif # CPU_AARCH32_CORTEX_A |
13 | 65 |
|
14 | 66 | config CPU_CORTEX_R4
|
15 | 67 | bool
|
|
0 commit comments