Skip to content

Commit

Permalink
boards: xtensa: Merge intel_adsp_cavs25 variants into one directory
Browse files Browse the repository at this point in the history
Merges the intel_adsp_cavs25_tgph and intel_adsp_cavs25 board variants
into a shared directory to reduce code duplication and align with the
layout used by other multicore boards (e.g., lpcxpresso55s69,
mimxrt1170_evk, nrf9160). Note that this change does not affect the
names of the board definitions and therefore does not affect the west
command line parameters needed to build a Zephyr application.

Signed-off-by: Maureen Helm <[email protected]>
  • Loading branch information
MaureenHelm authored and nashif committed Mar 5, 2022
1 parent b9c345b commit c32d10c
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 48 deletions.
4 changes: 4 additions & 0 deletions boards/xtensa/intel_adsp_cavs25/Kconfig.board
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@
config BOARD_INTEL_ADSP_CAVS25
bool "Intel ADSP CAVS 2.5"
depends on SOC_SERIES_INTEL_CAVS_V25

config BOARD_INTEL_ADSP_CAVS25_TGPH
bool "Intel ADSP CAVS 2.5 for Tiger Lake H PCH"
depends on SOC_SERIES_INTEL_CAVS_V25
7 changes: 4 additions & 3 deletions boards/xtensa/intel_adsp_cavs25/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
#
# SPDX-License-Identifier: Apache-2.0

if BOARD_INTEL_ADSP_CAVS25
if BOARD_INTEL_ADSP_CAVS25 || BOARD_INTEL_ADSP_CAVS25_TGPH

config BOARD
default "intel_adsp_cavs25"
default "intel_adsp_cavs25" if BOARD_INTEL_ADSP_CAVS25
default "intel_adsp_cavs25_tgph" if BOARD_INTEL_ADSP_CAVS25_TGPH

endif # BOARD_INTEL_ADSP_CAVS25
endif # BOARD_INTEL_ADSP_CAVS25 || BOARD_INTEL_ADSP_CAVS25_TGPH
6 changes: 6 additions & 0 deletions boards/xtensa/intel_adsp_cavs25/board.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,10 @@
board_set_flasher_ifnset(misc-flasher)
board_finalize_runner_args(misc-flasher)

if(CONFIG_BOARD_INTEL_ADSP_CAVS25)
board_set_rimage_target(tgl)
endif()

if(CONFIG_BOARD_INTEL_ADSP_CAVS25_TGPH)
board_set_rimage_target(tgl-h)
endif()
8 changes: 0 additions & 8 deletions boards/xtensa/intel_adsp_cavs25_tgph/Kconfig.board

This file was deleted.

10 changes: 0 additions & 10 deletions boards/xtensa/intel_adsp_cavs25_tgph/Kconfig.defconfig

This file was deleted.

6 changes: 0 additions & 6 deletions boards/xtensa/intel_adsp_cavs25_tgph/board.cmake

This file was deleted.

21 changes: 0 additions & 21 deletions boards/xtensa/intel_adsp_cavs25_tgph/doc/index.rst

This file was deleted.

0 comments on commit c32d10c

Please sign in to comment.