aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorJohn Crispin2013-01-20 15:05:30 -0600
committerJohn Crispin2013-02-16 18:25:32 -0600
commitae2b5bb6570481b50a7175c64176b82da0a81836 (patch)
tree52d1c1997b7abe6f09ffbd14c0546a2ebe2b248e /arch/mips
parent5644da4f635a30fc03b4f12d81b2197d716d9cef (diff)
downloadam43-linux-kernel-ae2b5bb6570481b50a7175c64176b82da0a81836.tar.gz
am43-linux-kernel-ae2b5bb6570481b50a7175c64176b82da0a81836.tar.xz
am43-linux-kernel-ae2b5bb6570481b50a7175c64176b82da0a81836.zip
MIPS: ralink: adds Kbuild files
Add the Kbuild symbols and Makefiles needed to actually build the ralink code from this series Signed-off-by: John Crispin <blogic@openwrt.org> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Patchwork: http://patchwork.linux-mips.org/patch/4899/
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/Kbuild.platforms1
-rw-r--r--arch/mips/Kconfig17
-rw-r--r--arch/mips/ralink/Kconfig32
-rw-r--r--arch/mips/ralink/Makefile15
-rw-r--r--arch/mips/ralink/Platform10
-rw-r--r--arch/mips/ralink/dts/Makefile1
6 files changed, 76 insertions, 0 deletions
diff --git a/arch/mips/Kbuild.platforms b/arch/mips/Kbuild.platforms
index 91b9d69f465..9a73ce6f4c5 100644
--- a/arch/mips/Kbuild.platforms
+++ b/arch/mips/Kbuild.platforms
@@ -22,6 +22,7 @@ platforms += pmc-sierra
22platforms += pnx833x 22platforms += pnx833x
23platforms += pnx8550 23platforms += pnx8550
24platforms += powertv 24platforms += powertv
25platforms += ralink
25platforms += rb532 26platforms += rb532
26platforms += sgi-ip22 27platforms += sgi-ip22
27platforms += sgi-ip27 28platforms += sgi-ip27
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 8f8666c8f28..79ad1d09c25 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -437,6 +437,22 @@ config POWERTV
437 help 437 help
438 This enables support for the Cisco PowerTV Platform. 438 This enables support for the Cisco PowerTV Platform.
439 439
440config RALINK
441 bool "Ralink based machines"
442 select CEVT_R4K
443 select CSRC_R4K
444 select BOOT_RAW
445 select DMA_NONCOHERENT
446 select IRQ_CPU
447 select USE_OF
448 select SYS_HAS_CPU_MIPS32_R1
449 select SYS_HAS_CPU_MIPS32_R2
450 select SYS_SUPPORTS_32BIT_KERNEL
451 select SYS_SUPPORTS_LITTLE_ENDIAN
452 select SYS_HAS_EARLY_PRINTK
453 select HAVE_MACH_CLKDEV
454 select CLKDEV_LOOKUP
455
440config SGI_IP22 456config SGI_IP22
441 bool "SGI IP22 (Indy/Indigo2)" 457 bool "SGI IP22 (Indy/Indigo2)"
442 select FW_ARC 458 select FW_ARC
@@ -849,6 +865,7 @@ source "arch/mips/lantiq/Kconfig"
849source "arch/mips/lasat/Kconfig" 865source "arch/mips/lasat/Kconfig"
850source "arch/mips/pmc-sierra/Kconfig" 866source "arch/mips/pmc-sierra/Kconfig"
851source "arch/mips/powertv/Kconfig" 867source "arch/mips/powertv/Kconfig"
868source "arch/mips/ralink/Kconfig"
852source "arch/mips/sgi-ip27/Kconfig" 869source "arch/mips/sgi-ip27/Kconfig"
853source "arch/mips/sibyte/Kconfig" 870source "arch/mips/sibyte/Kconfig"
854source "arch/mips/txx9/Kconfig" 871source "arch/mips/txx9/Kconfig"
diff --git a/arch/mips/ralink/Kconfig b/arch/mips/ralink/Kconfig
new file mode 100644
index 00000000000..a0b0197cab0
--- /dev/null
+++ b/arch/mips/ralink/Kconfig
@@ -0,0 +1,32 @@
1if RALINK
2
3choice
4 prompt "Ralink SoC selection"
5 default SOC_RT305X
6 help
7 Select Ralink MIPS SoC type.
8
9 config SOC_RT305X
10 bool "RT305x"
11 select USB_ARCH_HAS_HCD
12 select USB_ARCH_HAS_OHCI
13 select USB_ARCH_HAS_EHCI
14
15endchoice
16
17choice
18 prompt "Devicetree selection"
19 default DTB_RT_NONE
20 help
21 Select the devicetree.
22
23 config DTB_RT_NONE
24 bool "None"
25
26 config DTB_RT305X_EVAL
27 bool "RT305x eval kit"
28 depends on SOC_RT305X
29
30endchoice
31
32endif
diff --git a/arch/mips/ralink/Makefile b/arch/mips/ralink/Makefile
new file mode 100644
index 00000000000..939757f0e71
--- /dev/null
+++ b/arch/mips/ralink/Makefile
@@ -0,0 +1,15 @@
1# This program is free software; you can redistribute it and/or modify it
2# under the terms of the GNU General Public License version 2 as published
3# by the Free Software Foundation.#
4# Makefile for the Ralink common stuff
5#
6# Copyright (C) 2009-2011 Gabor Juhos <juhosg@openwrt.org>
7# Copyright (C) 2013 John Crispin <blogic@openwrt.org>
8
9obj-y := prom.o of.o reset.o clk.o irq.o
10
11obj-$(CONFIG_SOC_RT305X) += rt305x.o
12
13obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
14
15obj-y += dts/
diff --git a/arch/mips/ralink/Platform b/arch/mips/ralink/Platform
new file mode 100644
index 00000000000..6babd65765e
--- /dev/null
+++ b/arch/mips/ralink/Platform
@@ -0,0 +1,10 @@
1#
2# Ralink SoC common stuff
3#
4core-$(CONFIG_RALINK) += arch/mips/ralink/
5cflags-$(CONFIG_RALINK) += -I$(srctree)/arch/mips/include/asm/mach-ralink
6
7#
8# Ralink RT305x
9#
10load-$(CONFIG_SOC_RT305X) += 0xffffffff80000000
diff --git a/arch/mips/ralink/dts/Makefile b/arch/mips/ralink/dts/Makefile
new file mode 100644
index 00000000000..1a69fb30095
--- /dev/null
+++ b/arch/mips/ralink/dts/Makefile
@@ -0,0 +1 @@
obj-$(CONFIG_DTB_RT305X_EVAL) := rt3052_eval.dtb.o