Skip to content

Commit 166b9bf

Browse files
adrabareknashif
authored andcommitted
soc: polarfire: split into cpu clusters
Split Polarfire SoC into CPU clusters as they have different capabilities. Signed-off-by: Andrzej Drabarek <[email protected]>
1 parent 82d56e8 commit 166b9bf

36 files changed

+320
-165
lines changed

boards/beagle/beaglev_fire/Kconfig

Lines changed: 0 additions & 7 deletions
This file was deleted.

boards/beagle/beaglev_fire/Kconfig.beaglev_fire

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
config BOARD_BEAGLEV_FIRE
5-
select SOC_POLARFIRE
5+
select SOC_POLARFIRE_U54 if BOARD_BEAGLEV_FIRE_POLARFIRE_U54 || \
6+
BOARD_BEAGLEV_FIRE_POLARFIRE_U54_SMP
7+
select SOC_POLARFIRE_E51 if BOARD_BEAGLEV_FIRE_POLARFIRE_E51

boards/beagle/beaglev_fire/beaglev_fire.dts renamed to boards/beagle/beaglev_fire/beaglev_fire_common.dtsi

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,10 @@
1010
#include <mem.h>
1111

1212
/ {
13-
model = "BeagleV-Fire";
13+
model = "beagle,beaglev-fire";
1414
compatible = "beagle,beaglev-fire", "microchip,mpfs";
1515
aliases {
1616
};
17-
18-
chosen {
19-
zephyr,console = &uart0;
20-
zephyr,shell-uart = &uart0;
21-
zephyr,sram = &sram1;
22-
};
23-
};
24-
25-
&uart0 {
26-
status = "okay";
27-
current-speed = <115200>;
28-
clock-frequency = <150000000>;
2917
};
3018

3119
&gpio2 {

boards/beagle/beaglev_fire/beaglev_fire_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ CONFIG_UART_CONSOLE=y
1010
CONFIG_XIP=n
1111
CONFIG_INIT_STACKS=y
1212
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000
13-
CONFIG_FPU=n
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/dts-v1/;
2+
#include "beaglev_fire_common.dtsi"
3+
4+
/ {
5+
compatible = "beagle,beaglev-fire", "microchip,mpfs";
6+
7+
cpus {
8+
cpu@1 {
9+
status = "disabled";
10+
};
11+
12+
cpu@2 {
13+
status = "disabled";
14+
};
15+
16+
cpu@3 {
17+
status = "disabled";
18+
};
19+
20+
cpu@4 {
21+
status = "disabled";
22+
};
23+
};
24+
25+
chosen {
26+
zephyr,console = &uart0;
27+
zephyr,shell-uart = &uart0;
28+
zephyr,sram = &sram1;
29+
};
30+
};
31+
32+
&uart0 {
33+
status = "okay";
34+
current-speed = <115200>;
35+
clock-frequency = <150000000>;
36+
};

boards/beagle/beaglev_fire/beaglev_fire.yaml renamed to boards/beagle/beaglev_fire/beaglev_fire_polarfire_e51.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
identifier: beaglev_fire
1+
identifier: beaglev_fire/polarfire/e51
22
name: Beagleboard BeagleV-Fire
33
type: mcu
44
arch: riscv
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Copyright (c) 2023 Microchip Technology Inc
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_MPFS_HAL=n
5+
CONFIG_BASE64=y
6+
CONFIG_INCLUDE_RESET_VECTOR=y
7+
CONFIG_CONSOLE=y
8+
CONFIG_SERIAL=y
9+
CONFIG_UART_CONSOLE=y
10+
CONFIG_XIP=n
11+
CONFIG_INIT_STACKS=y
12+
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/dts-v1/;
2+
#include "beaglev_fire_common.dtsi"
3+
4+
/ {
5+
model = "beagle,beaglev-fire";
6+
compatible = "beagle,beaglev-fire", "microchip,mpfs";
7+
8+
chosen {
9+
zephyr,console = &uart1;
10+
zephyr,shell-uart = &uart1;
11+
zephyr,sram = &sram1;
12+
};
13+
14+
cpus {
15+
cpu@0 {
16+
status = "disabled";
17+
};
18+
};
19+
};
20+
21+
&uart1 {
22+
status = "okay";
23+
current-speed = <115200>;
24+
clock-frequency = <150000000>;
25+
};
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
identifier: beaglev_fire/polarfire/u54
2+
name: Beagleboard BeagleV-Fire
3+
type: mcu
4+
arch: riscv
5+
toolchain:
6+
- zephyr
7+
ram: 3840
8+
testing:
9+
ignore_tags:
10+
- net
11+
- bluetooth
12+
vendor: beagle
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright (c) 2023 Microchip Technology Inc
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_MPFS_HAL=n
5+
CONFIG_BASE64=y
6+
CONFIG_INCLUDE_RESET_VECTOR=y
7+
CONFIG_CONSOLE=y
8+
CONFIG_SERIAL=y
9+
CONFIG_UART_CONSOLE=y
10+
CONFIG_XIP=n
11+
CONFIG_INIT_STACKS=y
12+
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000
13+
CONFIG_RV_BOOT_HART=1

0 commit comments

Comments
 (0)