diff --git a/boards/boards_legacy/arc/hsdk4xd/Kconfig.defconfig b/boards/boards_legacy/arc/hsdk4xd/Kconfig.defconfig deleted file mode 100644 index cabe258f68ff..000000000000 --- a/boards/boards_legacy/arc/hsdk4xd/Kconfig.defconfig +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) 2023 Synopsys, Inc. All rights reserved. -# SPDX-License-Identifier: Apache-2.0 - -if BOARD_HSDK4XD - -config BOARD - default "hsdk4xd" - -endif #BOARD_HSDK4XD diff --git a/boards/boards_legacy/arc/hsdk4xd/hsdk4xd.dts b/boards/boards_legacy/arc/hsdk4xd/hsdk4xd.dts deleted file mode 100644 index e58b349c3621..000000000000 --- a/boards/boards_legacy/arc/hsdk4xd/hsdk4xd.dts +++ /dev/null @@ -1,14 +0,0 @@ -/* - * Copyright (c) 2023, Synopsys, Inc. All rights reserved. - * - * SPDX-License-Identifier: Apache-2.0 - */ - -/dts-v1/; - -#include "hsdk4xd.dtsi" - -/ { - model = "hsdk4xd"; - compatible = "snps,hsdk4xd"; -}; diff --git a/boards/boards_legacy/arc/hsdk4xd/CMakeLists.txt b/boards/synopsys/hsdk4xd/CMakeLists.txt similarity index 100% rename from boards/boards_legacy/arc/hsdk4xd/CMakeLists.txt rename to boards/synopsys/hsdk4xd/CMakeLists.txt diff --git a/boards/boards_legacy/arc/hsdk4xd/Kconfig.board b/boards/synopsys/hsdk4xd/Kconfig.hsdk4xd similarity index 86% rename from boards/boards_legacy/arc/hsdk4xd/Kconfig.board rename to boards/synopsys/hsdk4xd/Kconfig.hsdk4xd index 76819350da3a..23c57baf0e9c 100644 --- a/boards/boards_legacy/arc/hsdk4xd/Kconfig.board +++ b/boards/synopsys/hsdk4xd/Kconfig.hsdk4xd @@ -4,8 +4,7 @@ # SPDX-License-Identifier: Apache-2.0 config BOARD_HSDK4XD - bool "ARC HSDK4XD Development Kit" - depends on SOC_ARC_HSDK4XD + select SOC_ARC_HSDK4XD help The ARC HS4x/4xD Development Kit is a ready-to-use software development platform for the ARC HS4x/4xD family of processor IP. It includes diff --git a/boards/boards_legacy/arc/hsdk4xd/board.cmake b/boards/synopsys/hsdk4xd/board.cmake similarity index 100% rename from boards/boards_legacy/arc/hsdk4xd/board.cmake rename to boards/synopsys/hsdk4xd/board.cmake index 04fb70c5dad6..dd49a483a390 100644 --- a/boards/boards_legacy/arc/hsdk4xd/board.cmake +++ b/boards/synopsys/hsdk4xd/board.cmake @@ -1,6 +1,6 @@ # SPDX-License-Identifier: Apache-2.0 -board_runner_args(openocd "--use-elf") +board_runner_args(openocd "--use-elf") board_runner_args(mdb-hw "--jtag=digilent" "--cores=${CONFIG_MP_MAX_NUM_CPUS}") include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake) include(${ZEPHYR_BASE}/boards/common/mdb-hw.board.cmake) diff --git a/boards/synopsys/hsdk4xd/board.yml b/boards/synopsys/hsdk4xd/board.yml new file mode 100644 index 000000000000..ecc18bb432a3 --- /dev/null +++ b/boards/synopsys/hsdk4xd/board.yml @@ -0,0 +1,5 @@ +board: + name: hsdk4xd + vendor: Synopsys + socs: + - name: arc_hsdk4xd diff --git a/boards/boards_legacy/arc/hsdk4xd/doc/arduino_shield_interface.jpg b/boards/synopsys/hsdk4xd/doc/arduino_shield_interface.jpg similarity index 100% rename from boards/boards_legacy/arc/hsdk4xd/doc/arduino_shield_interface.jpg rename to boards/synopsys/hsdk4xd/doc/arduino_shield_interface.jpg diff --git a/boards/boards_legacy/arc/hsdk4xd/doc/hsdk4xd.jpg b/boards/synopsys/hsdk4xd/doc/hsdk4xd.jpg similarity index 100% rename from boards/boards_legacy/arc/hsdk4xd/doc/hsdk4xd.jpg rename to boards/synopsys/hsdk4xd/doc/hsdk4xd.jpg diff --git a/boards/boards_legacy/arc/hsdk4xd/doc/index.rst b/boards/synopsys/hsdk4xd/doc/index.rst similarity index 99% rename from boards/boards_legacy/arc/hsdk4xd/doc/index.rst rename to boards/synopsys/hsdk4xd/doc/index.rst index ee59fe32d2ca..b373f22cee31 100644 --- a/boards/boards_legacy/arc/hsdk4xd/doc/index.rst +++ b/boards/synopsys/hsdk4xd/doc/index.rst @@ -391,7 +391,7 @@ You can try many of the :ref:`sample applications and demos Configuring ----------- -You may need to write a ``prj_arc.conf`` file if the sample doesn't have one. +You may need to write a ``prj.conf`` file if the sample doesn't have one. Next, you can use the menuconfig rule to configure the target. By specifying ``hsdk4xd`` as the board configuration, you can select the ARC HS4x/HS4xD Development Kit board support for Zephyr. diff --git a/boards/boards_legacy/arc/hsdk4xd/doc/mikrobus_header.jpg b/boards/synopsys/hsdk4xd/doc/mikrobus_header.jpg similarity index 100% rename from boards/boards_legacy/arc/hsdk4xd/doc/mikrobus_header.jpg rename to boards/synopsys/hsdk4xd/doc/mikrobus_header.jpg diff --git a/boards/boards_legacy/arc/hsdk4xd/doc/pinout_diagram_of_the_pmod.jpg b/boards/synopsys/hsdk4xd/doc/pinout_diagram_of_the_pmod.jpg similarity index 100% rename from boards/boards_legacy/arc/hsdk4xd/doc/pinout_diagram_of_the_pmod.jpg rename to boards/synopsys/hsdk4xd/doc/pinout_diagram_of_the_pmod.jpg diff --git a/boards/boards_legacy/arc/hsdk4xd/hsdk4xd.dtsi b/boards/synopsys/hsdk4xd/hsdk4xd.dts similarity index 89% rename from boards/boards_legacy/arc/hsdk4xd/hsdk4xd.dtsi rename to boards/synopsys/hsdk4xd/hsdk4xd.dts index 1e0fa062b982..59792f4d487f 100644 --- a/boards/boards_legacy/arc/hsdk4xd/hsdk4xd.dtsi +++ b/boards/synopsys/hsdk4xd/hsdk4xd.dts @@ -9,6 +9,8 @@ #include / { + model = "hsdk4xd"; + compatible = "snps,hsdk4xd"; aliases { uart-dbg = &uart_dbg; diff --git a/boards/boards_legacy/arc/hsdk4xd/hsdk4xd.yaml b/boards/synopsys/hsdk4xd/hsdk4xd.yaml similarity index 100% rename from boards/boards_legacy/arc/hsdk4xd/hsdk4xd.yaml rename to boards/synopsys/hsdk4xd/hsdk4xd.yaml diff --git a/boards/boards_legacy/arc/hsdk4xd/hsdk4xd_defconfig b/boards/synopsys/hsdk4xd/hsdk4xd_defconfig similarity index 86% rename from boards/boards_legacy/arc/hsdk4xd/hsdk4xd_defconfig rename to boards/synopsys/hsdk4xd/hsdk4xd_defconfig index 24f79598815e..00d8ba6ff0df 100644 --- a/boards/boards_legacy/arc/hsdk4xd/hsdk4xd_defconfig +++ b/boards/synopsys/hsdk4xd/hsdk4xd_defconfig @@ -1,7 +1,5 @@ # SPDX-License-Identifier: Apache-2.0 -CONFIG_SOC_ARC_HSDK4XD=y -CONFIG_BOARD_HSDK4XD=y CONFIG_SYS_CLOCK_TICKS_PER_SEC=100 CONFIG_BUILD_NO_GAP_FILL=y CONFIG_BUILD_OUTPUT_BIN=n diff --git a/boards/boards_legacy/arc/hsdk4xd/support/openocd.cfg b/boards/synopsys/hsdk4xd/support/openocd.cfg similarity index 100% rename from boards/boards_legacy/arc/hsdk4xd/support/openocd.cfg rename to boards/synopsys/hsdk4xd/support/openocd.cfg