Commit 2423c87d authored by Jakub Wasilewski's avatar Jakub Wasilewski Committed by Fabio Baltieri
Browse files

boards: hifive_unleashed: add support for E51 and U54 targets



Add `hifive_unleashed//e51` (earlier selected by default, using
`hifive_unleashed`) and `hifive_unleashed//u54` targets.

Define work-area for other 4 cores in openocd.cfg

Update twister platform white/black lists, to support new targets

Signed-off-by: default avatarJakub Wasilewski <jwasilewski@internships.antmicro.com>
Signed-off-by: default avatarFilip Kokosinski <fkokosinski@antmicro.com>
parent 84434ba0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2,4 +2,5 @@
# SPDX-License-Identifier: Apache-2.0

config BOARD_HIFIVE_UNLEASHED
	select SOC_SIFIVE_FREEDOM_FU540
	select SOC_SIFIVE_FREEDOM_FU540_E51 if BOARD_HIFIVE_UNLEASHED_FU540_E51
	select SOC_SIFIVE_FREEDOM_FU540_U54 if BOARD_HIFIVE_UNLEASHED_FU540_U54
+15 −3
Original line number Diff line number Diff line
@@ -15,8 +15,20 @@ Building
Applications for the ``hifive_unleashed`` board configuration can be built as
usual (see :ref:`build_an_application`) using the corresponding board name:

.. tabs::

   .. group-tab:: E51

      .. zephyr-app-commands::
         :zephyr-app: samples/hello_world
         :board: hifive_unleashed/fu540/e51
         :goals: build

   .. group-tab:: U54

      .. zephyr-app-commands::
   :board: hifive_unleashed
         :zephyr-app: samples/hello_world
         :board: hifive_unleashed/fu540/u54
         :goals: build

Flashing
+30 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 2024 Antmicro <www.antmicro.com>
 *
 * SPDX-License-Identifier: Apache-2.0
 */
/dts-v1/;

#include "hifive_unleashed.dtsi"

/ {

	cpus {
		cpu@1 {
			status = "disabled";
		};

		cpu@2 {
			status = "disabled";
		};

		cpu@3 {
			status = "disabled";
		};

		cpu@4 {
			status = "disabled";
		};
	};

};
+3 −3
Original line number Diff line number Diff line
identifier: hifive_unleashed
name: SiFive HiFive Unleashed
identifier: hifive_unleashed/fu540/e51
name: SiFive HiFive Unleashed (E51)
type: mcu
arch: riscv
toolchain:
@@ -8,11 +8,11 @@ ram: 3840
simulation: renode
simulation_exec: renode
testing:
  timeout_multiplier: 6
  ignore_tags:
    - net
    - bluetooth
    - flash
    - newlib
    - crypto
  renode:
    uart: sysbus.uart0
Loading