diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2011-07-22 19:20:10 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-08-08 14:29:28 -0400 |
commit | e3afe0e5be7576ac1282ea9fbbc9b352bb379227 (patch) | |
tree | 0b74e8bd5e45b2d50f9fa2033674a00aeac5f6ae /drivers/bcma/driver_chipcommon_pmu.c | |
parent | 21e0534ad7415559bb8dee0dc00e39646fed83c9 (diff) |
bcma: add serial console support
This adds support for serial console to bcma, when operating on an SoC.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/bcma/driver_chipcommon_pmu.c')
-rw-r--r-- | drivers/bcma/driver_chipcommon_pmu.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/drivers/bcma/driver_chipcommon_pmu.c b/drivers/bcma/driver_chipcommon_pmu.c index fcc63db0ce75..354caeea6397 100644 --- a/drivers/bcma/driver_chipcommon_pmu.c +++ b/drivers/bcma/driver_chipcommon_pmu.c | |||
@@ -136,3 +136,29 @@ void bcma_pmu_init(struct bcma_drv_cc *cc) | |||
136 | bcma_pmu_swreg_init(cc); | 136 | bcma_pmu_swreg_init(cc); |
137 | bcma_pmu_workarounds(cc); | 137 | bcma_pmu_workarounds(cc); |
138 | } | 138 | } |
139 | |||
140 | u32 bcma_pmu_alp_clock(struct bcma_drv_cc *cc) | ||
141 | { | ||
142 | struct bcma_bus *bus = cc->core->bus; | ||
143 | |||
144 | switch (bus->chipinfo.id) { | ||
145 | case 0x4716: | ||
146 | case 0x4748: | ||
147 | case 47162: | ||
148 | case 0x4313: | ||
149 | case 0x5357: | ||
150 | case 0x4749: | ||
151 | case 53572: | ||
152 | /* always 20Mhz */ | ||
153 | return 20000 * 1000; | ||
154 | case 0x5356: | ||
155 | case 0x5300: | ||
156 | /* always 25Mhz */ | ||
157 | return 25000 * 1000; | ||
158 | default: | ||
159 | pr_warn("No ALP clock specified for %04X device, " | ||
160 | "pmu rev. %d, using default %d Hz\n", | ||
161 | bus->chipinfo.id, cc->pmu.rev, BCMA_CC_PMU_ALP_CLOCK); | ||
162 | } | ||
163 | return BCMA_CC_PMU_ALP_CLOCK; | ||
164 | } | ||