boards: nios2: qemu: Enable device support for qemu

Add device tree support for qemu

Signed-off-by: Savinay Dharmappa <savinay.dharmappa@intel.com>
This commit is contained in:
Savinay Dharmappa 2018-05-14 17:08:43 +05:30 committed by Andrew Boie
parent 2948924655
commit 4687c989c3
2 changed files with 24 additions and 0 deletions

View File

@ -3,3 +3,4 @@ config BOARD_QEMU_NIOS2
bool "QEMU NIOS II target"
depends on SOC_NIOS2_QEMU
select QEMU_TARGET
select HAS_DTS

View File

@ -0,0 +1,23 @@
/dts-v1/;
#include <nios2-qemu.dtsi>
/ {
model = "qemu_nios2";
compatible = "qemu,nios2";
aliases {
uart_0 = &uart0;
};
chosen {
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,console = &uart0;
};
};
&uart0 {
status = "ok";
current-speed = <115200>;
};