Skip to content
Snippets Groups Projects
Commit 632c9209 authored by John Crispin's avatar John Crispin
Browse files

ar71xx: Bitmain Antminer S1/S3 set GPIO for USB Power


Antminers using the stock bootloader will not hash without this GPIO set.
Applies to DD and CC

Signed-off-by: default avatarL. D. Pinney <ldpinney@gmail.com>

SVN-Revision: 47261
parent f080f2aa
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@
#define ANTMINER_S1_GPIO_LED_SYSTEM 23
#define ANTMINER_S1_GPIO_LED_WLAN 0
#define ANTMINER_S1_GPIO_USB_POWER 8
#define ANTMINER_S1_GPIO_USB_POWER 26
#define ANTMINER_S1_KEYSPOLL_INTERVAL 20 /* msecs */
#define ANTMINER_S1_KEYSDEBOUNCE_INTERVAL (3 * ANTMINER_S1_KEYSPOLL_INTERVAL)
......
......@@ -25,6 +25,7 @@
#define ANTMINER_S3_GPIO_LED_WLAN 0
#define ANTMINER_S3_GPIO_LED_SYSTEM 17
#define ANTMINER_S3_GPIO_LED_LAN 22
#define ANTMINER_S3_GPIO_USB_POWER 26
#define ANTMINER_S3_GPIO_BTN_RESET 11
......@@ -81,6 +82,10 @@ static void __init antminer_s3_setup(void)
ath79_register_gpio_keys_polled(-1, ANTMINER_S3_KEYSPOLL_INTERVAL,
ARRAY_SIZE(ANTMINER_S3_GPIO_keys),
ANTMINER_S3_GPIO_keys);
gpio_request_one(ANTMINER_S3_GPIO_USB_POWER,
GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED,
"USB power");
ath79_register_usb();
ath79_register_m25p80(&ANTMINER_S3_flash_data);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment