From: Christian Lamparter Date: Sat, 14 Aug 2010 19:29:42 +0000 (+0200) Subject: carl9170 firmware: set AHB clock to 40MHz early on X-Git-Tag: 1.8.5~1 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=7658f6eb89b59cae3d7c5ee9dd16c5a134cccb99;p=carl9170fw.git carl9170 firmware: set AHB clock to 40MHz early on Signed-off-by: Christian Lamparter --- diff --git a/carlfw/src/main.c b/carlfw/src/main.c index a9a1306..9b2a09c 100644 --- a/carlfw/src/main.c +++ b/carlfw/src/main.c @@ -86,8 +86,6 @@ static void handle_fw(void) static void __attribute__((noreturn)) main_loop(void) { - clock_set(true, AHB_40MHZ_OSC); - /* main loop */ while (1) { handle_fw(); @@ -120,6 +118,8 @@ static void __attribute__((noreturn)) main_loop(void) void __attribute__((noreturn)) start(void) { + clock_set(true, AHB_40MHZ_OSC); + /* initialize firmware context and DMA memory */ memset(&fw, 0, sizeof(fw));