Browse Source

add default chip frequency

Xiangfu 13 years ago
parent
commit
d7f0db17ea
2 changed files with 4 additions and 1 deletions
  1. 2 1
      driver-avalon.c
  2. 2 0
      driver-avalon.h

+ 2 - 1
driver-avalon.c

@@ -400,9 +400,10 @@ static void get_options(int this_option_offset, int *baud, int *miner_count,
 	}
 	}
 
 
 	*baud = AVALON_IO_SPEED;
 	*baud = AVALON_IO_SPEED;
-	*miner_count = AVALON_DEFAULT_MINER_NUM;
+	*miner_count = AVALON_DEFAULT_MINER_NUM - 8;
 	*asic_count = AVALON_DEFAULT_ASIC_NUM;
 	*asic_count = AVALON_DEFAULT_ASIC_NUM;
 	*timeout = AVALON_DEFAULT_TIMEOUT;
 	*timeout = AVALON_DEFAULT_TIMEOUT;
+	*frequency = AVALON_DEFAULT_FREQUENCY;
 
 
 	if (!(*buf))
 	if (!(*buf))
 		return;
 		return;

+ 2 - 0
driver-avalon.h

@@ -21,7 +21,9 @@
 #define AVALON_FAN_FACTOR 120
 #define AVALON_FAN_FACTOR 120
 #define AVALON_DEFAULT_FAN_MAX_PWM 0xA0 /* 100% */
 #define AVALON_DEFAULT_FAN_MAX_PWM 0xA0 /* 100% */
 #define AVALON_DEFAULT_FAN_MIN_PWM 0x20 /*  20% */
 #define AVALON_DEFAULT_FAN_MIN_PWM 0x20 /*  20% */
+
 #define AVALON_DEFAULT_TIMEOUT 0x32
 #define AVALON_DEFAULT_TIMEOUT 0x32
+#define AVALON_DEFAULT_FREQUENCY 256
 #define AVALON_DEFAULT_MINER_NUM 0x20
 #define AVALON_DEFAULT_MINER_NUM 0x20
 #define AVALON_DEFAULT_ASIC_NUM 0xA
 #define AVALON_DEFAULT_ASIC_NUM 0xA