driver_chipcommon.c (e5451c8f8330e03ad3cfa16048b4daf961af434f) | driver_chipcommon.c (b8b6069cf2087545fe53ec920e8353133e9a70bf) |
---|---|
1/* 2 * Sonics Silicon Backplane 3 * Broadcom ChipCommon core driver 4 * 5 * Copyright 2005, Broadcom Corporation 6 * Copyright 2006, 2007, Michael Buesch <m@bues.ch> 7 * Copyright 2012, Hauke Mehrtens <hauke@hauke-m.de> 8 * 9 * Licensed under the GNU/GPL. See COPYING for details. 10 */ 11 | 1/* 2 * Sonics Silicon Backplane 3 * Broadcom ChipCommon core driver 4 * 5 * Copyright 2005, Broadcom Corporation 6 * Copyright 2006, 2007, Michael Buesch <m@bues.ch> 7 * Copyright 2012, Hauke Mehrtens <hauke@hauke-m.de> 8 * 9 * Licensed under the GNU/GPL. See COPYING for details. 10 */ 11 |
12#include "ssb_private.h" 13 |
|
12#include <linux/ssb/ssb.h> 13#include <linux/ssb/ssb_regs.h> 14#include <linux/export.h> 15#include <linux/pci.h> 16#include <linux/bcm47xx_wdt.h> 17 | 14#include <linux/ssb/ssb.h> 15#include <linux/ssb/ssb_regs.h> 16#include <linux/export.h> 17#include <linux/pci.h> 18#include <linux/bcm47xx_wdt.h> 19 |
18#include "ssb_private.h" | |
19 | 20 |
20 | |
21/* Clock sources */ 22enum ssb_clksrc { 23 /* PCI clock */ 24 SSB_CHIPCO_CLKSRC_PCI, 25 /* Crystal slow clock oscillator */ 26 SSB_CHIPCO_CLKSRC_XTALOS, 27 /* Low power oscillator */ 28 SSB_CHIPCO_CLKSRC_LOPWROS, --- 320 unchanged lines hidden (view full) --- 349{ 350 if (!cc->dev) 351 return; /* We don't have a ChipCommon */ 352 353 spin_lock_init(&cc->gpio_lock); 354 355 if (cc->dev->id.revision >= 11) 356 cc->status = chipco_read32(cc, SSB_CHIPCO_CHIPSTAT); | 21/* Clock sources */ 22enum ssb_clksrc { 23 /* PCI clock */ 24 SSB_CHIPCO_CLKSRC_PCI, 25 /* Crystal slow clock oscillator */ 26 SSB_CHIPCO_CLKSRC_XTALOS, 27 /* Low power oscillator */ 28 SSB_CHIPCO_CLKSRC_LOPWROS, --- 320 unchanged lines hidden (view full) --- 349{ 350 if (!cc->dev) 351 return; /* We don't have a ChipCommon */ 352 353 spin_lock_init(&cc->gpio_lock); 354 355 if (cc->dev->id.revision >= 11) 356 cc->status = chipco_read32(cc, SSB_CHIPCO_CHIPSTAT); |
357 ssb_dbg("chipcommon status is 0x%x\n", cc->status); | 357 dev_dbg(cc->dev->dev, "chipcommon status is 0x%x\n", cc->status); |
358 359 if (cc->dev->id.revision >= 20) { 360 chipco_write32(cc, SSB_CHIPCO_GPIOPULLUP, 0); 361 chipco_write32(cc, SSB_CHIPCO_GPIOPULLDOWN, 0); 362 } 363 364 ssb_pmu_init(cc); 365 chipco_powercontrol_init(cc); --- 332 unchanged lines hidden --- | 358 359 if (cc->dev->id.revision >= 20) { 360 chipco_write32(cc, SSB_CHIPCO_GPIOPULLUP, 0); 361 chipco_write32(cc, SSB_CHIPCO_GPIOPULLDOWN, 0); 362 } 363 364 ssb_pmu_init(cc); 365 chipco_powercontrol_init(cc); --- 332 unchanged lines hidden --- |