Browse Source

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>
pull/69687/head
Dmitrii Golovanov 1 year ago committed by Carles Cufi
parent
commit
f0a8d12745
  1. 8
      boards/boards_legacy/arm/cyclonev_socdk/Kconfig.board
  2. 7
      boards/intel/cyclonev_socdk/Kconfig.cyclonev_socdk
  3. 12
      boards/intel/cyclonev_socdk/Kconfig.defconfig
  4. 3
      boards/intel/cyclonev_socdk/board.cmake
  5. 4
      boards/intel/cyclonev_socdk/board.yml
  6. 0
      boards/intel/cyclonev_socdk/cyclonev_socdk.dts
  7. 0
      boards/intel/cyclonev_socdk/cyclonev_socdk.yaml
  8. 7
      boards/intel/cyclonev_socdk/cyclonev_socdk_defconfig
  9. 0
      boards/intel/cyclonev_socdk/doc/img/cv_soc_board.jpg
  10. 0
      boards/intel/cyclonev_socdk/doc/img/cyclonev_blinky.jpg
  11. 0
      boards/intel/cyclonev_socdk/doc/img/cyclonev_westflash.jpg
  12. 6
      boards/intel/cyclonev_socdk/doc/index.rst
  13. 0
      boards/intel/cyclonev_socdk/support/altera-usb-blaster2-cyclonev.cfg
  14. 0
      boards/intel/cyclonev_socdk/support/appli_debug_cmd.gdb
  15. 0
      boards/intel/cyclonev_socdk/support/appli_dl_cmd.gdb
  16. 0
      boards/intel/cyclonev_socdk/support/blaster_6810.hex
  17. 4
      boards/intel/cyclonev_socdk/support/download_all.gdb
  18. 0
      boards/intel/cyclonev_socdk/support/openocd.cfg
  19. 6
      boards/intel/cyclonev_socdk/support/preloader_dl_cmd.txt

8
boards/boards_legacy/arm/cyclonev_socdk/Kconfig.board

@ -1,8 +0,0 @@ @@ -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

7
boards/intel/cyclonev_socdk/Kconfig.cyclonev_socdk

@ -0,0 +1,7 @@ @@ -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

12
boards/boards_legacy/arm/cyclonev_socdk/Kconfig.defconfig → boards/intel/cyclonev_socdk/Kconfig.defconfig

@ -1,13 +1,5 @@ @@ -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 @@ -29,5 +21,3 @@ config TEST_RANDOM_GENERATOR
default y
endif # NETWORKING
endif # BOARD_CVSXDEVKIT

3
boards/boards_legacy/arm/cyclonev_socdk/board.cmake → boards/intel/cyclonev_socdk/board.cmake

@ -1,7 +1,5 @@ @@ -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 @@ -19,4 +17,3 @@ board_finalize_runner_args(intel_cyclonev
--cmd-load "${OPENOCD_CMD_LOAD_DEFAULT}"
--cmd-verify "${OPENOCD_CMD_VERIFY_DEFAULT}"
)

4
boards/intel/cyclonev_socdk/board.yml

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

0
boards/boards_legacy/arm/cyclonev_socdk/cyclonev_socdk.dts → boards/intel/cyclonev_socdk/cyclonev_socdk.dts

0
boards/boards_legacy/arm/cyclonev_socdk/cyclonev_socdk.yaml → boards/intel/cyclonev_socdk/cyclonev_socdk.yaml

7
boards/boards_legacy/arm/cyclonev_socdk/cyclonev_socdk_defconfig → boards/intel/cyclonev_socdk/cyclonev_socdk_defconfig

@ -1,11 +1,6 @@ @@ -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

0
boards/boards_legacy/arm/cyclonev_socdk/doc/img/cv_soc_board.jpg → boards/intel/cyclonev_socdk/doc/img/cv_soc_board.jpg

Before

Width:  |  Height:  |  Size: 110 KiB

After

Width:  |  Height:  |  Size: 110 KiB

0
boards/boards_legacy/arm/cyclonev_socdk/doc/img/cyclonev_blinky.jpg → boards/intel/cyclonev_socdk/doc/img/cyclonev_blinky.jpg

Before

Width:  |  Height:  |  Size: 67 KiB

After

Width:  |  Height:  |  Size: 67 KiB

0
boards/boards_legacy/arm/cyclonev_socdk/doc/img/cyclonev_westflash.jpg → boards/intel/cyclonev_socdk/doc/img/cyclonev_westflash.jpg

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 45 KiB

6
boards/boards_legacy/arm/cyclonev_socdk/doc/index.rst → boards/intel/cyclonev_socdk/doc/index.rst

@ -169,7 +169,7 @@ application. @@ -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 @@ -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: @@ -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

0
boards/boards_legacy/arm/cyclonev_socdk/support/altera-usb-blaster2-cyclonev.cfg → boards/intel/cyclonev_socdk/support/altera-usb-blaster2-cyclonev.cfg

0
boards/boards_legacy/arm/cyclonev_socdk/support/appli_debug_cmd.gdb → boards/intel/cyclonev_socdk/support/appli_debug_cmd.gdb

0
boards/boards_legacy/arm/cyclonev_socdk/support/appli_dl_cmd.gdb → boards/intel/cyclonev_socdk/support/appli_dl_cmd.gdb

0
boards/boards_legacy/arm/cyclonev_socdk/support/blaster_6810.hex → boards/intel/cyclonev_socdk/support/blaster_6810.hex

4
boards/boards_legacy/arm/cyclonev_socdk/support/download_all.gdb → boards/intel/cyclonev_socdk/support/download_all.gdb

@ -1,4 +1,4 @@ @@ -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 @@ -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

0
boards/boards_legacy/arm/cyclonev_socdk/support/openocd.cfg → boards/intel/cyclonev_socdk/support/openocd.cfg

6
boards/boards_legacy/arm/cyclonev_socdk/support/preloader_dl_cmd.txt → boards/intel/cyclonev_socdk/support/preloader_dl_cmd.txt

@ -1,9 +1,9 @@ @@ -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
Loading…
Cancel
Save