1 --- a/arch/mips/Makefile
2 +++ b/arch/mips/Makefile
3 @@ -607,6 +607,26 @@ ifdef CONFIG_PHYSICAL_START
4 load-y = $(CONFIG_PHYSICAL_START)
8 +# Ralink SoC common stuff
10 +core-$(CONFIG_MIPS_RALINK) += arch/mips/ralink/common/
11 +cflags-$(CONFIG_MIPS_RALINK) += -I$(srctree)/arch/mips/include/asm/mach-ralink
16 +core-$(CONFIG_RALINK_RT288X) += arch/mips/ralink/rt288x/
17 +cflags-$(CONFIG_RALINK_RT288X) += -I$(srctree)//arch/mips/include/asm/mach-ralink/rt288x
18 +load-$(CONFIG_RALINK_RT288X) += 0xffffffff88000000
23 +core-$(CONFIG_RALINK_RT305X) += arch/mips/ralink/rt305x/
24 +cflags-$(CONFIG_RALINK_RT305X) += -I$(srctree)/arch/mips/include/asm/mach-ralink/rt305x
25 +load-$(CONFIG_RALINK_RT305X) += 0xffffffff80000000
27 # temporary until string.h is fixed
28 cflags-y += -ffreestanding
30 --- a/arch/mips/Kconfig
31 +++ b/arch/mips/Kconfig
32 @@ -22,6 +22,9 @@ choice
34 bool "Alchemy processor based machines"
37 + bool "Ralink MIPS SoC based boards"
40 bool "Basler eXcite smart camera"
42 @@ -638,6 +641,7 @@ source "arch/mips/basler/excite/Kconfig"
43 source "arch/mips/jazz/Kconfig"
44 source "arch/mips/lasat/Kconfig"
45 source "arch/mips/pmc-sierra/Kconfig"
46 +source "arch/mips/ralink/Kconfig"
47 source "arch/mips/sgi-ip27/Kconfig"
48 source "arch/mips/sibyte/Kconfig"
49 source "arch/mips/txx9/Kconfig"
50 @@ -989,7 +993,7 @@ config BOOT_ELF32
52 config MIPS_L1_CACHE_SHIFT
54 - default "4" if MACH_DECSTATION || MIKROTIK_RB532
55 + default "4" if MACH_DECSTATION || MIKROTIK_RB532 || RALINK_RT288X
56 default "7" if SGI_IP22 || SGI_IP27 || SGI_IP28 || SNI_RM || CPU_CAVIUM_OCTEON
57 default "4" if PMC_MSP4200_EVAL