OSDN Git Service

MIPS: generic: Add support for MIPSfpga
authorZubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Fri, 31 Mar 2017 09:00:41 +0000 (10:00 +0100)
committerJames Hogan <jhogan@kernel.org>
Wed, 8 Nov 2017 22:53:44 +0000 (22:53 +0000)
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>
arch/mips/boot/dts/xilfpga/Makefile
arch/mips/boot/dts/xilfpga/nexys4ddr.dts
arch/mips/configs/generic/board-xilfpga.config [new file with mode: 0644]
arch/mips/generic/Kconfig
arch/mips/generic/board-xilfpga.its.S [new file with mode: 0644]

index 913a752..bbf8fb6 100644 (file)
@@ -1,4 +1,4 @@
-dtb-$(CONFIG_XILFPGA_NEXYS4DDR)        += nexys4ddr.dtb
+dtb-$(CONFIG_FIT_IMAGE_FDT_XILFPGA)    += nexys4ddr.dtb
 
 obj-y                          += $(patsubst %.dtb, %.dtb.o, $(dtb-y))
 
index 09a62f2..d351356 100644 (file)
@@ -5,6 +5,14 @@
 / {
        compatible = "digilent,nexys4ddr";
 
+       aliases {
+               serial0 = &axi_uart16550;
+       };
+       chosen {
+               bootargs = "console=ttyS0,115200";
+               stdout-path = "serial0:115200n8";
+       };
+
        memory {
                device_type = "memory";
                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 (file)
index 0000000..9cce573
--- /dev/null
@@ -0,0 +1,22 @@
+# require CONFIG_CPU_MIPS32_R2=y
+# require CONFIG_CPU_LITTLE_ENDIAN=y
+
+CONFIG_SERIAL_8250=y
+CONFIG_SERIAL_8250_CONSOLE=y
+CONFIG_SERIAL_OF_PLATFORM=y
+CONFIG_GPIO_SYSFS=y
+CONFIG_GPIO_XILINX=y
+CONFIG_PANIC_ON_OOPS=y
+CONFIG_FIT_IMAGE_FDT_XILFPGA=y
+CONFIG_I2C=y
+CONFIG_I2C_CHARDEV=y
+CONFIG_I2C_XILINX=y
+CONFIG_SENSORS_ADT7410=y
+CONFIG_TMPFS=y
+CONFIG_NET=y
+CONFIG_PACKET=y
+CONFIG_UNIX=y
+CONFIG_INET=y
+CONFIG_NETDEVICES=y
+CONFIG_XILINX_EMACLITE=y
+CONFIG_SMSC_PHY=y
index e0436aa..1f45ba4 100644 (file)
@@ -42,4 +42,10 @@ config FIT_IMAGE_FDT_NI169445
          Enable this to include the FDT for the 169445 platform from
          National Instruments in the FIT kernel image.
 
+config FIT_IMAGE_FDT_XILFPGA
+       bool "Include FDT for Xilfpga"
+       help
+         Enable this to include the FDT for the MIPSfpga platform
+         from Imagination Technologies in the FIT kernel image.
+
 endif
diff --git a/arch/mips/generic/board-xilfpga.its.S b/arch/mips/generic/board-xilfpga.its.S
new file mode 100644 (file)
index 0000000..a2e773d
--- /dev/null
@@ -0,0 +1,22 @@
+/ {
+       images {
+               fdt@xilfpga {
+                       description = "MIPSfpga (xilfpga) Device Tree";
+                       data = /incbin/("boot/dts/xilfpga/nexys4ddr.dtb");
+                       type = "flat_dt";
+                       arch = "mips";
+                       compression = "none";
+                       hash@0 {
+                               algo = "sha1";
+                       };
+               };
+       };
+
+       configurations {
+               conf@xilfpga {
+                       description = "MIPSfpga Linux kernel";
+                       kernel = "kernel@0";
+                       fdt = "fdt@xilfpga";
+               };
+       };
+};