904-MIPS-ath79-bitmain-antminer-s1-support.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --- a/arch/mips/ath79/machtypes.h
  2. +++ b/arch/mips/ath79/machtypes.h
  3. @@ -21,6 +21,7 @@ enum ath79_mach_type {
  4. ATH79_MACH_ALL0258N, /* Allnet ALL0258N */
  5. ATH79_MACH_ALL0305, /* Allnet ALL0305 */
  6. ATH79_MACH_ALL0315N, /* Allnet ALL0315N */
  7. + ATH79_MACH_ANTMINER_S1, /* Bitmain Antminer S1 */
  8. ATH79_MACH_AP113, /* Atheros AP113 reference board */
  9. ATH79_MACH_AP121, /* Atheros AP121 reference board */
  10. ATH79_MACH_AP121_MINI, /* Atheros AP121-MINI reference board */
  11. --- a/arch/mips/ath79/Kconfig
  12. +++ b/arch/mips/ath79/Kconfig
  13. @@ -56,6 +56,16 @@ config ATH79_MACH_ALL0315N
  14. select ATH79_DEV_LEDS_GPIO
  15. select ATH79_DEV_M25P80
  16. +config ATH79_MACH_ANTMINER_S1
  17. + bool "Bitmain Antminer S1 support"
  18. + select SOC_AR933X
  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_USB
  24. + select ATH79_DEV_WMAC
  25. +
  26. config ATH79_MACH_AP113
  27. bool "Atheros AP113 board support"
  28. select SOC_AR724X
  29. --- a/arch/mips/ath79/Makefile
  30. +++ b/arch/mips/ath79/Makefile
  31. @@ -42,6 +42,7 @@ obj-$(CONFIG_ATH79_MACH_ALFA_AP96) += ma
  32. obj-$(CONFIG_ATH79_MACH_ALFA_NX) += mach-alfa-nx.o
  33. obj-$(CONFIG_ATH79_MACH_ALL0258N) += mach-all0258n.o
  34. obj-$(CONFIG_ATH79_MACH_ALL0315N) += mach-all0315n.o
  35. +obj-$(CONFIG_ATH79_MACH_ANTMINER_S1)+= mach-antminer-s1.o
  36. obj-$(CONFIG_ATH79_MACH_AP113) += mach-ap113.o
  37. obj-$(CONFIG_ATH79_MACH_AP121) += mach-ap121.o
  38. obj-$(CONFIG_ATH79_MACH_AP132) += mach-ap132.o