905-MIPS-ath79-bitmain-antminer-s3-support.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --- a/arch/mips/ath79/Kconfig
  2. +++ b/arch/mips/ath79/Kconfig
  3. @@ -75,6 +75,16 @@ config ATH79_MACH_ANTMINER_S1
  4. select ATH79_DEV_USB
  5. select ATH79_DEV_WMAC
  6. +config ATH79_MACH_ANTMINER_S3
  7. + bool "Bitmain Antminer S3 support"
  8. + select SOC_AR933X
  9. + select ATH79_DEV_ETH
  10. + select ATH79_DEV_GPIO_BUTTONS
  11. + select ATH79_DEV_LEDS_GPIO
  12. + select ATH79_DEV_M25P80
  13. + select ATH79_DEV_USB
  14. + select ATH79_DEV_WMAC
  15. +
  16. config ATH79_MACH_AP113
  17. bool "Atheros AP113 board support"
  18. select SOC_AR724X
  19. --- a/arch/mips/ath79/Makefile
  20. +++ b/arch/mips/ath79/Makefile
  21. @@ -44,6 +44,7 @@ obj-$(CONFIG_ATH79_MACH_ALFA_NX) += mach
  22. obj-$(CONFIG_ATH79_MACH_ALL0258N) += mach-all0258n.o
  23. obj-$(CONFIG_ATH79_MACH_ALL0315N) += mach-all0315n.o
  24. obj-$(CONFIG_ATH79_MACH_ANTMINER_S1)+= mach-antminer-s1.o
  25. +obj-$(CONFIG_ATH79_MACH_ANTMINER_S3)+= mach-antminer-s3.o
  26. obj-$(CONFIG_ATH79_MACH_AP113) += mach-ap113.o
  27. obj-$(CONFIG_ATH79_MACH_AP121) += mach-ap121.o
  28. obj-$(CONFIG_ATH79_MACH_AP132) += mach-ap132.o
  29. --- a/arch/mips/ath79/machtypes.h
  30. +++ b/arch/mips/ath79/machtypes.h
  31. @@ -23,6 +23,7 @@ enum ath79_mach_type {
  32. ATH79_MACH_ALL0305, /* Allnet ALL0305 */
  33. ATH79_MACH_ALL0315N, /* Allnet ALL0315N */
  34. ATH79_MACH_ANTMINER_S1, /* Antminer-S1 */
  35. + ATH79_MACH_ANTMINER_S3, /* Antminer-S3 */
  36. ATH79_MACH_AP113, /* Atheros AP113 reference board */
  37. ATH79_MACH_AP121, /* Atheros AP121 reference board */
  38. ATH79_MACH_AP121_MINI, /* Atheros AP121-MINI reference board */