soc: nxp_adsp: Refactor imx8/imx8m Kconfig

In preparation for RT500 ADSP enablement, consolidate common Xtensa
configuration parameters in top level Kconfig.defconfig.

Signed-off-by: Dmitry Lukyantsev <dmitrylu@google.com>
This commit is contained in:
Dmitry Lukyantsev 2023-08-17 17:01:33 -07:00 committed by Anas Nashif
commit 0ae68a3857
3 changed files with 22 additions and 42 deletions

View file

@ -1,4 +1,4 @@
# NXP i.MX8 SoC family default configuration options # NXP i.MX8/RT SoC family default configuration options
# #
# Copyright (c) 2021 NXP # Copyright (c) 2021 NXP
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
@ -6,4 +6,24 @@
source "soc/xtensa/nxp_adsp/*/Kconfig.defconfig.series" source "soc/xtensa/nxp_adsp/*/Kconfig.defconfig.series"
config CACHE_MANAGEMENT config CACHE_MANAGEMENT
def_bool y default y
config SMP
default n
config XTENSA_TIMER
default y
config KERNEL_ENTRY
default "__start"
config MULTI_LEVEL_INTERRUPTS
default n
config 2ND_LEVEL_INTERRUPTS
default n
# To prevent test uses TEST_LOGGING_MINIMAL
config TEST_LOGGING_DEFAULTS
default n
depends on TEST

View file

@ -15,36 +15,16 @@ config SOC
string string
default "nxp_imx8" default "nxp_imx8"
config SMP
default n
config XTENSA_TIMER
default y
config SYS_CLOCK_HW_CYCLES_PER_SEC config SYS_CLOCK_HW_CYCLES_PER_SEC
default 666000000 if XTENSA_TIMER default 666000000 if XTENSA_TIMER
config SYS_CLOCK_TICKS_PER_SEC config SYS_CLOCK_TICKS_PER_SEC
default 50000 default 50000
config KERNEL_ENTRY
default "__start"
config MULTI_LEVEL_INTERRUPTS
default n
config 2ND_LEVEL_INTERRUPTS
default n
config DYNAMIC_INTERRUPTS config DYNAMIC_INTERRUPTS
default y default y
config LOG config LOG
default y default y
# To prevent test uses TEST_LOGGING_MINIMAL
config TEST_LOGGING_DEFAULTS
default n
depends on TEST
endif # SOC_SERIES_NXP_IMX8 endif # SOC_SERIES_NXP_IMX8

View file

@ -17,38 +17,18 @@ config SOC
string string
default "mimx8ml8" default "mimx8ml8"
config SMP
default n
config XTENSA_TIMER
default y
config SYS_CLOCK_HW_CYCLES_PER_SEC config SYS_CLOCK_HW_CYCLES_PER_SEC
default 800000000 if XTENSA_TIMER default 800000000 if XTENSA_TIMER
config SYS_CLOCK_TICKS_PER_SEC config SYS_CLOCK_TICKS_PER_SEC
default 50000 default 50000
config KERNEL_ENTRY
default "__start"
config MULTI_LEVEL_INTERRUPTS
default n
config 2ND_LEVEL_INTERRUPTS
default n
config DYNAMIC_INTERRUPTS config DYNAMIC_INTERRUPTS
default y default y
config LOG config LOG
default y default y
# To prevent test uses TEST_LOGGING_MINIMAL
config TEST_LOGGING_DEFAULTS
default n
depends on TEST
# endif # SOC_MIMX8M_ADSP # endif # SOC_MIMX8M_ADSP
endif # SOC_SERIES_NXP_IMX8M endif # SOC_SERIES_NXP_IMX8M