diff options
author | John Crispin <blogic@openwrt.org> | 2013-01-20 16:05:30 -0500 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-02-16 19:25:32 -0500 |
commit | ae2b5bb6570481b50a7175c64176b82da0a81836 (patch) | |
tree | 52d1c1997b7abe6f09ffbd14c0546a2ebe2b248e /arch/mips | |
parent | 5644da4f635a30fc03b4f12d81b2197d716d9cef (diff) |
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.platforms | 1 | ||||
-rw-r--r-- | arch/mips/Kconfig | 17 | ||||
-rw-r--r-- | arch/mips/ralink/Kconfig | 32 | ||||
-rw-r--r-- | arch/mips/ralink/Makefile | 15 | ||||
-rw-r--r-- | arch/mips/ralink/Platform | 10 | ||||
-rw-r--r-- | arch/mips/ralink/dts/Makefile | 1 |
6 files changed, 76 insertions, 0 deletions
diff --git a/arch/mips/Kbuild.platforms b/arch/mips/Kbuild.platforms index 91b9d69f465c..9a73ce6f4c58 100644 --- a/arch/mips/Kbuild.platforms +++ b/arch/mips/Kbuild.platforms | |||
@@ -22,6 +22,7 @@ platforms += pmc-sierra | |||
22 | platforms += pnx833x | 22 | platforms += pnx833x |
23 | platforms += pnx8550 | 23 | platforms += pnx8550 |
24 | platforms += powertv | 24 | platforms += powertv |
25 | platforms += ralink | ||
25 | platforms += rb532 | 26 | platforms += rb532 |
26 | platforms += sgi-ip22 | 27 | platforms += sgi-ip22 |
27 | platforms += sgi-ip27 | 28 | platforms += sgi-ip27 |
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 8f8666c8f28d..79ad1d09c255 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 | ||
440 | config 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 | |||
440 | config SGI_IP22 | 456 | config 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" | |||
849 | source "arch/mips/lasat/Kconfig" | 865 | source "arch/mips/lasat/Kconfig" |
850 | source "arch/mips/pmc-sierra/Kconfig" | 866 | source "arch/mips/pmc-sierra/Kconfig" |
851 | source "arch/mips/powertv/Kconfig" | 867 | source "arch/mips/powertv/Kconfig" |
868 | source "arch/mips/ralink/Kconfig" | ||
852 | source "arch/mips/sgi-ip27/Kconfig" | 869 | source "arch/mips/sgi-ip27/Kconfig" |
853 | source "arch/mips/sibyte/Kconfig" | 870 | source "arch/mips/sibyte/Kconfig" |
854 | source "arch/mips/txx9/Kconfig" | 871 | source "arch/mips/txx9/Kconfig" |
diff --git a/arch/mips/ralink/Kconfig b/arch/mips/ralink/Kconfig new file mode 100644 index 000000000000..a0b0197cab0a --- /dev/null +++ b/arch/mips/ralink/Kconfig | |||
@@ -0,0 +1,32 @@ | |||
1 | if RALINK | ||
2 | |||
3 | choice | ||
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 | |||
15 | endchoice | ||
16 | |||
17 | choice | ||
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 | |||
30 | endchoice | ||
31 | |||
32 | endif | ||
diff --git a/arch/mips/ralink/Makefile b/arch/mips/ralink/Makefile new file mode 100644 index 000000000000..939757f0e71f --- /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 | |||
9 | obj-y := prom.o of.o reset.o clk.o irq.o | ||
10 | |||
11 | obj-$(CONFIG_SOC_RT305X) += rt305x.o | ||
12 | |||
13 | obj-$(CONFIG_EARLY_PRINTK) += early_printk.o | ||
14 | |||
15 | obj-y += dts/ | ||
diff --git a/arch/mips/ralink/Platform b/arch/mips/ralink/Platform new file mode 100644 index 000000000000..6babd65765e6 --- /dev/null +++ b/arch/mips/ralink/Platform | |||
@@ -0,0 +1,10 @@ | |||
1 | # | ||
2 | # Ralink SoC common stuff | ||
3 | # | ||
4 | core-$(CONFIG_RALINK) += arch/mips/ralink/ | ||
5 | cflags-$(CONFIG_RALINK) += -I$(srctree)/arch/mips/include/asm/mach-ralink | ||
6 | |||
7 | # | ||
8 | # Ralink RT305x | ||
9 | # | ||
10 | load-$(CONFIG_SOC_RT305X) += 0xffffffff80000000 | ||
diff --git a/arch/mips/ralink/dts/Makefile b/arch/mips/ralink/dts/Makefile new file mode 100644 index 000000000000..1a69fb300955 --- /dev/null +++ b/arch/mips/ralink/dts/Makefile | |||
@@ -0,0 +1 @@ | |||
obj-$(CONFIG_DTB_RT305X_EVAL) := rt3052_eval.dtb.o | |||