kernel: bgmac: move other bgmac patches to generic
[oweals/openwrt.git] / target / linux / brcm47xx / patches-3.10 / 521-MIPS-BCM47XX-fix-detected-clock-on-Asus-WL520GC-and-.patch
1 --- a/arch/mips/bcm47xx/time.c
2 +++ b/arch/mips/bcm47xx/time.c
3 @@ -28,6 +28,7 @@
4  #include <asm/time.h>
5  #include <bcm47xx.h>
6  #include <bcm47xx_nvram.h>
7 +#include <bcm47xx_board.h>
8  
9  void __init plat_time_init(void)
10  {
11 @@ -35,6 +36,7 @@ void __init plat_time_init(void)
12         u16 chip_id = 0;
13         char buf[10];
14         int len;
15 +       enum bcm47xx_board board = bcm47xx_board_get();
16  
17         /*
18          * Use deterministic values for initial counter interrupt
19 @@ -64,6 +66,15 @@ void __init plat_time_init(void)
20                         hz = 100000000;
21         }
22  
23 +       switch (board) {
24 +       case BCM47XX_BOARD_ASUS_WL520GC:
25 +       case BCM47XX_BOARD_ASUS_WL520GU:
26 +               hz = 100000000;
27 +               break;
28 +       default:
29 +               break;
30 +       }
31 +
32         if (!hz)
33                 hz = 100000000;
34