diff options
Diffstat (limited to 'libcpu')
| -rw-r--r-- | libcpu/Kconfig | 174 | ||||
| -rw-r--r-- | libcpu/arm/Kconfig | 176 |
2 files changed, 177 insertions, 173 deletions
diff --git a/libcpu/Kconfig b/libcpu/Kconfig index 3b1edab250..ead8d14794 100644 --- a/libcpu/Kconfig +++ b/libcpu/Kconfig @@ -24,9 +24,7 @@ config ARCH_USING_HW_ATOMIC_16 config ARCH_CPU_BIG_ENDIAN bool -config ARCH_ARM_BOOTWITH_FLUSH_CACHE - bool - default n +rsource "arm/Kconfig" config ARCH_CPU_STACK_GROWS_UPWARD bool @@ -42,97 +40,6 @@ config ARCH_MM_MMU config ARCH_MM_MPU bool -config ARCH_ARM - bool - -config ARCH_ARM_CORTEX_M - bool - select ARCH_ARM - -config ARCH_ARM_CORTEX_R - bool - select ARCH_ARM - -config ARCH_ARM_CORTEX_FPU - bool - -config ARCH_ARM_CORTEX_SECURE - bool - -config ARCH_ARM_CORTEX_M0 - bool - select ARCH_ARM_CORTEX_M - -config ARCH_ARM_CORTEX_M3 - bool - select ARCH_ARM_CORTEX_M - select RT_USING_CPU_FFS - select RT_USING_HW_ATOMIC - select ARCH_USING_HW_ATOMIC_8 - select ARCH_USING_HW_ATOMIC_16 - -config ARCH_ARM_MPU - bool - depends on ARCH_ARM - select ARCH_MM_MPU - -config ARCH_ARM_CORTEX_M4 - bool - select ARCH_ARM_CORTEX_M - select RT_USING_CPU_FFS - select RT_USING_HW_ATOMIC - select ARCH_USING_HW_ATOMIC_8 - select ARCH_USING_HW_ATOMIC_16 - -config ARCH_ARM_CORTEX_M7 - bool - select ARCH_ARM_CORTEX_M - select RT_USING_CPU_FFS - select RT_USING_CACHE - select RT_USING_HW_ATOMIC - select ARCH_USING_HW_ATOMIC_8 - select ARCH_USING_HW_ATOMIC_16 - -config ARCH_ARM_CORTEX_M85 - bool - select ARCH_ARM_CORTEX_M - select RT_USING_CPU_FFS - select RT_USING_HW_ATOMIC - select ARCH_USING_HW_ATOMIC_8 - select ARCH_USING_HW_ATOMIC_16 - -config ARCH_ARM_CORTEX_M23 - bool - select ARCH_ARM_CORTEX_M - select RT_USING_HW_ATOMIC - select ARCH_USING_HW_ATOMIC_8 - select ARCH_USING_HW_ATOMIC_16 - -config ARCH_ARM_CORTEX_M33 - bool - select ARCH_ARM_CORTEX_M - select RT_USING_CPU_FFS - select RT_USING_HW_ATOMIC - select ARCH_USING_HW_ATOMIC_8 - select ARCH_USING_HW_ATOMIC_16 - -config ARCH_ARM_CORTEX_R - bool - select ARCH_ARM - select RT_USING_HW_ATOMIC - select ARCH_USING_HW_ATOMIC_8 - select ARCH_USING_HW_ATOMIC_16 - -config ARCH_ARM_CORTEX_R52 - bool - select ARCH_ARM_CORTEX_R - -config ARCH_ARM_MMU - bool - select RT_USING_CACHE - select ARCH_MM_MMU - depends on ARCH_ARM - if RT_USING_SMART config KERNEL_VADDR_START hex "The virtural address of kernel start" @@ -141,87 +48,8 @@ if RT_USING_SMART default 0xffffffc000000000 if ARCH_RISCV && ARCH_REMAP_KERNEL default 0x80000000 if ARCH_RISCV depends on ARCH_MM_MMU - - config RT_IOREMAP_LATE - bool "Support to create IO mapping in the kernel address space after system initlalization." - default n - depends on ARCH_ARM_CORTEX_A - depends on ARCH_MM_MMU endif -config ARCH_ARM_ARM9 - bool - select ARCH_ARM - -config ARCH_ARM_ARM11 - bool - select ARCH_ARM - -config ARCH_ARM_CORTEX_A - bool - select ARCH_ARM - select ARCH_ARM_MMU - select RT_USING_CPU_FFS - select RT_USING_HW_ATOMIC - select ARCH_USING_HW_ATOMIC_8 - select ARCH_USING_HW_ATOMIC_16 - - if ARCH_ARM_CORTEX_A - config RT_SMP_AUTO_BOOT - bool - default n - - config RT_USING_GIC_V2 - bool - default n - - config RT_USING_GIC_V3 - bool - default n - - config RT_NO_USING_GIC - bool - default y if !RT_USING_GIC_V2 && !RT_USING_GIC_V3 - endif - -config ARCH_ARM_CORTEX_A5 - bool - select ARCH_ARM_CORTEX_A - -config ARCH_ARM_CORTEX_A7 - bool - select ARCH_ARM_CORTEX_A - -config ARCH_ARM_CORTEX_A8 - bool - select ARCH_ARM_CORTEX_A - -config ARCH_ARM_CORTEX_A9 - bool - select ARCH_ARM_CORTEX_A - -config ARCH_ARM_CORTEX_A55 - bool - select ARCH_ARM_CORTEX_A - -config ARCH_ARM_SECURE_MODE - bool "Running in secure mode [ARM Cortex-A]" - default n - depends on ARCH_ARM_CORTEX_A - -config RT_BACKTRACE_FUNCTION_NAME - bool "To show function name when backtrace." - default n - depends on ARCH_ARM_CORTEX_A - -config ARCH_ARMV8 - bool - select ARCH_ARM - select ARCH_ARM_MMU - select RT_USING_CPU_FFS - select ARCH_USING_ASID - select ARCH_USING_IRQ_CTX_LIST - config ARCH_MIPS bool diff --git a/libcpu/arm/Kconfig b/libcpu/arm/Kconfig new file mode 100644 index 0000000000..80a52ec350 --- /dev/null +++ b/libcpu/arm/Kconfig @@ -0,0 +1,176 @@ +config ARCH_ARM_BOOTWITH_FLUSH_CACHE + bool + default n + +config ARCH_ARM + bool + +config ARCH_ARM_CORTEX_M + bool + select ARCH_ARM + +config ARCH_ARM_CORTEX_R + bool + select ARCH_ARM + +config ARCH_ARM_CORTEX_FPU + bool + +config ARCH_ARM_CORTEX_SECURE + bool + +config ARCH_ARM_CORTEX_M0 + bool + select ARCH_ARM_CORTEX_M + +config ARCH_ARM_CORTEX_M3 + bool + select ARCH_ARM_CORTEX_M + select RT_USING_CPU_FFS + select RT_USING_HW_ATOMIC + select ARCH_USING_HW_ATOMIC_8 + select ARCH_USING_HW_ATOMIC_16 + +config ARCH_ARM_MPU + bool + depends on ARCH_ARM + select ARCH_MM_MPU + +config ARCH_ARM_CORTEX_M4 + bool + select ARCH_ARM_CORTEX_M + select RT_USING_CPU_FFS + select RT_USING_HW_ATOMIC + select ARCH_USING_HW_ATOMIC_8 + select ARCH_USING_HW_ATOMIC_16 + +config ARCH_ARM_CORTEX_M7 + bool + select ARCH_ARM_CORTEX_M + select RT_USING_CPU_FFS + select RT_USING_CACHE + select RT_USING_HW_ATOMIC + select ARCH_USING_HW_ATOMIC_8 + select ARCH_USING_HW_ATOMIC_16 + +config ARCH_ARM_CORTEX_M85 + bool + select ARCH_ARM_CORTEX_M + select RT_USING_CPU_FFS + select RT_USING_HW_ATOMIC + select ARCH_USING_HW_ATOMIC_8 + select ARCH_USING_HW_ATOMIC_16 + +config ARCH_ARM_CORTEX_M23 + bool + select ARCH_ARM_CORTEX_M + select RT_USING_HW_ATOMIC + select ARCH_USING_HW_ATOMIC_8 + select ARCH_USING_HW_ATOMIC_16 + +config ARCH_ARM_CORTEX_M33 + bool + select ARCH_ARM_CORTEX_M + select RT_USING_CPU_FFS + select RT_USING_HW_ATOMIC + select ARCH_USING_HW_ATOMIC_8 + select ARCH_USING_HW_ATOMIC_16 + +config ARCH_ARM_CORTEX_R + bool + select ARCH_ARM + select RT_USING_HW_ATOMIC + select ARCH_USING_HW_ATOMIC_8 + select ARCH_USING_HW_ATOMIC_16 + +config ARCH_ARM_CORTEX_R52 + bool + select ARCH_ARM_CORTEX_R + +config ARCH_ARM_MMU + bool + select RT_USING_CACHE + select ARCH_MM_MMU + depends on ARCH_ARM + +if RT_USING_SMART + config RT_IOREMAP_LATE + bool "Support to create IO mapping in the kernel address space after system initlalization." + default n + depends on ARCH_ARM_CORTEX_A + depends on ARCH_MM_MMU +endif + +config ARCH_ARM_ARM9 + bool + select ARCH_ARM + +config ARCH_ARM_ARM11 + bool + select ARCH_ARM + +config ARCH_ARM_CORTEX_A + bool + select ARCH_ARM + select ARCH_ARM_MMU + select RT_USING_CPU_FFS + select RT_USING_HW_ATOMIC + select ARCH_USING_HW_ATOMIC_8 + select ARCH_USING_HW_ATOMIC_16 + + if ARCH_ARM_CORTEX_A + config RT_SMP_AUTO_BOOT + bool + default n + + config RT_USING_GIC_V2 + bool + default n + + config RT_USING_GIC_V3 + bool + default n + + config RT_NO_USING_GIC + bool + default y if !RT_USING_GIC_V2 && !RT_USING_GIC_V3 + endif + +config ARCH_ARM_CORTEX_A5 + bool + select ARCH_ARM_CORTEX_A + +config ARCH_ARM_CORTEX_A7 + bool + select ARCH_ARM_CORTEX_A + +config ARCH_ARM_CORTEX_A8 + bool + select ARCH_ARM_CORTEX_A + +config ARCH_ARM_CORTEX_A9 + bool + select ARCH_ARM_CORTEX_A + +config ARCH_ARM_CORTEX_A55 + bool + select ARCH_ARM_CORTEX_A + +config ARCH_ARM_SECURE_MODE + bool "Running in secure mode [ARM Cortex-A]" + default n + depends on ARCH_ARM_CORTEX_A + +config RT_BACKTRACE_FUNCTION_NAME + bool "To show function name when backtrace." + default n + depends on ARCH_ARM_CORTEX_A + +config ARCH_ARMV8 + bool + select ARCH_ARM + select ARCH_ARM_MMU + select RT_USING_CPU_FFS + select ARCH_USING_ASID + select ARCH_USING_IRQ_CTX_LIST + |
