602-MIPS-ath79-add-openwrt-stuff.patch 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. +config ATH79_DEV_M25P80
  7. + select ATH79_DEV_SPI
  8. + def_bool n
  9. +
  10. +config ATH79_DEV_AP9X_PCI
  11. + select ATH79_PCI_ATH9K_FIXUP
  12. + def_bool n
  13. +
  14. +config ATH79_DEV_DSA
  15. + def_bool n
  16. +
  17. +config ATH79_DEV_ETH
  18. + def_bool n
  19. +
  20. config PCI_AR724X
  21. def_bool n
  22. @@ -107,6 +121,10 @@ config ATH79_DEV_GPIO_BUTTONS
  23. config ATH79_DEV_LEDS_GPIO
  24. def_bool n
  25. +config ATH79_DEV_NFC
  26. + depends on (SOC_AR934X || SOC_QCA955X)
  27. + def_bool n
  28. +
  29. config ATH79_DEV_SPI
  30. def_bool n
  31. @@ -117,4 +135,13 @@ config ATH79_DEV_WMAC
  32. depends on (SOC_AR913X || SOC_AR933X || SOC_AR934X || SOC_QCA955X)
  33. def_bool n
  34. +config ATH79_NVRAM
  35. + def_bool n
  36. +
  37. +config ATH79_PCI_ATH9K_FIXUP
  38. + def_bool n
  39. +
  40. +config ATH79_ROUTERBOOT
  41. + def_bool n
  42. +
  43. endif
  44. --- a/arch/mips/ath79/Makefile
  45. +++ b/arch/mips/ath79/Makefile
  46. @@ -17,13 +17,25 @@ obj-$(CONFIG_PCI) += pci.o
  47. # Devices
  48. #
  49. obj-y += dev-common.o
  50. +obj-$(CONFIG_ATH79_DEV_AP9X_PCI) += dev-ap9x-pci.o
  51. +obj-$(CONFIG_ATH79_DEV_DSA) += dev-dsa.o
  52. +obj-$(CONFIG_ATH79_DEV_ETH) += dev-eth.o
  53. obj-$(CONFIG_ATH79_DEV_GPIO_BUTTONS) += dev-gpio-buttons.o
  54. obj-$(CONFIG_ATH79_DEV_LEDS_GPIO) += dev-leds-gpio.o
  55. +obj-$(CONFIG_ATH79_DEV_M25P80) += dev-m25p80.o
  56. +obj-$(CONFIG_ATH79_DEV_NFC) += dev-nfc.o
  57. obj-$(CONFIG_ATH79_DEV_SPI) += dev-spi.o
  58. obj-$(CONFIG_ATH79_DEV_USB) += dev-usb.o
  59. obj-$(CONFIG_ATH79_DEV_WMAC) += dev-wmac.o
  60. #
  61. +# Miscellaneous objects
  62. +#
  63. +obj-$(CONFIG_ATH79_NVRAM) += nvram.o
  64. +obj-$(CONFIG_ATH79_PCI_ATH9K_FIXUP) += pci-ath9k-fixup.o
  65. +obj-$(CONFIG_ATH79_ROUTERBOOT) += routerboot.o
  66. +
  67. +#
  68. # Machines
  69. #
  70. obj-$(CONFIG_ATH79_MACH_AP121) += mach-ap121.o