diff options
author | Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com> | 2017-03-31 05:00:41 -0400 |
---|---|---|
committer | James Hogan <jhogan@kernel.org> | 2017-11-08 17:53:44 -0500 |
commit | b35565bb16a55e5b8c5067e891b7b31a4359bda6 (patch) | |
tree | f7bea793f61c928161db29b16960447f26be492e | |
parent | 04d8405e714e66e52718436eb6eb6e8ba6afb823 (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/Makefile | 2 | ||||
-rw-r--r-- | arch/mips/boot/dts/xilfpga/nexys4ddr.dts | 8 | ||||
-rw-r--r-- | arch/mips/configs/generic/board-xilfpga.config | 22 | ||||
-rw-r--r-- | arch/mips/generic/Kconfig | 6 | ||||
-rw-r--r-- | arch/mips/generic/board-xilfpga.its.S | 22 |
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 @@ | |||
1 | dtb-$(CONFIG_XILFPGA_NEXYS4DDR) += nexys4ddr.dtb | 1 | dtb-$(CONFIG_FIT_IMAGE_FDT_XILFPGA) += nexys4ddr.dtb |
2 | 2 | ||
3 | obj-y += $(patsubst %.dtb, %.dtb.o, $(dtb-y)) | 3 | obj-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 | |||
4 | CONFIG_SERIAL_8250=y | ||
5 | CONFIG_SERIAL_8250_CONSOLE=y | ||
6 | CONFIG_SERIAL_OF_PLATFORM=y | ||
7 | CONFIG_GPIO_SYSFS=y | ||
8 | CONFIG_GPIO_XILINX=y | ||
9 | CONFIG_PANIC_ON_OOPS=y | ||
10 | CONFIG_FIT_IMAGE_FDT_XILFPGA=y | ||
11 | CONFIG_I2C=y | ||
12 | CONFIG_I2C_CHARDEV=y | ||
13 | CONFIG_I2C_XILINX=y | ||
14 | CONFIG_SENSORS_ADT7410=y | ||
15 | CONFIG_TMPFS=y | ||
16 | CONFIG_NET=y | ||
17 | CONFIG_PACKET=y | ||
18 | CONFIG_UNIX=y | ||
19 | CONFIG_INET=y | ||
20 | CONFIG_NETDEVICES=y | ||
21 | CONFIG_XILINX_EMACLITE=y | ||
22 | CONFIG_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 | ||
45 | config 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 | |||
45 | endif | 51 | endif |
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 | }; | ||