1 commit 935e93fcc022ff7be7046d2435ce6441e260abfb
2 Author: Hauke Mehrtens <hauke@hauke-m.de>
3 Date: Wed Sep 18 13:33:00 2013 +0200
5 MIPS: BCM47XX: Fix detected clock on Asus WL520GC and WL520GU
7 The Asus WL520GC and WL520GU are based on the BCM5354 and clocked at
8 200MHz, but they do not have a clkfreq nvram variable set to the
9 correct value. This adds a workaround for these devices.
11 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
12 Cc: linux-mips@linux-mips.org
13 Patchwork: https://patchwork.linux-mips.org/patch/5843/
14 Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 --- a/arch/mips/bcm47xx/time.c
17 +++ b/arch/mips/bcm47xx/time.c
21 #include <bcm47xx_nvram.h>
22 +#include <bcm47xx_board.h>
24 void __init plat_time_init(void)
26 @@ -35,6 +36,7 @@ void __init plat_time_init(void)
30 + enum bcm47xx_board board = bcm47xx_board_get();
33 * Use deterministic values for initial counter interrupt
34 @@ -64,6 +66,15 @@ void __init plat_time_init(void)
39 + case BCM47XX_BOARD_ASUS_WL520GC:
40 + case BCM47XX_BOARD_ASUS_WL520GU: