738-MIPS-ath79-add-meraki-mr12-mr16-support.patch 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --- a/arch/mips/ath79/Kconfig
  2. +++ b/arch/mips/ath79/Kconfig
  3. @@ -780,6 +780,26 @@ config ATH79_MACH_ONION_OMEGA
  4. select ATH79_DEV_USB
  5. select ATH79_DEV_WMAC
  6. +config ATH79_MACH_MR12
  7. + bool "Meraki MR12 board support"
  8. + select SOC_AR724X
  9. + select ATH79_DEV_AP9X_PCI if PCI
  10. + select ATH79_DEV_ETH
  11. + select ATH79_DEV_GPIO_BUTTONS
  12. + select ATH79_DEV_LEDS_GPIO
  13. + select ATH79_DEV_M25P80
  14. + select ATH79_DEV_WMAC
  15. +
  16. +config ATH79_MACH_MR16
  17. + bool "Meraki MR16 board support"
  18. + select SOC_AR71XX
  19. + select ATH79_DEV_AP9X_PCI if PCI
  20. + select ATH79_DEV_ETH
  21. + select ATH79_DEV_GPIO_BUTTONS
  22. + select ATH79_DEV_LEDS_GPIO
  23. + select ATH79_DEV_M25P80
  24. + select ATH79_DEV_WMAC
  25. +
  26. config ATH79_MACH_MR600
  27. bool "OpenMesh MR600 board support"
  28. select SOC_AR934X
  29. --- a/arch/mips/ath79/Makefile
  30. +++ b/arch/mips/ath79/Makefile
  31. @@ -83,6 +83,8 @@ obj-$(CONFIG_ATH79_MACH_JA76PF) += mach
  32. obj-$(CONFIG_ATH79_MACH_JWAP003) += mach-jwap003.o
  33. obj-$(CONFIG_ATH79_MACH_HORNET_UB) += mach-hornet-ub.o
  34. obj-$(CONFIG_ATH79_MACH_MC_MAC1200R) += mach-mc-mac1200r.o
  35. +obj-$(CONFIG_ATH79_MACH_MR12) += mach-mr12.o
  36. +obj-$(CONFIG_ATH79_MACH_MR16) += mach-mr16.o
  37. obj-$(CONFIG_ATH79_MACH_MR600) += mach-mr600.o
  38. obj-$(CONFIG_ATH79_MACH_MR900) += mach-mr900.o
  39. obj-$(CONFIG_ATH79_MACH_MYNET_N600) += mach-mynet-n600.o
  40. --- a/arch/mips/ath79/machtypes.h
  41. +++ b/arch/mips/ath79/machtypes.h
  42. @@ -72,6 +72,8 @@ enum ath79_mach_type {
  43. ATH79_MACH_JA76PF2, /* jjPlus JA76PF2 */
  44. ATH79_MACH_JWAP003, /* jjPlus JWAP003 */
  45. ATH79_MACH_HORNET_UB, /* ALFA Networks Hornet-UB */
  46. + ATH79_MACH_MR12, /* Cisco Meraki MR12 */
  47. + ATH79_MACH_MR16, /* Cisco Meraki MR16 */
  48. ATH79_MACH_MR600V2, /* OpenMesh MR600v2 */
  49. ATH79_MACH_MR600, /* OpenMesh MR600 */
  50. ATH79_MACH_MR900, /* OpenMesh MR900 */