soc: xtensa: imx8: Configuration cleanup

As the name suggests, this commit attempts to cleanup some
of the configurations for the i.MX8 series. This cleanup
consists of either relocating the configuration or removing
unnecessary configurations.

As a rule of thumb, SoC-specific configurations have been moved
to Kconfig.series. If the configuration is by default 'y' and
needs to be set to 'n' or it has a numeric value then it has
been moved to Kconfig.defconfig.series. Configurations that
are default 'n' and were also explicitly set to 'n' have been
removed. Also, enabling logging has been moved to the board
level to avoid having to force all boards based on the same
SoC to enable logging.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
This commit is contained in:
Laurentiu Mihalcea 2023-09-22 10:56:42 +03:00 committed by Carles Cufí
commit eb12bae048
6 changed files with 14 additions and 51 deletions

View file

@ -7,15 +7,4 @@ if BOARD_NXP_ADSP_IMX8
config BOARD config BOARD
default "nxp_adsp_imx8" default "nxp_adsp_imx8"
config DUMMY_DMA
bool
default y
depends on DMA
config IMX_EDMA
bool
default y
depends on DMA
endif # BOARD_NXP_ADSP_IMX8 endif # BOARD_NXP_ADSP_IMX8

View file

@ -2,22 +2,13 @@
CONFIG_MAIN_STACK_SIZE=3072 CONFIG_MAIN_STACK_SIZE=3072
# board/soc-related configurations
CONFIG_SOC_SERIES_NXP_IMX8=y CONFIG_SOC_SERIES_NXP_IMX8=y
CONFIG_SOC_MIMX8QM_ADSP=y CONFIG_SOC_MIMX8QM_ADSP=y
CONFIG_BOARD_NXP_ADSP_IMX8=y CONFIG_BOARD_NXP_ADSP_IMX8=y
CONFIG_GEN_ISR_TABLES=y CONFIG_LOG=y
CONFIG_GEN_IRQ_VECTOR_TABLE=n
CONFIG_XTENSA_RESET_VECTOR=y
CONFIG_XTENSA_USE_CORE_CRT1=y
CONFIG_XTENSA_SMALL_VECTOR_TABLE_ENTRY=y
CONFIG_MULTI_LEVEL_INTERRUPTS=n
CONFIG_2ND_LEVEL_INTERRUPTS=n
# TODO: maybe move this to SOF?
CONFIG_DYNAMIC_INTERRUPTS=y
CONFIG_BUILD_OUTPUT_BIN=n CONFIG_BUILD_OUTPUT_BIN=n
CONFIG_DCACHE_LINE_SIZE=128

View file

@ -7,14 +7,4 @@ if BOARD_NXP_ADSP_IMX8X
config BOARD config BOARD
default "nxp_adsp_imx8x" default "nxp_adsp_imx8x"
config DUMMY_DMA
bool
default y
depends on DMA
config IMX_EDMA
bool
default y
depends on DMA
endif # BOARD_NXP_ADSP_IMX8X endif # BOARD_NXP_ADSP_IMX8X

View file

@ -2,22 +2,13 @@
CONFIG_MAIN_STACK_SIZE=3072 CONFIG_MAIN_STACK_SIZE=3072
# board/soc-related configurations
CONFIG_SOC_SERIES_NXP_IMX8=y CONFIG_SOC_SERIES_NXP_IMX8=y
CONFIG_SOC_MIMX8QXP_ADSP=y CONFIG_SOC_MIMX8QXP_ADSP=y
CONFIG_BOARD_NXP_ADSP_IMX8X=y CONFIG_BOARD_NXP_ADSP_IMX8X=y
CONFIG_GEN_ISR_TABLES=y CONFIG_LOG=y
CONFIG_GEN_IRQ_VECTOR_TABLE=n
CONFIG_XTENSA_RESET_VECTOR=y
CONFIG_XTENSA_USE_CORE_CRT1=y
CONFIG_XTENSA_SMALL_VECTOR_TABLE_ENTRY=y
CONFIG_MULTI_LEVEL_INTERRUPTS=n
CONFIG_2ND_LEVEL_INTERRUPTS=n
# TODO: maybe move this to SOF?
CONFIG_DYNAMIC_INTERRUPTS=y
CONFIG_BUILD_OUTPUT_BIN=n CONFIG_BUILD_OUTPUT_BIN=n
CONFIG_DCACHE_LINE_SIZE=128

View file

@ -17,11 +17,11 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
config SYS_CLOCK_TICKS_PER_SEC config SYS_CLOCK_TICKS_PER_SEC
default 50000 default 50000
config DYNAMIC_INTERRUPTS config DCACHE_LINE_SIZE
default y default 128
config LOG config GEN_IRQ_VECTOR_TABLE
default y default n
source "soc/xtensa/nxp_adsp/imx8/Kconfig.defconfig.imx8q*" source "soc/xtensa/nxp_adsp/imx8/Kconfig.defconfig.imx8q*"

View file

@ -9,5 +9,7 @@ config SOC_SERIES_NXP_IMX8
select XTENSA_RESET_VECTOR select XTENSA_RESET_VECTOR
select XTENSA_USE_CORE_CRT1 select XTENSA_USE_CORE_CRT1
select ATOMIC_OPERATIONS_BUILTIN select ATOMIC_OPERATIONS_BUILTIN
select GEN_ISR_TABLES
select XTENSA_SMALL_VECTOR_TABLE_ENTRY
help help
NXP i.MX8 NXP i.MX8