ar71xx: add preliminary support for Mikrotik RB2011L
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / patches-3.3 / 602-MIPS-ath79-add-openwrt-stuff.patch
1 --- a/arch/mips/ath79/Kconfig
2 +++ b/arch/mips/ath79/Kconfig
3 @@ -106,6 +106,20 @@ config SOC_QCA955X
4 select PCI_AR724X if PCI
5 def_bool n
6
7 +config ATH79_DEV_M25P80
8 + select ATH79_DEV_SPI
9 + def_bool n
10 +
11 +config ATH79_DEV_AP9X_PCI
12 + select ATH79_PCI_ATH9K_FIXUP
13 + def_bool n
14 +
15 +config ATH79_DEV_DSA
16 + def_bool n
17 +
18 +config ATH79_DEV_ETH
19 + def_bool n
20 +
21 config PCI_AR724X
22 def_bool n
23
24 @@ -125,4 +139,10 @@ config ATH79_DEV_WMAC
25 depends on (SOC_AR913X || SOC_AR933X || SOC_AR934X || SOC_QCA955X)
26 def_bool n
27
28 +config ATH79_NVRAM
29 + def_bool n
30 +
31 +config ATH79_PCI_ATH9K_FIXUP
32 + def_bool n
33 +
34 endif
35 --- a/arch/mips/ath79/Makefile
36 +++ b/arch/mips/ath79/Makefile
37 @@ -17,13 +17,23 @@ obj-$(CONFIG_PCI) += pci.o
38 # Devices
39 #
40 obj-y += dev-common.o
41 +obj-$(CONFIG_ATH79_DEV_AP9X_PCI) += dev-ap9x-pci.o
42 +obj-$(CONFIG_ATH79_DEV_DSA) += dev-dsa.o
43 +obj-$(CONFIG_ATH79_DEV_ETH) += dev-eth.o
44 obj-$(CONFIG_ATH79_DEV_GPIO_BUTTONS) += dev-gpio-buttons.o
45 obj-$(CONFIG_ATH79_DEV_LEDS_GPIO) += dev-leds-gpio.o
46 +obj-$(CONFIG_ATH79_DEV_M25P80) += dev-m25p80.o
47 obj-$(CONFIG_ATH79_DEV_SPI) += dev-spi.o
48 obj-$(CONFIG_ATH79_DEV_USB) += dev-usb.o
49 obj-$(CONFIG_ATH79_DEV_WMAC) += dev-wmac.o
50
51 #
52 +# Miscellaneous objects
53 +#
54 +obj-$(CONFIG_ATH79_NVRAM) += nvram.o
55 +obj-$(CONFIG_ATH79_PCI_ATH9K_FIXUP) += pci-ath9k-fixup.o
56 +
57 +#
58 # Machines
59 #
60 obj-$(CONFIG_ATH79_MACH_AP121) += mach-ap121.o