Skip to content

Commit c90bc6f

Browse files
amd: acp_7_x: add build support for ACP_7_X
Add CMakeLists.txt files to integrate the ACP 7.X platform and driver sources into the SOF CMake build system. This covers the platform-level build (platform.c, lib/clk.c) and the driver-level build (ipc.c) under src/drivers/amd/acp_7_x/, enabling the ACP_7_X platform to be compiled when CONFIG_ACP_7_X is selected. Signed-off-by: Sneha Voona <sneha.voona@amd.com> Co-authored-by: DineshKumar Kalva <DineshKumar.Kalva@amd.com>
1 parent d4aac27 commit c90bc6f

3 files changed

Lines changed: 24 additions & 2 deletions

File tree

src/drivers/amd/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
# SPDX-License-Identifier: BSD-3-Clause
2-
add_subdirectory(common)
2+
if(CONFIG_RENOIR OR CONFIG_VANGOGH OR CONFIG_REMBRANDT OR CONFIG_ACP_6_3 OR CONFIG_ACP_7_0)
3+
add_subdirectory(common)
4+
endif()
35
if(CONFIG_RENOIR)
46
add_subdirectory(renoir)
57
elseif(CONFIG_REMBRANDT OR CONFIG_ACP_6_3 OR CONFIG_ACP_7_0)
68
add_subdirectory(rembrandt)
79
elseif(CONFIG_VANGOGH)
810
add_subdirectory(vangogh)
11+
elseif(CONFIG_ACP_7_X)
12+
add_subdirectory(acp_7_x)
913
endif()

src/platform/Kconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,19 @@ config ACP_7_0
251251
help
252252
Select if your target platform is acp_7_0-compatible
253253

254+
config ACP_7_X
255+
bool "Build for ACP_7_X"
256+
select XT_INTERRUPT_LEVEL_5
257+
select XT_INTERRUPT_LEVEL_3
258+
select XT_INTERRUPT_LEVEL_1
259+
select XT_INTERRUPT_LEVEL_4
260+
select XT_WAITI_DELAY
261+
select XTENSA_EXCLUSIVE
262+
select AMD
263+
select AMD_BINARY_BUILD
264+
help
265+
Select if your target platform is acp_7_x-compatible
266+
254267
config MT8186
255268
bool "Build for MTK MT8186 (XTOS)"
256269
select XT_INTERRUPT_LEVEL_1
@@ -544,6 +557,7 @@ config RIMAGE_SIGNING_SCHEMA
544557
default "vangogh" if VANGOGH
545558
default "acp_6_3" if ACP_6_3
546559
default "acp_7_0" if ACP_7_0
560+
default "acp_7_x" if ACP_7_X
547561
default "mt8186" if MT8186
548562
default "mt8188" if MT8188
549563
default "mt8195" if MT8195

src/platform/amd/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# SPDX-License-Identifier: BSD-3-Clause
2-
add_subdirectory(common)
2+
if(CONFIG_RENOIR OR CONFIG_VANGOGH OR CONFIG_REMBRANDT OR CONFIG_ACP_6_3 OR CONFIG_ACP_7_0)
3+
add_subdirectory(common)
4+
endif()
35
if(CONFIG_RENOIR)
46
add_subdirectory(renoir)
57
elseif(CONFIG_REMBRANDT)
@@ -10,4 +12,6 @@ elseif(CONFIG_ACP_6_3)
1012
add_subdirectory(acp_6_3)
1113
elseif(CONFIG_ACP_7_0)
1214
add_subdirectory(acp_7_0)
15+
elseif(CONFIG_ACP_7_X)
16+
add_subdirectory(acp_7_x)
1317
endif()

0 commit comments

Comments
 (0)