Browse Source

minion: Set configuration parameters we care about

Luke Dashjr 11 years ago
parent
commit
4315b9a3f7
1 changed files with 3 additions and 0 deletions
  1. 3 0
      driver-minion.c

+ 3 - 0
driver-minion.c

@@ -228,7 +228,10 @@ bool minion_init(struct thr_info * const thr)
 		minion_get(spi, chipid, MRA_PLL_CFG, &chip->pllcfg_asserted, 4);
 		minion_get(spi, chipid, MRA_PLL_CFG, &chip->pllcfg_asserted, 4);
 		
 		
 		minion_get(spi, chipid, MRA_MISC_CTL, buf, 4);
 		minion_get(spi, chipid, MRA_MISC_CTL, buf, 4);
+		buf[0] &= ~(1 << 4);  // Unpause cores
+		buf[0] &= ~(1 << 3);  // Unpause queue
 		buf[0] |= 1 << 2;  // Enable "no nonce" result reports
 		buf[0] |= 1 << 2;  // Enable "no nonce" result reports
+		buf[0] &= ~(1 << 1);  // Disable test mode
 		minion_set(spi, chipid, MRA_MISC_CTL, buf, 4);
 		minion_set(spi, chipid, MRA_MISC_CTL, buf, 4);
 		
 		
 		timer_set_delay_from_now(&proc->thr[0]->tv_poll, minion_poll_us);
 		timer_set_delay_from_now(&proc->thr[0]->tv_poll, minion_poll_us);