907-MIPS-ath79-add-tl-wa901nd-v4-support.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. --- a/arch/mips/ath79/machtypes.h
  2. +++ b/arch/mips/ath79/machtypes.h
  3. @@ -157,6 +157,7 @@ enum ath79_mach_type {
  4. ATH79_MACH_TL_WA901ND, /* TP-LINK TL-WA901ND */
  5. ATH79_MACH_TL_WA901ND_V2, /* TP-LINK TL-WA901ND v2 */
  6. ATH79_MACH_TL_WA901ND_V3, /* TP-LINK TL-WA901ND v3 */
  7. + ATH79_MACH_TL_WA901ND_V4, /* TP-LINK TL-WA901ND v4 */
  8. ATH79_MACH_TL_WDR3500, /* TP-LINK TL-WDR3500 */
  9. ATH79_MACH_TL_WDR4300, /* TP-LINK TL-WDR4300 */
  10. ATH79_MACH_TL_WDR4900_V2, /* TP-LINK TL-WDR4900 v2 */
  11. --- a/arch/mips/ath79/Kconfig
  12. +++ b/arch/mips/ath79/Kconfig
  13. @@ -1063,6 +1063,15 @@ config ATH79_MACH_TL_WA901ND_V2
  14. select ATH79_DEV_M25P80
  15. select ATH79_DEV_WMAC
  16. +config ATH79_MACH_TL_WA901ND_V4
  17. + bool "TP-LINK TL-WA901ND v4 support"
  18. + select SOC_QCA956X
  19. + select ATH79_DEV_ETH
  20. + select ATH79_DEV_GPIO_BUTTONS
  21. + select ATH79_DEV_LEDS_GPIO
  22. + select ATH79_DEV_M25P80
  23. + select ATH79_DEV_WMAC
  24. +
  25. config ATH79_MACH_TL_WDR3500
  26. bool "TP-LINK TL-WDR3500 board support"
  27. select SOC_AR934X
  28. --- a/arch/mips/ath79/Makefile
  29. +++ b/arch/mips/ath79/Makefile
  30. @@ -131,6 +131,7 @@ obj-$(CONFIG_ATH79_MACH_TL_WA7210N_V2) +
  31. obj-$(CONFIG_ATH79_MACH_TL_WA830RE_V2) += mach-tl-wa830re-v2.o
  32. obj-$(CONFIG_ATH79_MACH_TL_WA901ND) += mach-tl-wa901nd.o
  33. obj-$(CONFIG_ATH79_MACH_TL_WA901ND_V2) += mach-tl-wa901nd-v2.o
  34. +obj-$(CONFIG_ATH79_MACH_TL_WA901ND_V4) += mach-tl-wa901nd-v4.o
  35. obj-$(CONFIG_ATH79_MACH_TL_WDR3500) += mach-tl-wdr3500.o
  36. obj-$(CONFIG_ATH79_MACH_TL_WDR4300) += mach-tl-wdr4300.o
  37. obj-$(CONFIG_ATH79_MACH_TL_WR741ND) += mach-tl-wr741nd.o