Browse Source
Move and convert soc/xtensa/intel_adsp SoC family configurations to HWMv2 with its SoC series: `ace` (INTEL_ACE) and `cavs` (INTEL_ADSP_CAVS). Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>pull/69687/head
99 changed files with 130 additions and 117 deletions
@ -1,13 +1,17 @@ |
|||||||
# Intel ADSP SoCs family CMake file |
# Intel ADSP SoCs family CMake file |
||||||
# |
# |
||||||
# Copyright (c) 2020 Intel Corporation |
# Copyright (c) 2020-2024 Intel Corporation |
||||||
# SPDX-License-Identifier: Apache-2.0 |
# SPDX-License-Identifier: Apache-2.0 |
||||||
|
|
||||||
|
zephyr_include_directories(common) |
||||||
|
|
||||||
add_subdirectory(common) |
add_subdirectory(common) |
||||||
if(CONFIG_SOC_SERIES_INTEL_ACE) |
if(CONFIG_SOC_SERIES_INTEL_ACE) |
||||||
|
zephyr_include_directories(ace) |
||||||
add_subdirectory(ace) |
add_subdirectory(ace) |
||||||
endif() |
endif() |
||||||
if(CONFIG_INTEL_ADSP_CAVS) |
if(CONFIG_INTEL_ADSP_CAVS) |
||||||
|
zephyr_include_directories(cavs) |
||||||
add_subdirectory(cavs) |
add_subdirectory(cavs) |
||||||
endif() |
endif() |
||||||
zephyr_include_directories(common/include) |
zephyr_include_directories(common/include) |
@ -1,11 +1,11 @@ |
|||||||
# Intel CAVS SoC family default configuration options |
# Intel CAVS SoC family default configuration options |
||||||
# |
# |
||||||
# Copyright (c) 2020 Intel Corporation |
# Copyright (c) 2020-2024 Intel Corporation |
||||||
# SPDX-License-Identifier: Apache-2.0 |
# SPDX-License-Identifier: Apache-2.0 |
||||||
|
|
||||||
if SOC_FAMILY_INTEL_ADSP |
if SOC_FAMILY_INTEL_ADSP |
||||||
source "soc/soc_legacy/xtensa/intel_adsp/*/Kconfig.defconfig.series" |
|
||||||
|
|
||||||
|
rsource "*/Kconfig.defconfig.series" |
||||||
|
|
||||||
config XTENSA_RPO_CACHE |
config XTENSA_RPO_CACHE |
||||||
def_bool y |
def_bool y |
@ -0,0 +1,12 @@ |
|||||||
|
# Intel CAVS SoC series selection |
||||||
|
# |
||||||
|
# Copyright (c) 2020-2024 Intel Corporation |
||||||
|
# SPDX-License-Identifier: Apache-2.0 |
||||||
|
|
||||||
|
config SOC_FAMILY_INTEL_ADSP |
||||||
|
bool |
||||||
|
|
||||||
|
config SOC_FAMILY |
||||||
|
default "intel_adsp" if SOC_FAMILY_INTEL_ADSP |
||||||
|
|
||||||
|
rsource "*/Kconfig.soc" |
@ -0,0 +1,28 @@ |
|||||||
|
# Copyright (c) 2022-2024 Intel Corporation |
||||||
|
# |
||||||
|
# SPDX-License-Identifier: Apache-2.0 |
||||||
|
|
||||||
|
config SOC_SERIES_INTEL_ACE |
||||||
|
select SOC_FAMILY_INTEL_ADSP |
||||||
|
select XTENSA |
||||||
|
select XTENSA_HAL if (("$(ZEPHYR_TOOLCHAIN_VARIANT)" != "xcc") && ("$(ZEPHYR_TOOLCHAIN_VARIANT)" != "xt-clang")) |
||||||
|
select ATOMIC_OPERATIONS_BUILTIN if "$(ZEPHYR_TOOLCHAIN_VARIANT)" != "xcc" |
||||||
|
select ARCH_HAS_COHERENCE |
||||||
|
select SCHED_IPI_SUPPORTED |
||||||
|
select DW_ICTL_ACE |
||||||
|
select SOC_HAS_RUNTIME_NUM_CPUS |
||||||
|
select HAS_PM |
||||||
|
|
||||||
|
config SOC_INTEL_ACE15_MTPM |
||||||
|
select SOC_SERIES_INTEL_ACE |
||||||
|
|
||||||
|
config SOC_INTEL_ACE20_LNL |
||||||
|
select SOC_SERIES_INTEL_ACE |
||||||
|
|
||||||
|
config SOC_INTEL_COMM_WIDGET |
||||||
|
bool "Intel Communication Widget driver" |
||||||
|
default y |
||||||
|
depends on DT_HAS_INTEL_ADSP_COMMUNICATION_WIDGET_ENABLED |
||||||
|
help |
||||||
|
Select this to enable Intel Communication Widget driver. |
||||||
|
DSP Communication Widget is a device for generic sideband message transmit/receive. |
@ -1,13 +1,9 @@ |
|||||||
# Copyright (c) 2022 Intel Corporation |
# Copyright (c) 2022-2024 Intel Corporation |
||||||
# SPDX-License-Identifier: Apache-2.0 |
# SPDX-License-Identifier: Apache-2.0 |
||||||
|
|
||||||
|
|
||||||
if SOC_INTEL_ACE15_MTPM |
if SOC_INTEL_ACE15_MTPM |
||||||
|
|
||||||
config SOC |
|
||||||
string |
|
||||||
default "intel_ace15_mtpm" |
|
||||||
|
|
||||||
config MP_MAX_NUM_CPUS |
config MP_MAX_NUM_CPUS |
||||||
default 3 |
default 3 |
||||||
|
|
@ -1,13 +1,9 @@ |
|||||||
# Copyright (c) 2022 Intel Corporation |
# Copyright (c) 2022-2024 Intel Corporation |
||||||
# SPDX-License-Identifier: Apache-2.0 |
# SPDX-License-Identifier: Apache-2.0 |
||||||
|
|
||||||
|
|
||||||
if SOC_INTEL_ACE20_LNL |
if SOC_INTEL_ACE20_LNL |
||||||
|
|
||||||
config SOC |
|
||||||
string |
|
||||||
default "intel_ace20_lnl" |
|
||||||
|
|
||||||
config MP_MAX_NUM_CPUS |
config MP_MAX_NUM_CPUS |
||||||
default 5 |
default 5 |
||||||
|
|
@ -0,0 +1,28 @@ |
|||||||
|
# Copyright (c) 2022-2024 Intel Corporation |
||||||
|
# |
||||||
|
# SPDX-License-Identifier: Apache-2.0 |
||||||
|
|
||||||
|
config SOC_SERIES_INTEL_ACE |
||||||
|
bool |
||||||
|
help |
||||||
|
Intel ADSP ACE |
||||||
|
|
||||||
|
config SOC_SERIES |
||||||
|
default "ace" if SOC_SERIES_INTEL_ACE |
||||||
|
|
||||||
|
config SOC_TOOLCHAIN_NAME |
||||||
|
default "intel_ace15_mtpm" if SOC_SERIES_INTEL_ACE |
||||||
|
|
||||||
|
config SOC_INTEL_ACE15_MTPM |
||||||
|
bool |
||||||
|
help |
||||||
|
ACE 1.5 Meteor Lake PCH M |
||||||
|
|
||||||
|
config SOC_INTEL_ACE20_LNL |
||||||
|
bool |
||||||
|
help |
||||||
|
ACE 2.0 Lunar Lake PCH |
||||||
|
|
||||||
|
config SOC |
||||||
|
default "intel_ace15_mtpm" if SOC_INTEL_ACE15_MTPM |
||||||
|
default "intel_ace20_lnl" if SOC_INTEL_ACE20_LNL |
@ -1,15 +1,8 @@ |
|||||||
# Copyright (c) 2020,2022 Intel Corporation |
# Copyright (c) 2020,2022-2024 Intel Corporation |
||||||
# SPDX-License-Identifier: Apache-2.0 |
# SPDX-License-Identifier: Apache-2.0 |
||||||
|
|
||||||
if SOC_INTEL_CAVS_V25 |
if SOC_INTEL_CAVS_V25 |
||||||
|
|
||||||
config SOC_TOOLCHAIN_NAME |
|
||||||
string |
|
||||||
default "intel_tgl_adsp" |
|
||||||
|
|
||||||
config SOC |
|
||||||
default "intel_tgl_adsp" |
|
||||||
|
|
||||||
# For backward compatibility, to be removed |
# For backward compatibility, to be removed |
||||||
config SOC_SERIES_INTEL_CAVS_V25 |
config SOC_SERIES_INTEL_CAVS_V25 |
||||||
def_bool y |
def_bool y |
@ -1,16 +1,13 @@ |
|||||||
# Copyright (c) 2020 Intel Corporation |
# Copyright (c) 2020-2024 Intel Corporation |
||||||
|
# |
||||||
# SPDX-License-Identifier: Apache-2.0 |
# SPDX-License-Identifier: Apache-2.0 |
||||||
|
|
||||||
if SOC_SERIES_INTEL_ADSP_CAVS |
if SOC_SERIES_INTEL_ADSP_CAVS |
||||||
|
|
||||||
config SOC_SERIES |
|
||||||
string |
|
||||||
default "cavs" |
|
||||||
|
|
||||||
config INTEL_ADSP_CAVS |
config INTEL_ADSP_CAVS |
||||||
def_bool y |
def_bool y |
||||||
|
|
||||||
source "soc/soc_legacy/xtensa/intel_adsp/cavs/Kconfig.defconfig.cavs*" |
rsource "Kconfig.defconfig.cavs*" |
||||||
|
|
||||||
config DMA_INTEL_ADSP_GPDMA |
config DMA_INTEL_ADSP_GPDMA |
||||||
default y |
default y |
@ -0,0 +1,22 @@ |
|||||||
|
# Copyright (c) 2020-2024 Intel Corporation |
||||||
|
# |
||||||
|
# SPDX-License-Identifier: Apache-2.0 |
||||||
|
|
||||||
|
config SOC_SERIES_INTEL_ADSP_CAVS |
||||||
|
bool |
||||||
|
help |
||||||
|
Intel ADSP CAVS |
||||||
|
|
||||||
|
config SOC_SERIES |
||||||
|
default "cavs" if SOC_SERIES_INTEL_ADSP_CAVS |
||||||
|
|
||||||
|
config SOC_INTEL_CAVS_V25 |
||||||
|
bool |
||||||
|
help |
||||||
|
Intel Tiger Lake |
||||||
|
|
||||||
|
config SOC |
||||||
|
default "intel_tgl_adsp" if SOC_INTEL_CAVS_V25 |
||||||
|
|
||||||
|
config SOC_TOOLCHAIN_NAME |
||||||
|
default "intel_tgl_adsp" if SOC_INTEL_CAVS_V25 |
@ -0,0 +1,10 @@ |
|||||||
|
family: |
||||||
|
- name: intel_adsp |
||||||
|
series: |
||||||
|
- name: ace |
||||||
|
socs: |
||||||
|
- name: intel_ace15_mtpm |
||||||
|
- name: intel_ace20_lnl |
||||||
|
- name: cavs |
||||||
|
socs: |
||||||
|
- name: intel_tgl_adsp |
@ -1,6 +0,0 @@ |
|||||||
# Intel CAVS SoC series selection |
|
||||||
# |
|
||||||
# Copyright (c) 2020 Intel Corporation |
|
||||||
# SPDX-License-Identifier: Apache-2.0 |
|
||||||
|
|
||||||
source "soc/soc_legacy/xtensa/intel_adsp/*/Kconfig.series" |
|
@ -1,16 +0,0 @@ |
|||||||
# Copyright (c) 2022 Intel Corporation |
|
||||||
# SPDX-License-Identifier: Apache-2.0 |
|
||||||
|
|
||||||
config SOC_SERIES_INTEL_ACE |
|
||||||
bool "Intel ACE" |
|
||||||
select SOC_FAMILY_INTEL_ADSP |
|
||||||
select XTENSA |
|
||||||
select XTENSA_HAL if (("$(ZEPHYR_TOOLCHAIN_VARIANT)" != "xcc") && ("$(ZEPHYR_TOOLCHAIN_VARIANT)" != "xt-clang")) |
|
||||||
select ATOMIC_OPERATIONS_BUILTIN if "$(ZEPHYR_TOOLCHAIN_VARIANT)" != "xcc" |
|
||||||
select ARCH_HAS_COHERENCE |
|
||||||
select SCHED_IPI_SUPPORTED |
|
||||||
select DW_ICTL_ACE |
|
||||||
select SOC_HAS_RUNTIME_NUM_CPUS |
|
||||||
select HAS_PM |
|
||||||
help |
|
||||||
Intel ADSP ACE |
|
@ -1,23 +0,0 @@ |
|||||||
# Copyright (c) 2022 Intel Corporation |
|
||||||
# SPDX-License-Identifier: Apache-2.0 |
|
||||||
|
|
||||||
choice |
|
||||||
prompt "Intel ADSP SoC Selection" |
|
||||||
|
|
||||||
config SOC_INTEL_ACE15_MTPM |
|
||||||
bool "ACE 1.5 Meteor PCH M" |
|
||||||
depends on SOC_SERIES_INTEL_ACE |
|
||||||
|
|
||||||
config SOC_INTEL_ACE20_LNL |
|
||||||
bool "ACE 2.0 Lunar Lake PCH" |
|
||||||
depends on SOC_SERIES_INTEL_ACE |
|
||||||
|
|
||||||
endchoice |
|
||||||
|
|
||||||
config SOC_INTEL_COMM_WIDGET |
|
||||||
bool "Intel Communication Widget driver" |
|
||||||
default y |
|
||||||
depends on DT_HAS_INTEL_ADSP_COMMUNICATION_WIDGET_ENABLED |
|
||||||
help |
|
||||||
Select this to enable Intel Communication Widget driver. |
|
||||||
DSP Communication Widget is a device for generic sideband message transmit/receive. |
|
@ -1,13 +0,0 @@ |
|||||||
# Copyright (c) 2020 Intel Corporation |
|
||||||
# SPDX-License-Identifier: Apache-2.0 |
|
||||||
|
|
||||||
choice |
|
||||||
prompt "Intel CAVS SoC Selection" |
|
||||||
depends on SOC_SERIES_INTEL_ADSP_CAVS |
|
||||||
|
|
||||||
config SOC_INTEL_CAVS_V25 |
|
||||||
bool "Intel Tiger Lake" |
|
||||||
select XTENSA_WAITI_BUG |
|
||||||
select SCHED_IPI_SUPPORTED |
|
||||||
|
|
||||||
endchoice |
|
Loading…
Reference in new issue