source: trunk/target/linux/brcm47xx/patches-2.6.39/250-ssb_fix_ssb_clock_rate.patch @ 27295

Last change on this file since 27295 was 27295, checked in by hauke, 5 years ago

kernel: update ssb and bcma to linux-next next-20110627

File size: 933 bytes
  • drivers/ssb/main.c

    From 974353557959d8ec1c022511cd1b3eeaa7ed482a Mon Sep 17 00:00:00 2001
    From: Hauke Mehrtens <hauke@hauke-m.de>
    Date: Sat, 4 Jun 2011 15:55:24 +0200
    Subject: [PATCH 15/15] ssb: fix ssb clock rate according to broadcom source
    
    This fix was done according to si_clock_rate function in broadcom siutils.c
    
    Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
    ---
     drivers/ssb/main.c |    4 ++--
     1 files changed, 2 insertions(+), 2 deletions(-)
    
    a b u32 ssb_calc_clock_rate(u32 plltype, u32 
    10021002        switch (plltype) { 
    10031003        case SSB_PLLTYPE_6: /* 100/200 or 120/240 only */ 
    10041004                if (m & SSB_CHIPCO_CLK_T6_MMASK) 
    1005                         return SSB_CHIPCO_CLK_T6_M0; 
    1006                 return SSB_CHIPCO_CLK_T6_M1; 
     1005                        return SSB_CHIPCO_CLK_T6_M1; 
     1006                return SSB_CHIPCO_CLK_T6_M0; 
    10071007        case SSB_PLLTYPE_1: /* 48Mhz base, 3 dividers */ 
    10081008        case SSB_PLLTYPE_3: /* 25Mhz, 2 dividers */ 
    10091009        case SSB_PLLTYPE_4: /* 48Mhz, 4 dividers */ 
Note: See TracBrowser for help on using the repository browser.