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:
7
zephyr/boards/riscv/service/Kconfig.board
Normal file
7
zephyr/boards/riscv/service/Kconfig.board
Normal 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
|
||||
7
zephyr/boards/riscv/service/Kconfig.defconfig
Normal file
7
zephyr/boards/riscv/service/Kconfig.defconfig
Normal 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
|
||||
12
zephyr/boards/riscv/service/board.h
Normal file
12
zephyr/boards/riscv/service/board.h
Normal 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 */
|
||||
21
zephyr/boards/riscv/service/service.dts
Normal file
21
zephyr/boards/riscv/service/service.dts
Normal 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>;
|
||||
};
|
||||
};
|
||||
|
||||
15
zephyr/boards/riscv/service/service.yaml
Normal file
15
zephyr/boards/riscv/service/service.yaml
Normal 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
|
||||
13
zephyr/boards/riscv/service/service_defconfig
Normal file
13
zephyr/boards/riscv/service/service_defconfig
Normal 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
|
||||
Reference in New Issue
Block a user