kernel: update 3.18 to 3.18.17
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / patches-3.18 / 904-MIPS-ath79-bitmain-antminer-s1-support.patch
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
17 +config ATH79_MACH_ANTMINER_S1
18 + bool "Bitmain Antminer S1 support"
19 + select SOC_AR933X
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_USB
25 + select ATH79_DEV_WMAC
26 +
27 config ATH79_MACH_AP113
28 bool "Atheros AP113 board support"
29 select SOC_AR724X
30 --- a/arch/mips/ath79/Makefile
31 +++ b/arch/mips/ath79/Makefile
32 @@ -42,6 +42,7 @@ obj-$(CONFIG_ATH79_MACH_ALFA_AP96) += ma
33 obj-$(CONFIG_ATH79_MACH_ALFA_NX) += mach-alfa-nx.o
34 obj-$(CONFIG_ATH79_MACH_ALL0258N) += mach-all0258n.o
35 obj-$(CONFIG_ATH79_MACH_ALL0315N) += mach-all0315n.o
36 +obj-$(CONFIG_ATH79_MACH_ANTMINER_S1)+= mach-antminer-s1.o
37 obj-$(CONFIG_ATH79_MACH_AP113) += mach-ap113.o
38 obj-$(CONFIG_ATH79_MACH_AP121) += mach-ap121.o
39 obj-$(CONFIG_ATH79_MACH_AP132) += mach-ap132.o