mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 08:51:13 +00:00
2b9885571b
Refreshed all patches Compile-tested on: cns3xxx, imx6, x86-64 Runtime-tested on: cns3xxx, imx6, x86-64 Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
18 lines
605 B
Diff
18 lines
605 B
Diff
--- a/arch/mips/ath79/clock.c
|
|
+++ b/arch/mips/ath79/clock.c
|
|
@@ -525,6 +525,14 @@ static void __init qca956x_clocks_init(v
|
|
u32 cpu_pll, ddr_pll;
|
|
u32 bootstrap;
|
|
|
|
+ /* QCA956x timer init workaround has to be applied right before setting
|
|
+ * up the clock. Else, there will be no jiffies */
|
|
+ u32 misc;
|
|
+
|
|
+ misc = ath79_reset_rr(AR71XX_RESET_REG_MISC_INT_ENABLE);
|
|
+ misc |= MISC_INT_MIPS_SI_TIMERINT_MASK;
|
|
+ ath79_reset_wr(AR71XX_RESET_REG_MISC_INT_ENABLE, misc);
|
|
+
|
|
bootstrap = ath79_reset_rr(QCA956X_RESET_REG_BOOTSTRAP);
|
|
if (bootstrap & QCA956X_BOOTSTRAP_REF_CLK_40)
|
|
ref_rate = 40 * 1000 * 1000;
|