Commit 5ad688deccb6f905b217ebaa0c5136eff3595d8e

kanoi 2014-07-26T23:32:13

minion - power cycle at start if possible

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/driver-minion.c b/driver-minion.c
index 7402282..385f5ac 100644
--- a/driver-minion.c
+++ b/driver-minion.c
@@ -2044,6 +2044,11 @@ static void minion_detect_chips(struct cgpu_info *minioncgpu, struct minion_info
 	int pin, chipid, chip;
 	int pinend, start_freq, want_freq, freqms;
 
+#if MINION_ROCKCHIP == 1
+	minion_toggle_gpio(minioncgpu, MINION_POWERCYCLE_GPIO);
+	cgsleep_ms(100);
+#endif
+
 	if (usepins) {
 		init_pins(minioninfo);
 		pinend = (int)MINION_PIN_COUNT;