Browse Source

soc: xtensa: intel_adsp: move and convert to HWMv2

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
Dmitrii Golovanov 1 year ago committed by Carles Cufi
parent
commit
fdc20fdff6
  1. 6
      soc/intel/intel_adsp/CMakeLists.txt
  2. 14
      soc/intel/intel_adsp/Kconfig
  3. 4
      soc/intel/intel_adsp/Kconfig.defconfig
  4. 12
      soc/intel/intel_adsp/Kconfig.soc
  5. 0
      soc/intel/intel_adsp/ace/CMakeLists.txt
  6. 28
      soc/intel/intel_adsp/ace/Kconfig
  7. 6
      soc/intel/intel_adsp/ace/Kconfig.defconfig.ace15_mtpm
  8. 6
      soc/intel/intel_adsp/ace/Kconfig.defconfig.ace20_lnl
  9. 12
      soc/intel/intel_adsp/ace/Kconfig.defconfig.series
  10. 28
      soc/intel/intel_adsp/ace/Kconfig.soc
  11. 0
      soc/intel/intel_adsp/ace/_soc_inthandlers.h
  12. 0
      soc/intel/intel_adsp/ace/ace-link.ld
  13. 0
      soc/intel/intel_adsp/ace/asm_memory_management.h
  14. 0
      soc/intel/intel_adsp/ace/boot.c
  15. 0
      soc/intel/intel_adsp/ace/comm_widget.c
  16. 0
      soc/intel/intel_adsp/ace/comm_widget.h
  17. 0
      soc/intel/intel_adsp/ace/comm_widget_messages.c
  18. 0
      soc/intel/intel_adsp/ace/include/adsp_imr_layout.h
  19. 0
      soc/intel/intel_adsp/ace/include/adsp_timestamp.h
  20. 0
      soc/intel/intel_adsp/ace/include/dmic_regs.h
  21. 0
      soc/intel/intel_adsp/ace/include/intel_ace15_mtpm/adsp_boot.h
  22. 0
      soc/intel/intel_adsp/ace/include/intel_ace15_mtpm/adsp_comm_widget.h
  23. 0
      soc/intel/intel_adsp/ace/include/intel_ace15_mtpm/adsp_interrupt.h
  24. 0
      soc/intel/intel_adsp/ace/include/intel_ace15_mtpm/adsp_ipc_regs.h
  25. 0
      soc/intel/intel_adsp/ace/include/intel_ace15_mtpm/adsp_memory.h
  26. 0
      soc/intel/intel_adsp/ace/include/intel_ace15_mtpm/adsp_memory_regions.h
  27. 0
      soc/intel/intel_adsp/ace/include/intel_ace15_mtpm/adsp_power.h
  28. 0
      soc/intel/intel_adsp/ace/include/intel_ace15_mtpm/adsp_shim.h
  29. 0
      soc/intel/intel_adsp/ace/include/intel_ace15_mtpm/adsp_watchdog.h
  30. 0
      soc/intel/intel_adsp/ace/include/intel_ace15_mtpm/dmic_regs_ace1x.h
  31. 0
      soc/intel/intel_adsp/ace/include/intel_ace20_lnl/adsp_boot.h
  32. 0
      soc/intel/intel_adsp/ace/include/intel_ace20_lnl/adsp_interrupt.h
  33. 0
      soc/intel/intel_adsp/ace/include/intel_ace20_lnl/adsp_ipc_regs.h
  34. 0
      soc/intel/intel_adsp/ace/include/intel_ace20_lnl/adsp_memory.h
  35. 0
      soc/intel/intel_adsp/ace/include/intel_ace20_lnl/adsp_memory_regions.h
  36. 0
      soc/intel/intel_adsp/ace/include/intel_ace20_lnl/adsp_power.h
  37. 0
      soc/intel/intel_adsp/ace/include/intel_ace20_lnl/adsp_shim.h
  38. 0
      soc/intel/intel_adsp/ace/include/intel_ace20_lnl/dmic_regs_ace2x.h
  39. 0
      soc/intel/intel_adsp/ace/irq.c
  40. 0
      soc/intel/intel_adsp/ace/linker.ld
  41. 0
      soc/intel/intel_adsp/ace/multiprocessing.c
  42. 0
      soc/intel/intel_adsp/ace/pmc_interface.h
  43. 0
      soc/intel/intel_adsp/ace/power.c
  44. 0
      soc/intel/intel_adsp/ace/power_down.S
  45. 0
      soc/intel/intel_adsp/ace/sram.c
  46. 0
      soc/intel/intel_adsp/ace/timestamp.c
  47. 0
      soc/intel/intel_adsp/cavs/CMakeLists.txt
  48. 11
      soc/intel/intel_adsp/cavs/Kconfig
  49. 9
      soc/intel/intel_adsp/cavs/Kconfig.defconfig.cavs_v25
  50. 9
      soc/intel/intel_adsp/cavs/Kconfig.defconfig.series
  51. 22
      soc/intel/intel_adsp/cavs/Kconfig.soc
  52. 0
      soc/intel/intel_adsp/cavs/_soc_inthandlers.h
  53. 0
      soc/intel/intel_adsp/cavs/asm_ldo_management.h
  54. 0
      soc/intel/intel_adsp/cavs/asm_memory_management.h
  55. 0
      soc/intel/intel_adsp/cavs/include/adsp_interrupt.h
  56. 0
      soc/intel/intel_adsp/cavs/include/intel_tgl_adsp/adsp_imr_layout.h
  57. 0
      soc/intel/intel_adsp/cavs/include/intel_tgl_adsp/adsp_ipc_regs.h
  58. 0
      soc/intel/intel_adsp/cavs/include/intel_tgl_adsp/adsp_memory.h
  59. 0
      soc/intel/intel_adsp/cavs/include/intel_tgl_adsp/adsp_shim.h
  60. 0
      soc/intel/intel_adsp/cavs/include/intel_tgl_adsp/dmic_regs.h
  61. 0
      soc/intel/intel_adsp/cavs/include/xtensa-cavs-linker.ld
  62. 0
      soc/intel/intel_adsp/cavs/irq.c
  63. 0
      soc/intel/intel_adsp/cavs/multiprocessing.c
  64. 0
      soc/intel/intel_adsp/cavs/power.c
  65. 0
      soc/intel/intel_adsp/cavs/power_down_cavs.S
  66. 0
      soc/intel/intel_adsp/cavs/sram.c
  67. 4
      soc/intel/intel_adsp/common/CMakeLists.txt
  68. 0
      soc/intel/intel_adsp/common/boot.c
  69. 0
      soc/intel/intel_adsp/common/boot_complete.c
  70. 0
      soc/intel/intel_adsp/common/clk.c
  71. 0
      soc/intel/intel_adsp/common/include/adsp-vectors.h
  72. 0
      soc/intel/intel_adsp/common/include/adsp_clk.h
  73. 0
      soc/intel/intel_adsp/common/include/adsp_debug_window.h
  74. 0
      soc/intel/intel_adsp/common/include/cavs-idc.h
  75. 0
      soc/intel/intel_adsp/common/include/cavstool.h
  76. 0
      soc/intel/intel_adsp/common/include/cpu_init.h
  77. 0
      soc/intel/intel_adsp/common/include/debug_helpers.h
  78. 0
      soc/intel/intel_adsp/common/include/intel_adsp_hda.h
  79. 0
      soc/intel/intel_adsp/common/include/intel_adsp_ipc.h
  80. 0
      soc/intel/intel_adsp/common/include/intel_adsp_ipc_devtree.h
  81. 0
      soc/intel/intel_adsp/common/include/manifest.h
  82. 0
      soc/intel/intel_adsp/common/include/mem_window.h
  83. 0
      soc/intel/intel_adsp/common/include/soc.h
  84. 0
      soc/intel/intel_adsp/common/include/soc_util.h
  85. 0
      soc/intel/intel_adsp/common/ipc.c
  86. 0
      soc/intel/intel_adsp/common/mem_window.c
  87. 0
      soc/intel/intel_adsp/common/multiprocessing.c
  88. 0
      soc/intel/intel_adsp/common/rimage_modules.c
  89. 0
      soc/intel/intel_adsp/common/soc.c
  90. 10
      soc/intel/intel_adsp/soc.yml
  91. 0
      soc/intel/intel_adsp/tools/acetool.py
  92. 0
      soc/intel/intel_adsp/tools/cavstool.py
  93. 0
      soc/intel/intel_adsp/tools/cavstool_client.py
  94. 8
      soc/intel/intel_adsp/tools/cavstwist.sh
  95. 0
      soc/intel/intel_adsp/tools/remote-fw-service.py
  96. 6
      soc/soc_legacy/xtensa/intel_adsp/Kconfig.soc
  97. 16
      soc/soc_legacy/xtensa/intel_adsp/ace/Kconfig.series
  98. 23
      soc/soc_legacy/xtensa/intel_adsp/ace/Kconfig.soc
  99. 13
      soc/soc_legacy/xtensa/intel_adsp/cavs/Kconfig.soc

6
soc/soc_legacy/xtensa/intel_adsp/CMakeLists.txt → soc/intel/intel_adsp/CMakeLists.txt

@ -1,13 +1,17 @@ @@ -1,13 +1,17 @@
# Intel ADSP SoCs family CMake file
#
# Copyright (c) 2020 Intel Corporation
# Copyright (c) 2020-2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
zephyr_include_directories(common)
add_subdirectory(common)
if(CONFIG_SOC_SERIES_INTEL_ACE)
zephyr_include_directories(ace)
add_subdirectory(ace)
endif()
if(CONFIG_INTEL_ADSP_CAVS)
zephyr_include_directories(cavs)
add_subdirectory(cavs)
endif()
zephyr_include_directories(common/include)

14
soc/soc_legacy/xtensa/intel_adsp/Kconfig → soc/intel/intel_adsp/Kconfig

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
# Intel CAVS SoC family configuration options
#
# Copyright (c) 2020 Intel Corporation
# Copyright (c) 2020-2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
config SOC_FAMILY_INTEL_ADSP
@ -9,16 +9,8 @@ config SOC_FAMILY_INTEL_ADSP @@ -9,16 +9,8 @@ config SOC_FAMILY_INTEL_ADSP
select CPU_HAS_DCACHE
select ARCH_HAS_USERSPACE if XTENSA_MMU
select CPU_CACHE_INCOHERENT
bool
if SOC_FAMILY_INTEL_ADSP
config SOC_FAMILY
string
default "intel_adsp"
# Select SoC Part No. and configuration options
source "soc/soc_legacy/xtensa/intel_adsp/*/Kconfig.soc"
rsource "*/Kconfig"
DT_COMPAT_INTEL_ADSP_HOST_IPC := intel,adsp-host-ipc
DT_COMPAT_INTEL_ADSP_IDC := intel,adsp-idc
@ -134,5 +126,3 @@ config ADSP_IDLE_CLOCK_GATING @@ -134,5 +126,3 @@ config ADSP_IDLE_CLOCK_GATING
HW configuration of a DSP. Evry time core goes to the WAITI state
(wait for interrupt) during idle, the clock can be gated (however, this
does not mean that this will happen).
endif # SOC_FAMILY_INTEL_ADSP

4
soc/soc_legacy/xtensa/intel_adsp/Kconfig.defconfig → soc/intel/intel_adsp/Kconfig.defconfig

@ -1,11 +1,11 @@ @@ -1,11 +1,11 @@
# Intel CAVS SoC family default configuration options
#
# Copyright (c) 2020 Intel Corporation
# Copyright (c) 2020-2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
if SOC_FAMILY_INTEL_ADSP
source "soc/soc_legacy/xtensa/intel_adsp/*/Kconfig.defconfig.series"
rsource "*/Kconfig.defconfig.series"
config XTENSA_RPO_CACHE
def_bool y

12
soc/intel/intel_adsp/Kconfig.soc

@ -0,0 +1,12 @@ @@ -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
soc/soc_legacy/xtensa/intel_adsp/ace/CMakeLists.txt → soc/intel/intel_adsp/ace/CMakeLists.txt

28
soc/intel/intel_adsp/ace/Kconfig

@ -0,0 +1,28 @@ @@ -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.

6
soc/soc_legacy/xtensa/intel_adsp/ace/Kconfig.defconfig.ace15_mtpm → soc/intel/intel_adsp/ace/Kconfig.defconfig.ace15_mtpm

@ -1,13 +1,9 @@ @@ -1,13 +1,9 @@
# Copyright (c) 2022 Intel Corporation
# Copyright (c) 2022-2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
if SOC_INTEL_ACE15_MTPM
config SOC
string
default "intel_ace15_mtpm"
config MP_MAX_NUM_CPUS
default 3

6
soc/soc_legacy/xtensa/intel_adsp/ace/Kconfig.defconfig.ace20_lnl → soc/intel/intel_adsp/ace/Kconfig.defconfig.ace20_lnl

@ -1,13 +1,9 @@ @@ -1,13 +1,9 @@
# Copyright (c) 2022 Intel Corporation
# Copyright (c) 2022-2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
if SOC_INTEL_ACE20_LNL
config SOC
string
default "intel_ace20_lnl"
config MP_MAX_NUM_CPUS
default 5

12
soc/soc_legacy/xtensa/intel_adsp/ace/Kconfig.defconfig.series → soc/intel/intel_adsp/ace/Kconfig.defconfig.series

@ -1,16 +1,8 @@ @@ -1,16 +1,8 @@
# Copyright (c) 2022 Intel Corporation
# Copyright (c) 2022-2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
if SOC_SERIES_INTEL_ACE
config SOC_SERIES
string
default "ace"
config SOC_TOOLCHAIN_NAME
string
default "intel_ace15_mtpm"
config SMP
default y
@ -68,6 +60,6 @@ config LOG_BACKEND_ADSP @@ -68,6 +60,6 @@ config LOG_BACKEND_ADSP
endif # LOG
source "soc/soc_legacy/xtensa/intel_adsp/ace/Kconfig.defconfig.ace*"
rsource "Kconfig.defconfig.ace*"
endif # SOC_SERIES_INTEL_ACE

28
soc/intel/intel_adsp/ace/Kconfig.soc

@ -0,0 +1,28 @@ @@ -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

0
soc/soc_legacy/xtensa/intel_adsp/ace/_soc_inthandlers.h → soc/intel/intel_adsp/ace/_soc_inthandlers.h

0
soc/soc_legacy/xtensa/intel_adsp/ace/ace-link.ld → soc/intel/intel_adsp/ace/ace-link.ld

0
soc/soc_legacy/xtensa/intel_adsp/ace/asm_memory_management.h → soc/intel/intel_adsp/ace/asm_memory_management.h

0
soc/soc_legacy/xtensa/intel_adsp/ace/boot.c → soc/intel/intel_adsp/ace/boot.c

0
soc/soc_legacy/xtensa/intel_adsp/ace/comm_widget.c → soc/intel/intel_adsp/ace/comm_widget.c

0
soc/soc_legacy/xtensa/intel_adsp/ace/comm_widget.h → soc/intel/intel_adsp/ace/comm_widget.h

0
soc/soc_legacy/xtensa/intel_adsp/ace/comm_widget_messages.c → soc/intel/intel_adsp/ace/comm_widget_messages.c

0
soc/soc_legacy/xtensa/intel_adsp/ace/include/adsp_imr_layout.h → soc/intel/intel_adsp/ace/include/adsp_imr_layout.h

0
soc/soc_legacy/xtensa/intel_adsp/ace/include/adsp_timestamp.h → soc/intel/intel_adsp/ace/include/adsp_timestamp.h

0
soc/soc_legacy/xtensa/intel_adsp/ace/include/dmic_regs.h → soc/intel/intel_adsp/ace/include/dmic_regs.h

0
soc/soc_legacy/xtensa/intel_adsp/ace/include/intel_ace15_mtpm/adsp_boot.h → soc/intel/intel_adsp/ace/include/intel_ace15_mtpm/adsp_boot.h

0
soc/soc_legacy/xtensa/intel_adsp/ace/include/intel_ace15_mtpm/adsp_comm_widget.h → soc/intel/intel_adsp/ace/include/intel_ace15_mtpm/adsp_comm_widget.h

0
soc/soc_legacy/xtensa/intel_adsp/ace/include/intel_ace15_mtpm/adsp_interrupt.h → soc/intel/intel_adsp/ace/include/intel_ace15_mtpm/adsp_interrupt.h

0
soc/soc_legacy/xtensa/intel_adsp/ace/include/intel_ace15_mtpm/adsp_ipc_regs.h → soc/intel/intel_adsp/ace/include/intel_ace15_mtpm/adsp_ipc_regs.h

0
soc/soc_legacy/xtensa/intel_adsp/ace/include/intel_ace15_mtpm/adsp_memory.h → soc/intel/intel_adsp/ace/include/intel_ace15_mtpm/adsp_memory.h

0
soc/soc_legacy/xtensa/intel_adsp/ace/include/intel_ace15_mtpm/adsp_memory_regions.h → soc/intel/intel_adsp/ace/include/intel_ace15_mtpm/adsp_memory_regions.h

0
soc/soc_legacy/xtensa/intel_adsp/ace/include/intel_ace15_mtpm/adsp_power.h → soc/intel/intel_adsp/ace/include/intel_ace15_mtpm/adsp_power.h

0
soc/soc_legacy/xtensa/intel_adsp/ace/include/intel_ace15_mtpm/adsp_shim.h → soc/intel/intel_adsp/ace/include/intel_ace15_mtpm/adsp_shim.h

0
soc/soc_legacy/xtensa/intel_adsp/ace/include/intel_ace15_mtpm/adsp_watchdog.h → soc/intel/intel_adsp/ace/include/intel_ace15_mtpm/adsp_watchdog.h

0
soc/soc_legacy/xtensa/intel_adsp/ace/include/intel_ace15_mtpm/dmic_regs_ace1x.h → soc/intel/intel_adsp/ace/include/intel_ace15_mtpm/dmic_regs_ace1x.h

0
soc/soc_legacy/xtensa/intel_adsp/ace/include/intel_ace20_lnl/adsp_boot.h → soc/intel/intel_adsp/ace/include/intel_ace20_lnl/adsp_boot.h

0
soc/soc_legacy/xtensa/intel_adsp/ace/include/intel_ace20_lnl/adsp_interrupt.h → soc/intel/intel_adsp/ace/include/intel_ace20_lnl/adsp_interrupt.h

0
soc/soc_legacy/xtensa/intel_adsp/ace/include/intel_ace20_lnl/adsp_ipc_regs.h → soc/intel/intel_adsp/ace/include/intel_ace20_lnl/adsp_ipc_regs.h

0
soc/soc_legacy/xtensa/intel_adsp/ace/include/intel_ace20_lnl/adsp_memory.h → soc/intel/intel_adsp/ace/include/intel_ace20_lnl/adsp_memory.h

0
soc/soc_legacy/xtensa/intel_adsp/ace/include/intel_ace20_lnl/adsp_memory_regions.h → soc/intel/intel_adsp/ace/include/intel_ace20_lnl/adsp_memory_regions.h

0
soc/soc_legacy/xtensa/intel_adsp/ace/include/intel_ace20_lnl/adsp_power.h → soc/intel/intel_adsp/ace/include/intel_ace20_lnl/adsp_power.h

0
soc/soc_legacy/xtensa/intel_adsp/ace/include/intel_ace20_lnl/adsp_shim.h → soc/intel/intel_adsp/ace/include/intel_ace20_lnl/adsp_shim.h

0
soc/soc_legacy/xtensa/intel_adsp/ace/include/intel_ace20_lnl/dmic_regs_ace2x.h → soc/intel/intel_adsp/ace/include/intel_ace20_lnl/dmic_regs_ace2x.h

0
soc/soc_legacy/xtensa/intel_adsp/ace/irq.c → soc/intel/intel_adsp/ace/irq.c

0
soc/soc_legacy/xtensa/intel_adsp/ace/linker.ld → soc/intel/intel_adsp/ace/linker.ld

0
soc/soc_legacy/xtensa/intel_adsp/ace/multiprocessing.c → soc/intel/intel_adsp/ace/multiprocessing.c

0
soc/soc_legacy/xtensa/intel_adsp/ace/pmc_interface.h → soc/intel/intel_adsp/ace/pmc_interface.h

0
soc/soc_legacy/xtensa/intel_adsp/ace/power.c → soc/intel/intel_adsp/ace/power.c

0
soc/soc_legacy/xtensa/intel_adsp/ace/power_down.S → soc/intel/intel_adsp/ace/power_down.S

0
soc/soc_legacy/xtensa/intel_adsp/ace/sram.c → soc/intel/intel_adsp/ace/sram.c

0
soc/soc_legacy/xtensa/intel_adsp/ace/timestamp.c → soc/intel/intel_adsp/ace/timestamp.c

0
soc/soc_legacy/xtensa/intel_adsp/cavs/CMakeLists.txt → soc/intel/intel_adsp/cavs/CMakeLists.txt

11
soc/soc_legacy/xtensa/intel_adsp/cavs/Kconfig.series → soc/intel/intel_adsp/cavs/Kconfig

@ -1,8 +1,8 @@ @@ -1,8 +1,8 @@
# Copyright (c) 2017,2022 Intel Corporation
# Copyright (c) 2017,2022-2024 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
config SOC_SERIES_INTEL_ADSP_CAVS
bool "Intel CAVS"
select SOC_FAMILY_INTEL_ADSP
select XTENSA
select XTENSA_HAL if ("$(ZEPHYR_TOOLCHAIN_VARIANT)" != "xcc" && ("$(ZEPHYR_TOOLCHAIN_VARIANT)" != "xt-clang"))
@ -12,5 +12,8 @@ config SOC_SERIES_INTEL_ADSP_CAVS @@ -12,5 +12,8 @@ config SOC_SERIES_INTEL_ADSP_CAVS
select ATOMIC_OPERATIONS_ARCH if "$(ZEPHYR_TOOLCHAIN_VARIANT)" = "xcc"
select ARCH_HAS_COHERENCE
select HAS_PM
help
Intel ADSP CAVS
config SOC_INTEL_CAVS_V25
select SOC_SERIES_INTEL_ADSP_CAVS
select XTENSA_WAITI_BUG
select SCHED_IPI_SUPPORTED

9
soc/soc_legacy/xtensa/intel_adsp/cavs/Kconfig.defconfig.cavs_v25 → soc/intel/intel_adsp/cavs/Kconfig.defconfig.cavs_v25

@ -1,15 +1,8 @@ @@ -1,15 +1,8 @@
# Copyright (c) 2020,2022 Intel Corporation
# Copyright (c) 2020,2022-2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
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
config SOC_SERIES_INTEL_CAVS_V25
def_bool y

9
soc/soc_legacy/xtensa/intel_adsp/cavs/Kconfig.defconfig.series → soc/intel/intel_adsp/cavs/Kconfig.defconfig.series

@ -1,16 +1,13 @@ @@ -1,16 +1,13 @@
# Copyright (c) 2020 Intel Corporation
# Copyright (c) 2020-2024 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
if SOC_SERIES_INTEL_ADSP_CAVS
config SOC_SERIES
string
default "cavs"
config INTEL_ADSP_CAVS
def_bool y
source "soc/soc_legacy/xtensa/intel_adsp/cavs/Kconfig.defconfig.cavs*"
rsource "Kconfig.defconfig.cavs*"
config DMA_INTEL_ADSP_GPDMA
default y

22
soc/intel/intel_adsp/cavs/Kconfig.soc

@ -0,0 +1,22 @@ @@ -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
soc/soc_legacy/xtensa/intel_adsp/common/include/_soc_inthandlers.h → soc/intel/intel_adsp/cavs/_soc_inthandlers.h

0
soc/soc_legacy/xtensa/intel_adsp/cavs/asm_ldo_management.h → soc/intel/intel_adsp/cavs/asm_ldo_management.h

0
soc/soc_legacy/xtensa/intel_adsp/cavs/asm_memory_management.h → soc/intel/intel_adsp/cavs/asm_memory_management.h

0
soc/soc_legacy/xtensa/intel_adsp/cavs/include/adsp_interrupt.h → soc/intel/intel_adsp/cavs/include/adsp_interrupt.h

0
soc/soc_legacy/xtensa/intel_adsp/cavs/include/intel_tgl_adsp/adsp_imr_layout.h → soc/intel/intel_adsp/cavs/include/intel_tgl_adsp/adsp_imr_layout.h

0
soc/soc_legacy/xtensa/intel_adsp/cavs/include/intel_tgl_adsp/adsp_ipc_regs.h → soc/intel/intel_adsp/cavs/include/intel_tgl_adsp/adsp_ipc_regs.h

0
soc/soc_legacy/xtensa/intel_adsp/cavs/include/intel_tgl_adsp/adsp_memory.h → soc/intel/intel_adsp/cavs/include/intel_tgl_adsp/adsp_memory.h

0
soc/soc_legacy/xtensa/intel_adsp/cavs/include/intel_tgl_adsp/adsp_shim.h → soc/intel/intel_adsp/cavs/include/intel_tgl_adsp/adsp_shim.h

0
soc/soc_legacy/xtensa/intel_adsp/cavs/include/intel_tgl_adsp/dmic_regs.h → soc/intel/intel_adsp/cavs/include/intel_tgl_adsp/dmic_regs.h

0
soc/soc_legacy/xtensa/intel_adsp/cavs/include/xtensa-cavs-linker.ld → soc/intel/intel_adsp/cavs/include/xtensa-cavs-linker.ld

0
soc/soc_legacy/xtensa/intel_adsp/cavs/irq.c → soc/intel/intel_adsp/cavs/irq.c

0
soc/soc_legacy/xtensa/intel_adsp/cavs/multiprocessing.c → soc/intel/intel_adsp/cavs/multiprocessing.c

0
soc/soc_legacy/xtensa/intel_adsp/cavs/power.c → soc/intel/intel_adsp/cavs/power.c

0
soc/soc_legacy/xtensa/intel_adsp/cavs/power_down_cavs.S → soc/intel/intel_adsp/cavs/power_down_cavs.S

0
soc/soc_legacy/xtensa/intel_adsp/cavs/sram.c → soc/intel/intel_adsp/cavs/sram.c

4
soc/soc_legacy/xtensa/intel_adsp/common/CMakeLists.txt → soc/intel/intel_adsp/common/CMakeLists.txt

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
# Intel CAVS SoC family CMake file
#
# Copyright (c) 2020-2022 Intel Corporation
# Copyright (c) 2020-2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
zephyr_interface_library_named(INTEL_ADSP_COMMON)
@ -129,7 +129,7 @@ add_custom_target(zephyr.ri ALL @@ -129,7 +129,7 @@ add_custom_target(zephyr.ri ALL
# Parameters after the double dash -- are passed through to rimage. For
# other ways to override default rimage parameters check
# boards/xtensa/intel_adsp_cavs25/doc/intel_adsp_generic.rst
# boards/intel/intel_adsp_cavs25/doc/intel_adsp_generic.rst
# Warning: because `west sign` can also be used interactively, using
# ${WEST_SIGN_OPTS} like this has _higher_ precedence than `west config

0
soc/soc_legacy/xtensa/intel_adsp/common/boot.c → soc/intel/intel_adsp/common/boot.c

0
soc/soc_legacy/xtensa/intel_adsp/common/boot_complete.c → soc/intel/intel_adsp/common/boot_complete.c

0
soc/soc_legacy/xtensa/intel_adsp/common/clk.c → soc/intel/intel_adsp/common/clk.c

0
soc/soc_legacy/xtensa/intel_adsp/common/include/adsp-vectors.h → soc/intel/intel_adsp/common/include/adsp-vectors.h

0
soc/soc_legacy/xtensa/intel_adsp/common/include/adsp_clk.h → soc/intel/intel_adsp/common/include/adsp_clk.h

0
soc/soc_legacy/xtensa/intel_adsp/common/include/adsp_debug_window.h → soc/intel/intel_adsp/common/include/adsp_debug_window.h

0
soc/soc_legacy/xtensa/intel_adsp/common/include/cavs-idc.h → soc/intel/intel_adsp/common/include/cavs-idc.h

0
soc/soc_legacy/xtensa/intel_adsp/common/include/cavstool.h → soc/intel/intel_adsp/common/include/cavstool.h

0
soc/soc_legacy/xtensa/intel_adsp/common/include/cpu_init.h → soc/intel/intel_adsp/common/include/cpu_init.h

0
soc/soc_legacy/xtensa/intel_adsp/common/include/debug_helpers.h → soc/intel/intel_adsp/common/include/debug_helpers.h

0
soc/soc_legacy/xtensa/intel_adsp/common/include/intel_adsp_hda.h → soc/intel/intel_adsp/common/include/intel_adsp_hda.h

0
soc/soc_legacy/xtensa/intel_adsp/common/include/intel_adsp_ipc.h → soc/intel/intel_adsp/common/include/intel_adsp_ipc.h

0
soc/soc_legacy/xtensa/intel_adsp/common/include/intel_adsp_ipc_devtree.h → soc/intel/intel_adsp/common/include/intel_adsp_ipc_devtree.h

0
soc/soc_legacy/xtensa/intel_adsp/common/include/manifest.h → soc/intel/intel_adsp/common/include/manifest.h

0
soc/soc_legacy/xtensa/intel_adsp/common/include/mem_window.h → soc/intel/intel_adsp/common/include/mem_window.h

0
soc/soc_legacy/xtensa/intel_adsp/common/include/soc.h → soc/intel/intel_adsp/common/include/soc.h

0
soc/soc_legacy/xtensa/intel_adsp/common/include/soc_util.h → soc/intel/intel_adsp/common/include/soc_util.h

0
soc/soc_legacy/xtensa/intel_adsp/common/ipc.c → soc/intel/intel_adsp/common/ipc.c

0
soc/soc_legacy/xtensa/intel_adsp/common/mem_window.c → soc/intel/intel_adsp/common/mem_window.c

0
soc/soc_legacy/xtensa/intel_adsp/common/multiprocessing.c → soc/intel/intel_adsp/common/multiprocessing.c

0
soc/soc_legacy/xtensa/intel_adsp/common/rimage_modules.c → soc/intel/intel_adsp/common/rimage_modules.c

0
soc/soc_legacy/xtensa/intel_adsp/common/soc.c → soc/intel/intel_adsp/common/soc.c

10
soc/intel/intel_adsp/soc.yml

@ -0,0 +1,10 @@ @@ -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

0
soc/soc_legacy/xtensa/intel_adsp/tools/acetool.py → soc/intel/intel_adsp/tools/acetool.py

0
soc/soc_legacy/xtensa/intel_adsp/tools/cavstool.py → soc/intel/intel_adsp/tools/cavstool.py

0
soc/soc_legacy/xtensa/intel_adsp/tools/cavstool_client.py → soc/intel/intel_adsp/tools/cavstool_client.py

8
soc/soc_legacy/xtensa/intel_adsp/tools/cavstwist.sh → soc/intel/intel_adsp/tools/cavstwist.sh

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
#!/bin/sh
# Copyright (c) 2022 Intel Corporation
# Copyright (c) 2022-2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
set -e
@ -13,8 +13,8 @@ set -e @@ -13,8 +13,8 @@ set -e
# export CAVS_RIMAGE=$HOME/rimage
#
# twister -p intel_adsp_cavs25 --device-testing \
# --device-serial-pty=$ZEPHYR_BASE/soc/soc_legacy/xtensa/intel_adsp/tools/cavstwist.sh \
# --west-flash=$ZEPHYR_BASE/soc/soc_legacy/xtensa/intel_adsp/tools/cavstwist.sh
# --device-serial-pty=$ZEPHYR_BASE/soc/intel/intel_adsp/tools/cavstwist.sh \
# --west-flash=$ZEPHYR_BASE/soc/intel/intel_adsp/tools/cavstwist.sh
#
# The CAVS_OLD_FLASHER is necessary because now the client-server-based
# cavstool works by default. This is to tell the build system to use
@ -80,7 +80,7 @@ fi @@ -80,7 +80,7 @@ fi
########################################################################
CAVSTOOL=$ZEPHYR_BASE/soc/soc_legacy/xtensa/intel_adsp/tools/cavstool.py
CAVSTOOL=$ZEPHYR_BASE/soc/intel/intel_adsp/tools/cavstool.py
IMAGE=$ZEPHYR_BASE/_cavstmp.ri
IMAGE2=$ZEPHYR_BASE/_cavstmp2.ri

0
soc/soc_legacy/xtensa/intel_adsp/tools/remote-fw-service.py → soc/intel/intel_adsp/tools/remote-fw-service.py

6
soc/soc_legacy/xtensa/intel_adsp/Kconfig.soc

@ -1,6 +0,0 @@ @@ -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"

16
soc/soc_legacy/xtensa/intel_adsp/ace/Kconfig.series

@ -1,16 +0,0 @@ @@ -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

23
soc/soc_legacy/xtensa/intel_adsp/ace/Kconfig.soc

@ -1,23 +0,0 @@ @@ -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.

13
soc/soc_legacy/xtensa/intel_adsp/cavs/Kconfig.soc

@ -1,13 +0,0 @@ @@ -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…
Cancel
Save