All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ssb: implement ssb spuravoid for chipid BCM43222
@ 2013-04-11 12:40 Hauke Mehrtens
  2013-04-12  6:29   ` Rafał Miłecki
  0 siblings, 1 reply; 6+ messages in thread
From: Hauke Mehrtens @ 2013-04-11 12:40 UTC (permalink / raw)
  To: linville; +Cc: zajec5, linux-wireless, b43-dev, Hauke Mehrtens

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
 drivers/ssb/driver_chipcommon_pmu.c |   19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)

diff --git a/drivers/ssb/driver_chipcommon_pmu.c b/drivers/ssb/driver_chipcommon_pmu.c
index 23c5dbf..1173a09 100644
--- a/drivers/ssb/driver_chipcommon_pmu.c
+++ b/drivers/ssb/driver_chipcommon_pmu.c
@@ -687,8 +687,23 @@ void ssb_pmu_spuravoid_pllupdate(struct ssb_chipcommon *cc, int spuravoid)
 		pmu_ctl = SSB_CHIPCO_PMU_CTL_PLL_UPD;
 		break;
 	case 43222:
-		/* TODO: BCM43222 requires updating PLLs too */
-		return;
+		if (spuravoid == 1) {
+			ssb_chipco_pll_write(cc, SSB_PMU1_PLLCTL0, 0x11500008);
+			ssb_chipco_pll_write(cc, SSB_PMU1_PLLCTL1, 0x0C000C06);
+			ssb_chipco_pll_write(cc, SSB_PMU1_PLLCTL2, 0x0F600a08);
+			ssb_chipco_pll_write(cc, SSB_PMU1_PLLCTL3, 0x00000000);
+			ssb_chipco_pll_write(cc, SSB_PMU1_PLLCTL4, 0x2001E920);
+			ssb_chipco_pll_write(cc, SSB_PMU1_PLLCTL5, 0x88888815);
+		} else {
+			ssb_chipco_pll_write(cc, SSB_PMU1_PLLCTL0, 0x11100008);
+			ssb_chipco_pll_write(cc, SSB_PMU1_PLLCTL1, 0x0c000c06);
+			ssb_chipco_pll_write(cc, SSB_PMU1_PLLCTL2, 0x03000a08);
+			ssb_chipco_pll_write(cc, SSB_PMU1_PLLCTL3, 0x00000000);
+			ssb_chipco_pll_write(cc, SSB_PMU1_PLLCTL4, 0x200005c0);
+			ssb_chipco_pll_write(cc, SSB_PMU1_PLLCTL5, 0x88888855);
+		}
+		pmu_ctl = SSB_CHIPCO_PMU_CTL_PLL_UPD;
+		break;
 	default:
 		ssb_printk(KERN_ERR PFX
 			   "Unknown spuravoidance settings for chip 0x%04X, not changing PLL\n",
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] ssb: implement ssb spuravoid for chipid BCM43222
  2013-04-11 12:40 [PATCH] ssb: implement ssb spuravoid for chipid BCM43222 Hauke Mehrtens
@ 2013-04-12  6:29   ` Rafał Miłecki
  0 siblings, 0 replies; 6+ messages in thread
From: Rafał Miłecki @ 2013-04-12  6:29 UTC (permalink / raw)
  To: Hauke Mehrtens; +Cc: linville, linux-wireless, b43-dev

2013/4/11 Hauke Mehrtens <hauke@hauke-m.de>:
> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

Ack

-- 
Rafał

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH] ssb: implement ssb spuravoid for chipid BCM43222
@ 2013-04-12  6:29   ` Rafał Miłecki
  0 siblings, 0 replies; 6+ messages in thread
From: Rafał Miłecki @ 2013-04-12  6:29 UTC (permalink / raw)
  To: Hauke Mehrtens; +Cc: linville, linux-wireless, b43-dev

2013/4/11 Hauke Mehrtens <hauke@hauke-m.de>:
> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

Ack

-- 
Rafa?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] ssb: implement ssb spuravoid for chipid BCM43222
  2013-04-12  6:29   ` Rafał Miłecki
@ 2013-04-24 17:29     ` Hauke Mehrtens
  -1 siblings, 0 replies; 6+ messages in thread
From: Hauke Mehrtens @ 2013-04-24 17:29 UTC (permalink / raw)
  To: linville; +Cc: Rafał Miłecki, linux-wireless, b43-dev

On 04/12/2013 08:29 AM, Rafał Miłecki wrote:
> 2013/4/11 Hauke Mehrtens <hauke@hauke-m.de>:
>> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
> 
> Ack
> 
Hi John,

is there any problem with this patch?

Hauke

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH] ssb: implement ssb spuravoid for chipid BCM43222
@ 2013-04-24 17:29     ` Hauke Mehrtens
  0 siblings, 0 replies; 6+ messages in thread
From: Hauke Mehrtens @ 2013-04-24 17:29 UTC (permalink / raw)
  To: linville; +Cc: Rafał Miłecki, linux-wireless, b43-dev

On 04/12/2013 08:29 AM, Rafa? Mi?ecki wrote:
> 2013/4/11 Hauke Mehrtens <hauke@hauke-m.de>:
>> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
> 
> Ack
> 
Hi John,

is there any problem with this patch?

Hauke

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] ssb: implement ssb spuravoid for chipid BCM43222
  2013-04-24 17:29     ` Hauke Mehrtens
  (?)
@ 2013-04-24 17:33     ` John W. Linville
  -1 siblings, 0 replies; 6+ messages in thread
From: John W. Linville @ 2013-04-24 17:33 UTC (permalink / raw)
  To: Hauke Mehrtens; +Cc: Rafał Miłecki, linux-wireless, b43-dev

On Wed, Apr 24, 2013 at 07:29:21PM +0200, Hauke Mehrtens wrote:
> On 04/12/2013 08:29 AM, Rafał Miłecki wrote:
> > 2013/4/11 Hauke Mehrtens <hauke@hauke-m.de>:
> >> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
> > 
> > Ack
> > 
> Hi John,
> 
> is there any problem with this patch?
> 
> Hauke

Sorry, I haven't been able to get it to apply.  Could you rebase it?

-- 
John W. Linville		Someday the world will need a hero, and you
linville@tuxdriver.com			might be all we have.  Be ready.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-04-24 17:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-11 12:40 [PATCH] ssb: implement ssb spuravoid for chipid BCM43222 Hauke Mehrtens
2013-04-12  6:29 ` Rafał Miłecki
2013-04-12  6:29   ` Rafał Miłecki
2013-04-24 17:29   ` Hauke Mehrtens
2013-04-24 17:29     ` Hauke Mehrtens
2013-04-24 17:33     ` John W. Linville

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.