From 4e0e8ec8d2161145c82f797b53bfe395a1699f4e Mon Sep 17 00:00:00 2001 From: DINESHKUMAR Date: Mon, 14 Oct 2024 14:50:40 +0530 Subject: [PATCH] Board: amd : Add amd_acp_6_0_adsp board support for the Audio DSP on ACP soc. Create a amd_acp_6_0_adsp board support for the Audio DSP on ACP soc. Signed-off-by: DineshKumar Kalva --- .../amd_acp_6_0_adsp/Kconfig.amd_acp_6_0_adsp | 5 +++ .../amd/amd_acp_6_0_adsp/acp_6_0_acp_adsp.dts | 14 ++++++++ .../amd_acp_6_0_adsp_defconfig | 12 +++++++ boards/amd/amd_acp_6_0_adsp/board.cmake | 4 +++ boards/amd/amd_acp_6_0_adsp/board.yml | 5 +++ boards/amd/amd_acp_6_0_adsp/doc/index.rst | 35 +++++++++++++++++++ 6 files changed, 75 insertions(+) create mode 100644 boards/amd/amd_acp_6_0_adsp/Kconfig.amd_acp_6_0_adsp create mode 100644 boards/amd/amd_acp_6_0_adsp/acp_6_0_acp_adsp.dts create mode 100644 boards/amd/amd_acp_6_0_adsp/amd_acp_6_0_adsp_defconfig create mode 100644 boards/amd/amd_acp_6_0_adsp/board.cmake create mode 100644 boards/amd/amd_acp_6_0_adsp/board.yml create mode 100644 boards/amd/amd_acp_6_0_adsp/doc/index.rst diff --git a/boards/amd/amd_acp_6_0_adsp/Kconfig.amd_acp_6_0_adsp b/boards/amd/amd_acp_6_0_adsp/Kconfig.amd_acp_6_0_adsp new file mode 100644 index 000000000000000..a23a950da13eee8 --- /dev/null +++ b/boards/amd/amd_acp_6_0_adsp/Kconfig.amd_acp_6_0_adsp @@ -0,0 +1,5 @@ +# Copyright (c) 2024 AMD +# SPDX-License-Identifier: Apache-2.0 + +config BOARD_AMD_ACP_6_0_ADSP +select SOC_ACP_6_0 diff --git a/boards/amd/amd_acp_6_0_adsp/acp_6_0_acp_adsp.dts b/boards/amd/amd_acp_6_0_adsp/acp_6_0_acp_adsp.dts new file mode 100644 index 000000000000000..469a82d19be9f33 --- /dev/null +++ b/boards/amd/amd_acp_6_0_adsp/acp_6_0_acp_adsp.dts @@ -0,0 +1,14 @@ +/* + * Copyright (c) 2024 AMD + * + * SPDX-License-Identifier: Apache-2.0 + */ + +/dts-v1/; + +#include + +/ { + model = "AMD ACP_6_0 Audio DSP"; + compatible = "acp_6_0"; +}; diff --git a/boards/amd/amd_acp_6_0_adsp/amd_acp_6_0_adsp_defconfig b/boards/amd/amd_acp_6_0_adsp/amd_acp_6_0_adsp_defconfig new file mode 100644 index 000000000000000..d2c58475ddbaefb --- /dev/null +++ b/boards/amd/amd_acp_6_0_adsp/amd_acp_6_0_adsp_defconfig @@ -0,0 +1,12 @@ +# SPDX-License-Identifier: Apache-2.0 + +CONFIG_GEN_ISR_TABLES=y +CONFIG_GEN_IRQ_VECTOR_TABLE=y +CONFIG_XTENSA_RESET_VECTOR=y +CONFIG_OUTPUT_SYMBOLS=y +CONFIG_MULTI_LEVEL_INTERRUPTS=n +CONFIG_2ND_LEVEL_INTERRUPTS=n +CONFIG_BUILD_OUTPUT_BIN=n +CONFIG_CLEANUP_INTERMEDIATE_FILES=y +CONFIG_DCACHE_LINE_SIZE_DETECT=n +CONFIG_DCACHE_LINE_SIZE=128 diff --git a/boards/amd/amd_acp_6_0_adsp/board.cmake b/boards/amd/amd_acp_6_0_adsp/board.cmake new file mode 100644 index 000000000000000..7032982c617712f --- /dev/null +++ b/boards/amd/amd_acp_6_0_adsp/board.cmake @@ -0,0 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 +board_set_flasher_ifnset(misc-flasher) +board_finalize_runner_args(misc-flasher) +board_set_rimage_target(rmb) diff --git a/boards/amd/amd_acp_6_0_adsp/board.yml b/boards/amd/amd_acp_6_0_adsp/board.yml new file mode 100644 index 000000000000000..a998bf6b975d757 --- /dev/null +++ b/boards/amd/amd_acp_6_0_adsp/board.yml @@ -0,0 +1,5 @@ +board: + name: amd_acp_6_0_adsp + vendor: amd + socs: + - name: acp_6_0 diff --git a/boards/amd/amd_acp_6_0_adsp/doc/index.rst b/boards/amd/amd_acp_6_0_adsp/doc/index.rst new file mode 100644 index 000000000000000..7463ba0f34d83f6 --- /dev/null +++ b/boards/amd/amd_acp_6_0_adsp/doc/index.rst @@ -0,0 +1,35 @@ +.. _amd_acp_6_0_adsp: + +AMD ACP_6_0 +############ + +Overview +******** + +ACP_6_0 ADSP board is based on AMD ACP_6_0 platform, +Zephyr OS is ported to run on the HiFi5 DSP . + +- Board features: + + - RAM & Storage: 1.75 MB HP SRAM / 512 KB IRAM/DRAM + - Audio Interfaces: + - 1 x SP (I2S, PCM), + - 1 x BT (I2S, PCM), + - 1 x HS(I2S, PCM), + - DMIC + +Supported Features +================== + +The following hardware features are supported: + ++-----------+------------+-------------------------------------+ +| Interface | Controller | Driver/Component | ++===========+============+=====================================+ +| I2S | on-chip | interrupt controller | ++-----------+------------+-------------------------------------+ + +System Clock +------------ + +This board configuration uses a system clock frequency of @ 200 - 800MHz.