1
0
mirror of https://github.com/olofk/serv.git synced 2026-05-05 15:53:34 +00:00

Port Zephyr support to 2.4 and update instructions

This commit is contained in:
Olof Kindgren
2020-12-16 22:52:36 +01:00
parent 731ca8bb45
commit acab804a31
31 changed files with 690 additions and 43 deletions

View File

@@ -0,0 +1,7 @@
# Copyright (c) 2020 Olof Kindgren <olof.kindgren@gmail.com>
#
# SPDX-License-Identifier: Apache-2.0
config BOARD_SERVICE
bool "servant SoC for iCE40"
depends on SOC_RISCV32_SERVANT

View File

@@ -0,0 +1,7 @@
# Copyright (c) 2020 Olof Kindgren <olof.kindgren@gmail.com>
#
# SPDX-License-Identifier: Apache-2.0
config BOARD
default "service"
depends on BOARD_SERVICE

View File

@@ -0,0 +1,12 @@
/*
* Copyright (c) 2020 Olof Kindgren <olof.kindgren@gmail.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef __INC_BOARD_H
#define __INC_BOARD_H
#include <soc.h>
#endif /* __INC_BOARD_H */

View File

@@ -0,0 +1,21 @@
/*
* Copyright (c) 2020 Olof Kindgren <olof.kindgren@gmail.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
/dts-v1/;
#include <serv.dtsi>
/ {
chosen {
zephyr,sram = &ram;
};
ram: memory@0 {
compatible = "mmio-sram";
reg = <0x0 0x8000>;
};
};

View File

@@ -0,0 +1,15 @@
# Copyright (c) 2020 Olof Kindgren <olof.kindgren@gmail.com>
#
# SPDX-License-Identifier: Apache-2.0
identifier: service
name: servant SoC for iCE40
type: mcu
arch: riscv32
toolchain:
- zephyr
ram: 32
testing:
ignore_tags:
- net
- bluetooth

View File

@@ -0,0 +1,13 @@
# Copyright (c) 2020 Olof Kindgren <olof.kindgren@gmail.com>
#
# SPDX-License-Identifier: Apache-2.0
CONFIG_BOARD_SERVICE=y
CONFIG_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_BITBANG=y
CONFIG_UART_CONSOLE=y
CONFIG_UART_CONSOLE_ON_DEV_NAME="uart0"
CONFIG_XIP=n