aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorAlexey Brodkin <abrodkin@synopsys.com>2019-12-26 14:47:42 +0300
committerAlexey Brodkin <abrodkin@synopsys.com>2020-02-12 20:40:24 +0300
commit95f7103f943bff243df46592eca5dcb8957ab0ba (patch)
treee467d5a633ca87c8faf4093b04276b5289dd5d60 /board
parent1a1383f3678212dd126a2e088b14654bd106ec4c (diff)
downloadu-boot-95f7103f943bff243df46592eca5dcb8957ab0ba.zip
u-boot-95f7103f943bff243df46592eca5dcb8957ab0ba.tar.gz
u-boot-95f7103f943bff243df46592eca5dcb8957ab0ba.tar.bz2
ARC: nsim_hs38: Add support of Virtio NET & BLK
Given now nsim_hs38 configuration is usable on QEMU and in QEMU we have Virtio working perfectly fine the next logical step is to add support of supported & known to work net & bkl to this config. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Diffstat (limited to 'board')
-rw-r--r--board/synopsys/nsim/Kconfig (renamed from board/synopsys/Kconfig)3
-rw-r--r--board/synopsys/nsim/MAINTAINERS6
-rw-r--r--board/synopsys/nsim/Makefile7
-rw-r--r--board/synopsys/nsim/nsim.c26
4 files changed, 42 insertions, 0 deletions
diff --git a/board/synopsys/Kconfig b/board/synopsys/nsim/Kconfig
index 27e5509..2228703 100644
--- a/board/synopsys/Kconfig
+++ b/board/synopsys/nsim/Kconfig
@@ -1,5 +1,8 @@
if TARGET_NSIM
+config SYS_BOARD
+ default "nsim"
+
config SYS_VENDOR
default "synopsys"
diff --git a/board/synopsys/nsim/MAINTAINERS b/board/synopsys/nsim/MAINTAINERS
new file mode 100644
index 0000000..ad23c83
--- /dev/null
+++ b/board/synopsys/nsim/MAINTAINERS
@@ -0,0 +1,6 @@
+ARC SIMULATION & PROTOTYPING PLATFORMS
+M: Alexey Brodkin <abrodkin@synopsys.com>
+S: Maintained
+F: arch/arc/dts/nsim.dts
+F: board/synopsys/nsim/
+F: configs/nsim_*_defconfig
diff --git a/board/synopsys/nsim/Makefile b/board/synopsys/nsim/Makefile
new file mode 100644
index 0000000..6aaffff
--- /dev/null
+++ b/board/synopsys/nsim/Makefile
@@ -0,0 +1,7 @@
+#
+# Copyright (C) 2020 Synopsys, Inc. All rights reserved.
+#
+# SPDX-License-Identifier: GPL-2.0+
+#
+
+obj-y += nsim.o
diff --git a/board/synopsys/nsim/nsim.c b/board/synopsys/nsim/nsim.c
new file mode 100644
index 0000000..f384f70
--- /dev/null
+++ b/board/synopsys/nsim/nsim.c
@@ -0,0 +1,26 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (C) 2020 Synopsys, Inc. All rights reserved.
+ */
+
+#include <common.h>
+#include <dm/device.h>
+#include <virtio_types.h>
+#include <virtio.h>
+
+int board_early_init_r(void)
+{
+ /*
+ * Make sure virtio bus is enumerated so that peripherals
+ * on the virtio bus can be discovered by their drivers
+ */
+ virtio_init();
+
+ return 0;
+}
+
+int checkboard(void)
+{
+ printf("Board: ARC virtual or prototyping platform\n");
+ return 0;
+};