Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion scripts/xtensa-build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -e
# They must have a toolchain available in the latest Docker image.
DEFAULT_PLATFORMS=(
imx8 imx8x imx8m imx8ulp
rn rmb
rn rmb vangogh
mt8186 mt8195
)

Expand Down Expand Up @@ -235,6 +235,13 @@ do
HOST="xtensa-rmb-elf"
XTENSA_TOOLS_VERSION="RI-2019.1-linux"
;;
vangogh)
PLATFORM="vangogh"
ARCH="xtensa"
XTENSA_CORE="ACP_5_0_001_PROD"
HOST="xtensa-vangogh-elf"
XTENSA_TOOLS_VERSION="RI-2019.1-linux"
;;
mt8186)
PLATFORM="mt8186"
XTENSA_CORE="hifi5_7stg_I64D128"
Expand Down
8 changes: 7 additions & 1 deletion src/arch/xtensa/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ elseif(CONFIG_RENOIR)
set(platform_folder amd/renoir)
elseif(CONFIG_REMBRANDT)
set(platform_folder amd/rembrandt)
elseif(CONFIG_VANGOGH)
set(platform_folder amd/vangogh)
elseif(CONFIG_MT8186)
set(platform_folder mt8186)
elseif(CONFIG_MT8188)
Expand All @@ -33,6 +35,10 @@ get_filename_component(_plf_ld_script ${platform_folder} NAME)
set(platform_ld_script ${_plf_ld_script}.x)
set(platform_rom_ld_script rom.x)

if(CONFIG_AMD)
target_include_directories(sof_options INTERFACE ${PROJECT_SOURCE_DIR}/src/platform/amd/common/include)
endif()

# includes

# None of these should be included if Zephyr strict headers are used.
Expand Down Expand Up @@ -464,7 +470,7 @@ add_custom_target(
# NXP
set(UNSIGNED_RI imx8 imx8x imx8m imx8ulp)
# AMD
list(APPEND UNSIGNED_RI rn rmb)
list(APPEND UNSIGNED_RI rn rmb vangogh)
# MediaTek
list(APPEND UNSIGNED_RI mt8186 mt8188 mt8195)

Expand Down
26 changes: 26 additions & 0 deletions src/arch/xtensa/configs/vangogh_defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
CONFIG_VANGOGH=y
CONFIG_RIMAGE_SIGNING_SCHEMA="vangogh"
CONFIG_TRACE_CHANNEL=7
CONFIG_WRAP_ACTUAL_POSITION=y
CONFIG_AMD_BT=n
CONFIG_CORE_COUNT=1
CONFIG_LP_MEMORY_BANKS=0
CONFIG_HP_MEMORY_BANKS=20
CONFIG_FORMAT_CONVERT_HIFI3=n
CONFIG_LP_SRAM=n
CONFIG_HAVE_AGENT=n
CONFIG_COMP_SRC=n
CONFIG_COMP_FIR=n
CONFIG_COMP_IIR=n
CONFIG_COMP_DCBLOCK=n
CONFIG_COMP_TDFB=n
CONFIG_COMP_TONE=n
CONFIG_COMP_MIXER=n
CONFIG_COMP_MUX=n
CONFIG_COMP_SWITCH=n
CONFIG_COMP_KPB=n
CONFIG_COMP_SEL=n
CONFIG_COMP_ASRC=n
CONFIG_TRACE=y
CONFIG_TRACEE=y
CONFIG_TRACEV=y
2 changes: 1 addition & 1 deletion src/drivers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if(CONFIG_INTEL)
add_subdirectory(intel)
endif()

if(CONFIG_RENOIR OR CONFIG_REMBRANDT)
if(CONFIG_AMD)
add_subdirectory(amd)
endif()

Expand Down
4 changes: 3 additions & 1 deletion src/drivers/amd/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# SPDX-License-Identifier: BSD-3-Clause

add_subdirectory(common)
if(CONFIG_RENOIR)
add_subdirectory(renoir)
elseif(CONFIG_REMBRANDT)
add_subdirectory(rembrandt)
elseif(CONFIG_VANGOGH)
add_subdirectory(vangogh)
endif()
11 changes: 11 additions & 0 deletions src/drivers/amd/common/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# SPDX-License-Identifier: BSD-3-Clause

add_local_sources(sof
acp_dma.c
acp_bt_dai.c
acp_dmic_dai.c
ipc.c
timer.c
acp_sp_dma.c
acp_dmic_dma.c
)
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// SPDX-License-Identifier: BSD-3-Clause
//
//Copyright(c) 2022 AMD. All rights reserved.
//Copyright(c) 2023 AMD. All rights reserved.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lgirdwood , shall we set a rule: for each source file, if there is a change in 2023, this should be updated, I noticed that a lot of files are not updated with year in time, this is not aligned with opensource policy.

//
//Author: Basavaraj Hiregoudar <basavaraj.hiregoudar@amd.com>
// Bala Kishore <balakishore.pati@amd.com>
// SaiSurya, Ch <saisurya.chakkaveeravenkatanaga@amd.com>

#include <sof/audio/component.h>
#include <sof/drivers/acp_dai_dma.h>
Expand All @@ -18,22 +18,22 @@
#include <sof/lib/io.h>
#include <platform/chip_offset_byte.h>

/* 4abd71ba-8619-458a-b33f-160fc0cf809b */
DECLARE_SOF_UUID("btdai", btdai_uuid, 0x4abd71ba, 0x8619, 0x458a,
0xb3, 0x3f, 0x16, 0x0f, 0xc0, 0xcf, 0x80, 0x9b);
/* 20865bfe-b833-4ff9-b22a-0482c3477497 */
DECLARE_SOF_UUID("btdai", btdai_uuid, 0x20865bfe, 0xb833, 0x4ff9,
0xb2, 0x2a, 0x04, 0x82, 0xc3, 0x47, 0x74, 0x97);

DECLARE_TR_CTX(btdai_tr, SOF_UUID(btdai_uuid), LOG_LEVEL_INFO);

static inline int btdai_set_config(struct dai *dai, struct ipc_config_dai *common_config,
const void *spec_config)
{
/* nothing to do on rembrandt */
/* nothing to do */
return 0;
}

static int btdai_trigger(struct dai *dai, int cmd, int direction)
{
/* nothing to do on rembrandt */
/* nothing to do */
return 0;
}

Expand Down
Loading