ar71xx: Add support for AP147-010 reference board
[openwrt/openwrt.git] / target / linux / ar71xx / patches-4.1 / 602-MIPS-ath79-add-openwrt-stuff.patch
1 --- a/arch/mips/ath79/Kconfig
2 +++ b/arch/mips/ath79/Kconfig
3 @@ -98,6 +98,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 @@ -107,6 +121,10 @@ config ATH79_DEV_GPIO_BUTTONS
25 config ATH79_DEV_LEDS_GPIO
26 def_bool n
27
28 +config ATH79_DEV_NFC
29 + depends on (SOC_AR934X || SOC_QCA955X)
30 + def_bool n
31 +
32 config ATH79_DEV_SPI
33 def_bool n
34
35 @@ -117,4 +135,13 @@ config ATH79_DEV_WMAC
36 depends on (SOC_AR913X || SOC_AR933X || SOC_AR934X || SOC_QCA955X)
37 def_bool n
38
39 +config ATH79_NVRAM
40 + def_bool n
41 +
42 +config ATH79_PCI_ATH9K_FIXUP
43 + def_bool n
44 +
45 +config ATH79_ROUTERBOOT
46 + def_bool n
47 +
48 endif
49 --- a/arch/mips/ath79/Makefile
50 +++ b/arch/mips/ath79/Makefile
51 @@ -17,13 +17,25 @@ obj-$(CONFIG_PCI) += pci.o
52 # Devices
53 #
54 obj-y += dev-common.o
55 +obj-$(CONFIG_ATH79_DEV_AP9X_PCI) += dev-ap9x-pci.o
56 +obj-$(CONFIG_ATH79_DEV_DSA) += dev-dsa.o
57 +obj-$(CONFIG_ATH79_DEV_ETH) += dev-eth.o
58 obj-$(CONFIG_ATH79_DEV_GPIO_BUTTONS) += dev-gpio-buttons.o
59 obj-$(CONFIG_ATH79_DEV_LEDS_GPIO) += dev-leds-gpio.o
60 +obj-$(CONFIG_ATH79_DEV_M25P80) += dev-m25p80.o
61 +obj-$(CONFIG_ATH79_DEV_NFC) += dev-nfc.o
62 obj-$(CONFIG_ATH79_DEV_SPI) += dev-spi.o
63 obj-$(CONFIG_ATH79_DEV_USB) += dev-usb.o
64 obj-$(CONFIG_ATH79_DEV_WMAC) += dev-wmac.o
65
66 #
67 +# Miscellaneous objects
68 +#
69 +obj-$(CONFIG_ATH79_NVRAM) += nvram.o
70 +obj-$(CONFIG_ATH79_PCI_ATH9K_FIXUP) += pci-ath9k-fixup.o
71 +obj-$(CONFIG_ATH79_ROUTERBOOT) += routerboot.o
72 +
73 +#
74 # Machines
75 #
76 obj-$(CONFIG_ATH79_MACH_AP121) += mach-ap121.o