diff options
Diffstat (limited to 'drivers/bcma/driver_chipcommon_pmu.c')
-rw-r--r-- | drivers/bcma/driver_chipcommon_pmu.c | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/drivers/bcma/driver_chipcommon_pmu.c b/drivers/bcma/driver_chipcommon_pmu.c index 7e88fffaf3f5..edca73af3cc0 100644 --- a/drivers/bcma/driver_chipcommon_pmu.c +++ b/drivers/bcma/driver_chipcommon_pmu.c | |||
@@ -174,19 +174,35 @@ u32 bcma_pmu_get_alp_clock(struct bcma_drv_cc *cc) | |||
174 | struct bcma_bus *bus = cc->core->bus; | 174 | struct bcma_bus *bus = cc->core->bus; |
175 | 175 | ||
176 | switch (bus->chipinfo.id) { | 176 | switch (bus->chipinfo.id) { |
177 | case BCMA_CHIP_ID_BCM4313: | ||
178 | case BCMA_CHIP_ID_BCM43224: | ||
179 | case BCMA_CHIP_ID_BCM43225: | ||
180 | case BCMA_CHIP_ID_BCM43227: | ||
181 | case BCMA_CHIP_ID_BCM43228: | ||
182 | case BCMA_CHIP_ID_BCM4331: | ||
183 | case BCMA_CHIP_ID_BCM43421: | ||
184 | case BCMA_CHIP_ID_BCM43428: | ||
185 | case BCMA_CHIP_ID_BCM43431: | ||
177 | case BCMA_CHIP_ID_BCM4716: | 186 | case BCMA_CHIP_ID_BCM4716: |
178 | case BCMA_CHIP_ID_BCM4748: | ||
179 | case BCMA_CHIP_ID_BCM47162: | 187 | case BCMA_CHIP_ID_BCM47162: |
180 | case BCMA_CHIP_ID_BCM4313: | 188 | case BCMA_CHIP_ID_BCM4748: |
181 | case BCMA_CHIP_ID_BCM5357: | ||
182 | case BCMA_CHIP_ID_BCM4749: | 189 | case BCMA_CHIP_ID_BCM4749: |
190 | case BCMA_CHIP_ID_BCM5357: | ||
183 | case BCMA_CHIP_ID_BCM53572: | 191 | case BCMA_CHIP_ID_BCM53572: |
192 | case BCMA_CHIP_ID_BCM6362: | ||
184 | /* always 20Mhz */ | 193 | /* always 20Mhz */ |
185 | return 20000 * 1000; | 194 | return 20000 * 1000; |
186 | case BCMA_CHIP_ID_BCM5356: | ||
187 | case BCMA_CHIP_ID_BCM4706: | 195 | case BCMA_CHIP_ID_BCM4706: |
196 | case BCMA_CHIP_ID_BCM5356: | ||
188 | /* always 25Mhz */ | 197 | /* always 25Mhz */ |
189 | return 25000 * 1000; | 198 | return 25000 * 1000; |
199 | case BCMA_CHIP_ID_BCM43460: | ||
200 | case BCMA_CHIP_ID_BCM4352: | ||
201 | case BCMA_CHIP_ID_BCM4360: | ||
202 | if (cc->status & BCMA_CC_CHIPST_4360_XTAL_40MZ) | ||
203 | return 40000 * 1000; | ||
204 | else | ||
205 | return 20000 * 1000; | ||
190 | default: | 206 | default: |
191 | bcma_warn(bus, "No ALP clock specified for %04X device, pmu rev. %d, using default %d Hz\n", | 207 | bcma_warn(bus, "No ALP clock specified for %04X device, pmu rev. %d, using default %d Hz\n", |
192 | bus->chipinfo.id, cc->pmu.rev, BCMA_CC_PMU_ALP_CLOCK); | 208 | bus->chipinfo.id, cc->pmu.rev, BCMA_CC_PMU_ALP_CLOCK); |