Return-path: Received: from mail-yx0-f200.google.com ([209.85.210.200]:61450 "EHLO mail-yx0-f200.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754634Ab0BSSCs (ORCPT ); Fri, 19 Feb 2010 13:02:48 -0500 Received: by yxe38 with SMTP id 38so297241yxe.4 for ; Fri, 19 Feb 2010 10:02:47 -0800 (PST) Date: Fri, 19 Feb 2010 12:02:44 -0600 From: Larry Finger To: John W Linville Cc: Michael Buesch , Johannes Berg , bcm43xx-dev@lists.berlios.de, linux-wireless@vger.kernel.org Subject: [PATCH] ssb: Add PCI ID 0x4322 to PHU handling Message-ID: <4b7ed244.kkOlTpyZEarNKwxu%Larry.Finger@lwfinger.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-wireless-owner@vger.kernel.org List-ID: Some of the N PHYs need a revision in the handling of the PMU. Signed-off-by: Larry Finger --- John, This will be needed for some of the N PHY devices - 2.6.34 amterial. Larry --- Index: wireless-testing/drivers/ssb/driver_chipcommon_pmu.c =================================================================== --- wireless-testing.orig/drivers/ssb/driver_chipcommon_pmu.c +++ wireless-testing/drivers/ssb/driver_chipcommon_pmu.c @@ -332,6 +332,12 @@ static void ssb_pmu_pll_init(struct ssb_ 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(struc switch (bus->chip_id) { case 0x4312: + case 0x4322: /* We keep the default settings: * min_msk = 0xCBB * max_msk = 0x7FFFF