aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>2017-03-31 05:00:41 -0400
committerJames Hogan <jhogan@kernel.org>2017-11-08 17:53:44 -0500
commitb35565bb16a55e5b8c5067e891b7b31a4359bda6 (patch)
treef7bea793f61c928161db29b16960447f26be492e
parent04d8405e714e66e52718436eb6eb6e8ba6afb823 (diff)
MIPS: generic: Add support for MIPSfpga
Add support for the MIPSfpga platform to generic kernel. Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/15846/ [jhogan@kernel.org: Use separate board-xilfpga.its.S. Add 32r2 and little endian requires to board-xilfpga.config] Signed-off-by: James Hogan <jhogan@kernel.org>
-rw-r--r--arch/mips/boot/dts/xilfpga/Makefile2
-rw-r--r--arch/mips/boot/dts/xilfpga/nexys4ddr.dts8
-rw-r--r--arch/mips/configs/generic/board-xilfpga.config22
-rw-r--r--arch/mips/generic/Kconfig6
-rw-r--r--arch/mips/generic/board-xilfpga.its.S22
5 files changed, 59 insertions, 1 deletions
diff --git a/arch/mips/boot/dts/xilfpga/Makefile b/arch/mips/boot/dts/xilfpga/Makefile
index 913a752a9ff1..bbf8fb6fe164 100644
--- a/arch/mips/boot/dts/xilfpga/Makefile
+++ b/arch/mips/boot/dts/xilfpga/Makefile
@@ -1,4 +1,4 @@
1dtb-$(CONFIG_XILFPGA_NEXYS4DDR) += nexys4ddr.dtb 1dtb-$(CONFIG_FIT_IMAGE_FDT_XILFPGA) += nexys4ddr.dtb
2 2
3obj-y += $(patsubst %.dtb, %.dtb.o, $(dtb-y)) 3obj-y += $(patsubst %.dtb, %.dtb.o, $(dtb-y))
4 4
diff --git a/arch/mips/boot/dts/xilfpga/nexys4ddr.dts b/arch/mips/boot/dts/xilfpga/nexys4ddr.dts
index 09a62f2e2f8f..d351356c25b3 100644
--- a/arch/mips/boot/dts/xilfpga/nexys4ddr.dts
+++ b/arch/mips/boot/dts/xilfpga/nexys4ddr.dts
@@ -5,6 +5,14 @@
5/ { 5/ {
6 compatible = "digilent,nexys4ddr"; 6 compatible = "digilent,nexys4ddr";
7 7
8 aliases {
9 serial0 = &axi_uart16550;
10 };
11 chosen {
12 bootargs = "console=ttyS0,115200";
13 stdout-path = "serial0:115200n8";
14 };
15
8 memory { 16 memory {
9 device_type = "memory"; 17 device_type = "memory";
10 reg = <0x0 0x08000000>; 18 reg = <0x0 0x08000000>;
diff --git a/arch/mips/configs/generic/board-xilfpga.config b/arch/mips/configs/generic/board-xilfpga.config
new file mode 100644
index 000000000000..9cce57385b03
--- /dev/null
+++ b/arch/mips/configs/generic/board-xilfpga.config
@@ -0,0 +1,22 @@
1# require CONFIG_CPU_MIPS32_R2=y
2# require CONFIG_CPU_LITTLE_ENDIAN=y
3
4CONFIG_SERIAL_8250=y
5CONFIG_SERIAL_8250_CONSOLE=y
6CONFIG_SERIAL_OF_PLATFORM=y
7CONFIG_GPIO_SYSFS=y
8CONFIG_GPIO_XILINX=y
9CONFIG_PANIC_ON_OOPS=y
10CONFIG_FIT_IMAGE_FDT_XILFPGA=y
11CONFIG_I2C=y
12CONFIG_I2C_CHARDEV=y
13CONFIG_I2C_XILINX=y
14CONFIG_SENSORS_ADT7410=y
15CONFIG_TMPFS=y
16CONFIG_NET=y
17CONFIG_PACKET=y
18CONFIG_UNIX=y
19CONFIG_INET=y
20CONFIG_NETDEVICES=y
21CONFIG_XILINX_EMACLITE=y
22CONFIG_SMSC_PHY=y
diff --git a/arch/mips/generic/Kconfig b/arch/mips/generic/Kconfig
index e0436aaf7f38..1f45ba436177 100644
--- a/arch/mips/generic/Kconfig
+++ b/arch/mips/generic/Kconfig
@@ -42,4 +42,10 @@ config FIT_IMAGE_FDT_NI169445
42 Enable this to include the FDT for the 169445 platform from 42 Enable this to include the FDT for the 169445 platform from
43 National Instruments in the FIT kernel image. 43 National Instruments in the FIT kernel image.
44 44
45config FIT_IMAGE_FDT_XILFPGA
46 bool "Include FDT for Xilfpga"
47 help
48 Enable this to include the FDT for the MIPSfpga platform
49 from Imagination Technologies in the FIT kernel image.
50
45endif 51endif
diff --git a/arch/mips/generic/board-xilfpga.its.S b/arch/mips/generic/board-xilfpga.its.S
new file mode 100644
index 000000000000..a2e773d3f14f
--- /dev/null
+++ b/arch/mips/generic/board-xilfpga.its.S
@@ -0,0 +1,22 @@
1/ {
2 images {
3 fdt@xilfpga {
4 description = "MIPSfpga (xilfpga) Device Tree";
5 data = /incbin/("boot/dts/xilfpga/nexys4ddr.dtb");
6 type = "flat_dt";
7 arch = "mips";
8 compression = "none";
9 hash@0 {
10 algo = "sha1";
11 };
12 };
13 };
14
15 configurations {
16 conf@xilfpga {
17 description = "MIPSfpga Linux kernel";
18 kernel = "kernel@0";
19 fdt = "fdt@xilfpga";
20 };
21 };
22};