boards: hifive_unmatched: add support for S7 and U74 targets
Add `hifive_unmatched//s7` (earlier selected by default, using `hifive_unmatched`) and `hifive_unmatched//u74` targets. Define work-area for other 4 cores in openocd.cfg Update twister platform white/black lists, to support new targets Signed-off-by: Jakub Wasilewski <jwasilewski@internships.antmicro.com> Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
This commit is contained in:
parent
2423c87d54
commit
8e881959a4
29 changed files with 270 additions and 30 deletions
|
@ -18,7 +18,8 @@ tests:
|
|||
- qemu_kvm_arm64
|
||||
- xenvm
|
||||
- xenvm/xenvm/gicv3
|
||||
- hifive_unmatched
|
||||
- hifive_unmatched/fu740/s7
|
||||
- hifive_unmatched/fu740/u74
|
||||
- rcar_h3ulcb/r8a77951/a57
|
||||
- rcar_salvator_xs
|
||||
- numaker_pfm_m467
|
||||
|
|
|
@ -11,7 +11,8 @@ tests:
|
|||
- CONF_FILE="prj.conf;boards/emulated_board.conf"
|
||||
- DTC_OVERLAY_FILE="boards/emulated_board.overlay"
|
||||
platform_exclude:
|
||||
- hifive_unmatched
|
||||
- hifive_unmatched/fu740/s7
|
||||
- hifive_unmatched/fu740/u74
|
||||
- qemu_cortex_a53
|
||||
- qemu_cortex_a53/qemu_cortex_a53/smp
|
||||
- qemu_kvm_arm64
|
||||
|
@ -30,7 +31,7 @@ tests:
|
|||
- simulation
|
||||
filter: dt_compat_enabled("sbs,sbs-gauge-new-api")
|
||||
platform_allow:
|
||||
- hifive_unmatched
|
||||
- hifive_unmatched/fu740/s7
|
||||
- qemu_cortex_a53
|
||||
- qemu_cortex_a53/qemu_cortex_a53/smp
|
||||
- qemu_kvm_arm64
|
||||
|
|
|
@ -26,4 +26,4 @@ tests:
|
|||
tags:
|
||||
- drivers
|
||||
- memc
|
||||
platform_allow: hifive_unmatched
|
||||
platform_allow: hifive_unmatched/fu740/s7
|
||||
|
|
|
@ -0,0 +1,85 @@
|
|||
/*
|
||||
* Copyright (c) 2020 Nordic Semiconductor ASA
|
||||
* Copyright (c) 2020 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Application overlay for creating a fake device instance we
|
||||
* can use to test DEVICE_MMIO APIs, which get raw data about
|
||||
* memory ranges from DTS instances.
|
||||
*
|
||||
* Names in this file should be chosen in a way that won't conflict
|
||||
* with real-world devicetree nodes, to allow these tests to run on
|
||||
* (and be extended to test) real hardware.
|
||||
*/
|
||||
|
||||
/ {
|
||||
fakedriver@E0000000 {
|
||||
compatible = "fakedriver";
|
||||
reg = <0x0 0xE0000000 0x0 0x2000>;
|
||||
status = "okay";
|
||||
};
|
||||
fakedriver@E1000000 {
|
||||
compatible = "fakedriver";
|
||||
reg = <0x0 0xE1000000 0x0 0x2000>;
|
||||
status = "okay";
|
||||
};
|
||||
fakedriver@E2000000 {
|
||||
compatible = "fakedriver";
|
||||
reg = <0x0 0xE2000000 0x0 0x2000>;
|
||||
status = "okay";
|
||||
};
|
||||
fakedriver@E3000000 {
|
||||
compatible = "fakedriver";
|
||||
reg = <0x0 0xE3000000 0x0 0x2000>;
|
||||
status = "okay";
|
||||
};
|
||||
fakedriver@E4000000 {
|
||||
compatible = "fakedriver";
|
||||
reg = <0x0 0xE4000000 0x0 0x2000>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
fakedriver_multireg@E5000000 {
|
||||
compatible = "fakedriver_multireg";
|
||||
reg = <0x0 0xE5000000 0x0 0x1000>,
|
||||
<0x0 0xE6000000 0x0 0x1000>;
|
||||
reg-names = "chip",
|
||||
"dale";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
fakedeferdriver@E7000000 {
|
||||
compatible = "fakedeferdriver";
|
||||
reg = <0x0 0xE7000000 0x0 0x2000>;
|
||||
status = "okay";
|
||||
zephyr,deferred-init;
|
||||
};
|
||||
|
||||
fakedeferdriver@E8000000 {
|
||||
compatible = "fakedeferdriver";
|
||||
reg = <0x0 0xE8000000 0x0 0x2000>;
|
||||
status = "okay";
|
||||
zephyr,deferred-init;
|
||||
};
|
||||
|
||||
fakedomain_0: fakedomain_0 {
|
||||
compatible = "fakedomain";
|
||||
status = "okay";
|
||||
#power-domain-cells = <0>;
|
||||
power-domains = <&fakedomain_2>;
|
||||
};
|
||||
|
||||
fakedomain_1: fakedomain_1 {
|
||||
compatible = "fakedomain";
|
||||
status = "okay";
|
||||
#power-domain-cells = <0>;
|
||||
power-domains = <&fakedomain_0>;
|
||||
};
|
||||
|
||||
fakedomain_2: fakedomain_2 {
|
||||
compatible = "fakedomain";
|
||||
status = "okay";
|
||||
#power-domain-cells = <0>;
|
||||
};
|
||||
};
|
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
* Copyright (c) 2023 Antmicro
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
&spi2 {
|
||||
status = "okay";
|
||||
|
||||
sdhc0: sdhc@0 {
|
||||
compatible = "zephyr,sdhc-spi-slot";
|
||||
reg = <0>;
|
||||
status = "okay";
|
||||
mmc {
|
||||
compatible = "zephyr,sdmmc-disk";
|
||||
disk-name = "SD";
|
||||
status = "okay";
|
||||
};
|
||||
spi-max-frequency = <20000000>;
|
||||
};
|
||||
};
|
|
@ -5,7 +5,8 @@ tests:
|
|||
platform_allow:
|
||||
- native_sim
|
||||
- native_sim/native/64
|
||||
- hifive_unmatched
|
||||
- hifive_unmatched/fu740/s7
|
||||
- hifive_unmatched/fu740/u74
|
||||
- bl5340_dvk/nrf5340/cpuapp
|
||||
extra_args:
|
||||
- EXTRA_DTC_OVERLAY_FILE="ramdisk_small.overlay"
|
||||
|
@ -22,7 +23,8 @@ tests:
|
|||
simulation_exclude:
|
||||
- renode
|
||||
platform_allow:
|
||||
- hifive_unmatched
|
||||
- hifive_unmatched/fu740/s7
|
||||
- hifive_unmatched/fu740/u74
|
||||
- bl5340_dvk/nrf5340/cpuapp
|
||||
extra_args: CONF_FILE=prj_sdcard.conf
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue