From: Christian Lamparter Date: Sat, 25 Dec 2010 17:11:31 +0000 (+0100) Subject: carl9170 firmware: return to the default clock rate before rebooting X-Git-Tag: 1.9.2^0 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=fa70a88970886b0a54bfd37086c66a1c08f50243;p=carl9170fw.git carl9170 firmware: return to the default clock rate before rebooting Signed-off-by: Christian Lamparter --- diff --git a/carlfw/usb/main.c b/carlfw/usb/main.c index 3d90477..95aac88 100644 --- a/carlfw/usb/main.c +++ b/carlfw/usb/main.c @@ -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);