Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ manifest:
projects:
- name: zephyr
remote: zephyrproject-rtos
revision: v4.0.0
revision: v4.4.0
import: true
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

config BOARD_SERVICE
bool "servant SoC for iCE40"
depends on SOC_RISCV32_SERVANT
select SOC_RISCV32_SERVANT
6 changes: 6 additions & 0 deletions zephyr/boards/olofk/service/board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
board:
name: service
full_name: Servant
vendor: olofk
socs:
- name: servant
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
#include <serv.dtsi>

/ {
model = "Service";
compatible = "service";

chosen {
zephyr,sram = &ram;
zephyr,console = &uart0;
Expand All @@ -20,7 +23,7 @@
};

soc {
compatible = "olofk,serv";
compatible = "olofk,servant";
#address-cells = <1>;
#size-cells = <1>;

Expand All @@ -29,5 +32,17 @@
compatible = "olofk,serial";
};
};
};

cpus {
#address-cells = <1>;
#size-cells = <0>;

cpu0: cpu@0 {
compatible = "riscv";
reg = <0>;
device_type = "cpu";
riscv,isa-base = "rv32i";
riscv,isa-extensions = "i", "zicsr", "zifencei";
};
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
zephyr_sources(
soc_irq.S
vector.S
cpu_idle.c
irq.c)

set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/riscv/common/linker.ld CACHE INTERNAL "")
10 changes: 10 additions & 0 deletions zephyr/soc/olofk/servant/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright (c) 2021,2025 Henrik Brix Andersen <henrik@brixandersen.dk>
# SPDX-License-Identifier: Apache-2.0

config SOC_RISCV32_SERVANT
select RISCV
#select RISCV_PRIVILEGED
#select RISCV_SOC_HAS_GP_RELATIVE_ADDRESSING
select ATOMIC_OPERATIONS_C
select RISCV_ISA_EXT_ZICSR
imply XIP
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@

if SOC_RISCV32_SERVANT

config SOC
string
default "servant"

config SYS_CLOCK_HW_CYCLES_PER_SEC
int
default 16000000
Expand All @@ -23,14 +19,6 @@ config SERV_TIMER
bool
default y

config ARCH_HAS_CUSTOM_CPU_IDLE
bool
default y

config ARCH_HAS_CUSTOM_CPU_ATOMIC_IDLE
bool
default y

config RISCV_SOC_EXCEPTION_FROM_IRQ
bool
default y
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

config SOC_RISCV32_SERVANT
bool "servant SoC"
select RISCV
select ATOMIC_OPERATIONS_C
select RISCV_ISA_EXT_ZICSR

config SOC
default "servant" if SOC_RISCV32_SERVANT
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions zephyr/soc/olofk/servant/soc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
socs:
- name: servant
File renamed without changes.
File renamed without changes.
22 changes: 0 additions & 22 deletions zephyr/soc/riscv/servant/cpu_idle.c

This file was deleted.

Loading