Commit a31b5c6111f364d20ec6bc5c986a63e447fdfc5f

Con Kolivas 2014-05-05T17:04:23

Add output direction for the EN0 pin on nfu driver

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/driver-bitfury.c b/driver-bitfury.c
index ccbb021..435753c 100644
--- a/driver-bitfury.c
+++ b/driver-bitfury.c
@@ -459,6 +459,7 @@ static bool nfu_detect_one(struct cgpu_info *bitfury, struct bitfury_info *info)
 	/* Set LED and PWR pins to output and high */
 	mcp->direction.pin[NFU_PIN_LED] = mcp->direction.pin[NFU_PIN_PWR_EN] = MCP2210_GPIO_OUTPUT;
 	mcp->value.pin[NFU_PIN_LED] = mcp->value.pin[NFU_PIN_PWR_EN] = MCP2210_GPIO_PIN_HIGH;
+	mcp->direction.pin[NFU_PIN_PWR_EN0] = MCP2210_GPIO_OUTPUT;
 	mcp->value.pin[NFU_PIN_PWR_EN0] = MCP2210_GPIO_PIN_LOW;
 
 	mcp->direction.pin[4] = MCP2210_GPIO_OUTPUT;