boards: arm: cyclonev_socdk: Move to HWMv2

Move and convert to HWMv2 `cyclonev_socdk` board configuration.

Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>
This commit is contained in:
Dmitrii Golovanov
2024-02-13 01:32:26 +01:00
committed by Carles Cufi
parent 2271f17a86
commit f0a8d12745
19 changed files with 21 additions and 36 deletions

View File

@@ -1,8 +0,0 @@
# Copyright (c) 2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
# Description:
# Cyclone V SoC development kit configuration option
config BOARD_CVSXDEVKIT
bool "Intel Cyclone V Development Kit"
depends on SOC_CYCLONE5

View File

@@ -0,0 +1,7 @@
# Copyright (c) 2022-2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
config BOARD_CYCLONEV_SOCDK
select SOC_CYCLONE5
help
Intel Cyclone V Development Kit

View File

@@ -1,13 +1,5 @@
# Copyright (c) 2022 Intel Corporation
# Copyright (c) 2022-2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
# Description:
# Adding support for Cyclone V SoC DevKit
if BOARD_CVSXDEVKIT
config BOARD
default "cyclonev_socdk"
depends on BOARD_CVSXDEVKIT
if I2C_DW
config I2C_DW_CLOCK_SPEED
@@ -29,5 +21,3 @@ config TEST_RANDOM_GENERATOR
default y
endif # NETWORKING
endif # BOARD_CVSXDEVKIT

View File

@@ -1,7 +1,5 @@
# Copyright (c) 2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
# Description:
# Cmake file for the OpenOCD runner for Cyclone V SoC DevKit
board_set_flasher_ifnset(intel_cyclonev)
board_set_debugger_ifnset(intel_cyclonev)
@@ -19,4 +17,3 @@ board_finalize_runner_args(intel_cyclonev
--cmd-load "${OPENOCD_CMD_LOAD_DEFAULT}"
--cmd-verify "${OPENOCD_CMD_VERIFY_DEFAULT}"
)

View File

@@ -0,0 +1,4 @@
board:
name: cyclonev_socdk
socs:
- name: intel_socfpga_std_cyclonev

View File

@@ -1,11 +1,6 @@
# Copyright (c) 2022 Intel Corporation
# Copyright (c) 2022-2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
# Description:
# Cyclone V SoC Development Kit Board configuration file
CONFIG_SOC_SERIES_CYCLONE5=y
CONFIG_SOC_CYCLONE5=y
CONFIG_BOARD_CVSXDEVKIT=y
CONFIG_ARM_ARCH_TIMER=y
CONFIG_SYSCON=y

View File

Before

Width:  |  Height:  |  Size: 110 KiB

After

Width:  |  Height:  |  Size: 110 KiB

View File

Before

Width:  |  Height:  |  Size: 67 KiB

After

Width:  |  Height:  |  Size: 67 KiB

View File

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 45 KiB

View File

@@ -169,7 +169,7 @@ application.
``Important!!!`` : Before flashing the board a ``preloader`` is required,
you can download `cv_soc_devkit_ghrd.tar.gz <https://releases.rocketboards.org/release/2018.05/gsrd/hw/cv_soc_devkit_ghrd.tar.gz>`_,
extract the file and copy ``cv_soc_devkit_ghrd/software/preloader/uboot-socfpga/spl/u-boot-spl``
to ``boards/arm/cyclonev_socdk/support/``
to ``boards/intel/cyclonev_socdk/support/``
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
@@ -184,7 +184,7 @@ using the customized OpenOCD runner script :zephyr_file:`scripts/west_commands/r
After it completes the kernel will immediately boot using the GSRD preloader.
Notice that there a lot of helper files to ``flash`` the application with
OpenOCD and GDB Debbuger (Zephyr SDK must be installed in your machine).
This files should be located in :zephyr_file:`boards/arm/cyclonev_socdk/support/` including:
This files should be located in :zephyr_file:`boards/intel/cyclonev_socdk/support/` including:
* blaster_6810.hex : USB-BlasterII firmware
* tmp_preloader_dl_cmd.txt : GDB helper file to load the preloader
@@ -294,7 +294,7 @@ You will see output similar to the following:
warning: No executable has been specified and target does not support
determining executable automatically. Try using the "file" command.
0xffff147c in ?? ()
warning: /home/demo/zephyrproject/zephyr/boards/arm/cvsxdevkit/support/tmp_appli_debug_cmd.gdb: No such file or directory
warning: /home/demo/zephyrproject/zephyr/boards/intel/cyclonev_socdk/support/tmp_appli_debug_cmd.gdb: No such file or directory
[Inferior 1 (Remote target) detached]
Info : dropped 'gdb' connection
shutdown command invoked

View File

@@ -1,4 +1,4 @@
# Copyright (c) 2022 Intel Corporation
# Copyright (c) 2022-2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
# Description:
# Download preloader and .elf using GDB commands
@@ -7,7 +7,7 @@ set confirm off
set pagination off
#Download and Run preloader
source boards/arm/cyclonev_socdk/support/preloader_dl_cmd.txt
source boards/intel/cyclonev_socdk/support/preloader_dl_cmd.txt
#Stop watchdog timer
#permodrst Reg , reset watch dog timer

View File

@@ -1,9 +1,9 @@
# Copyright (c) 2022 Intel Corporation
# Copyright (c) 2022-2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
# Description:
# Helper file to download the GSRD preloader to the board before the application
restore boards/arm/cyclonev_socdk/support/u-boot-spl
symbol-file -readnow boards/arm/cyclonev_socdk/support/u-boot-spl
restore boards/intel/cyclonev_socdk/support/u-boot-spl
symbol-file -readnow boards/intel/cyclonev_socdk/support/u-boot-spl
thbreak spl_boot_device
jump _start