[ramips] share common INTC code
[openwrt/svn-archive/archive.git] / target / linux / ramips / patches-2.6.30 / 100-mips-ralink-core.patch
1 --- a/arch/mips/Makefile
2 +++ b/arch/mips/Makefile
3 @@ -603,6 +603,24 @@ else
4 load-$(CONFIG_CPU_CAVIUM_OCTEON) += 0xffffffff81100000
5 endif
6
7 +#
8 +# Ralink SoC common stuff
9 +#
10 +core-$(CONFIG_MIPS_RALINK) += arch/mips/ralink/common/
11 +cflags-$(CONFIG_MIPS_RALINK) += -I$(srctree)/arch/mips/include/asm/mach-ralink
12 +
13 +#
14 +# Ralink RT288x
15 +#
16 +core-$(CONFIG_RALINK_RT288X) += arch/mips/ralink/rt288x/
17 +load-$(CONFIG_RALINK_RT288X) += 0xffffffff88000000
18 +
19 +#
20 +# Ralink RT305x
21 +#
22 +core-$(CONFIG_RALINK_RT305X) += arch/mips/ralink/rt305x/
23 +load-$(CONFIG_RALINK_RT305X) += 0xffffffff80000000
24 +
25 # temporary until string.h is fixed
26 cflags-y += -ffreestanding
27
28 --- a/arch/mips/Kconfig
29 +++ b/arch/mips/Kconfig
30 @@ -22,6 +22,9 @@ choice
31 config MACH_ALCHEMY
32 bool "Alchemy processor based machines"
33
34 +config MIPS_RALINK
35 + bool "Ralink MIPS SoC based boards"
36 +
37 config BASLER_EXCITE
38 bool "Basler eXcite smart camera"
39 select CEVT_R4K
40 @@ -638,6 +641,7 @@ source "arch/mips/basler/excite/Kconfig"
41 source "arch/mips/jazz/Kconfig"
42 source "arch/mips/lasat/Kconfig"
43 source "arch/mips/pmc-sierra/Kconfig"
44 +source "arch/mips/ralink/Kconfig"
45 source "arch/mips/sgi-ip27/Kconfig"
46 source "arch/mips/sibyte/Kconfig"
47 source "arch/mips/txx9/Kconfig"