carl9170 firmware: return to the default clock rate before rebooting 1.9.2
authorChristian Lamparter <chunkeey@googlemail.com>
Sat, 25 Dec 2010 17:11:31 +0000 (18:11 +0100)
committerChristian Lamparter <chunkeey@googlemail.com>
Sat, 25 Dec 2010 17:11:31 +0000 (18:11 +0100)
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
carlfw/usb/main.c

index 3d90477a1d68c703d3119d56ad497664933919d3..95aac88b86b1d8d2a5d9f0027260495fa6365196 100644 (file)
@@ -244,7 +244,7 @@ static void turn_power_off(void)
                                  AR9170_PWR_RESET_WLAN_MASK);
        set(AR9170_PWR_REG_RESET, 0x0);
 
-       clock_set(false, AHB_20_22MHZ);
+       set(AR9170_PWR_REG_CLOCK_SEL, AHB_40MHZ_OSC);
 
        set(AR9170_PWR_REG_PLL_ADDAC, 0x5163);  /* 0x502b; */
        set(AR9170_PHY_REG_ADC_SERIAL_CTL, AR9170_PHY_ADC_SCTL_SEL_EXTERNAL_RADIO);