800-MIPS-ath79-add-RB922GS-support.patch 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --- a/arch/mips/ath79/Kconfig
  2. +++ b/arch/mips/ath79/Kconfig
  3. @@ -655,6 +655,16 @@ config ATH79_MACH_RB91X
  4. select ATH79_DEV_USB
  5. select ATH79_ROUTERBOOT
  6. +config ATH79_MACH_RB922
  7. + bool "MikroTik RouterBOARD 922 support"
  8. + select SOC_QCA955X
  9. + select ATH79_DEV_ETH
  10. + select ATH79_DEV_M25P80
  11. + select ATH79_DEV_NFC
  12. + select ATH79_DEV_USB
  13. + select ATH79_ROUTERBOOT
  14. + select RLE_DECOMPRESS
  15. +
  16. config ATH79_MACH_RB95X
  17. bool "MikroTik RouterBOARD 95X support"
  18. select SOC_AR934X
  19. --- a/arch/mips/ath79/Makefile
  20. +++ b/arch/mips/ath79/Makefile
  21. @@ -105,6 +105,7 @@ obj-$(CONFIG_ATH79_MACH_R6100) += mach-
  22. obj-$(CONFIG_ATH79_MACH_RB4XX) += mach-rb4xx.o
  23. obj-$(CONFIG_ATH79_MACH_RB750) += mach-rb750.o
  24. obj-$(CONFIG_ATH79_MACH_RB91X) += mach-rb91x.o
  25. +obj-$(CONFIG_ATH79_MACH_RB922) += mach-rb922.o
  26. obj-$(CONFIG_ATH79_MACH_RB95X) += mach-rb95x.o
  27. obj-$(CONFIG_ATH79_MACH_RB2011) += mach-rb2011.o
  28. obj-$(CONFIG_ATH79_MACH_RBSXTLITE) += mach-rbsxtlite.o
  29. --- a/arch/mips/ath79/machtypes.h
  30. +++ b/arch/mips/ath79/machtypes.h
  31. @@ -112,6 +112,7 @@ enum ath79_mach_type {
  32. ATH79_MACH_RB_750G_R3, /* MikroTik RouterBOARD 750GL */
  33. ATH79_MACH_RB_751, /* MikroTik RouterBOARD 751 */
  34. ATH79_MACH_RB_751G, /* Mikrotik RouterBOARD 751G */
  35. + ATH79_MACH_RB_922GS, /* Mikrotik RouterBOARD 911/922GS boards */
  36. ATH79_MACH_RB_951G, /* Mikrotik RouterBOARD 951G */
  37. ATH79_MACH_RB_951U, /* Mikrotik RouterBOARD 951Ui-2HnD */
  38. ATH79_MACH_RB_2011G, /* Mikrotik RouterBOARD 2011UAS-2HnD */
  39. --- a/arch/mips/ath79/prom.c
  40. +++ b/arch/mips/ath79/prom.c
  41. @@ -184,7 +184,8 @@ void __init prom_init(void)
  42. if (strstr(arcs_cmdline, "board=750Gr3") ||
  43. strstr(arcs_cmdline, "board=951G") ||
  44. strstr(arcs_cmdline, "board=2011L") ||
  45. - strstr(arcs_cmdline, "board=711Gr100"))
  46. + strstr(arcs_cmdline, "board=711Gr100") ||
  47. + strstr(arcs_cmdline, "board=922gs"))
  48. ath79_prom_append_cmdline("console", "ttyS0,115200");
  49. }