ssb: Add PCI ID 0x4322 to PHU handling
authorLarry Finger <Larry.Finger@lwfinger.net>
Fri, 19 Feb 2010 18:02:44 +0000 (12:02 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 19 Feb 2010 20:52:51 +0000 (15:52 -0500)
Some of the N PHYs need a revision in the handling of the PMU.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/ssb/driver_chipcommon_pmu.c

index 64abd11f6fbbef64184011c9b4b7d0e0fb182ea8..3d551245a4e22c8ce59573490d690c132e89c04c 100644 (file)
@@ -332,6 +332,12 @@ static void ssb_pmu_pll_init(struct ssb_chipcommon *cc)
        case 0x5354:
                ssb_pmu0_pllinit_r0(cc, crystalfreq);
                break;
+       case 0x4322:
+               if (cc->pmu.rev == 2) {
+                       chipco_write32(cc, SSB_CHIPCO_PLLCTL_ADDR, 0x0000000A);
+                       chipco_write32(cc, SSB_CHIPCO_PLLCTL_DATA, 0x380005C0);
+               }
+               break;
        default:
                ssb_printk(KERN_ERR PFX
                           "ERROR: PLL init unknown for device %04X\n",
@@ -417,6 +423,7 @@ static void ssb_pmu_resources_init(struct ssb_chipcommon *cc)
 
        switch (bus->chip_id) {
        case 0x4312:
+       case 0x4322:
                /* We keep the default settings:
                 * min_msk = 0xCBB
                 * max_msk = 0x7FFFF