aboutsummaryrefslogtreecommitdiff
path: root/sys/mips/broadcom
diff options
context:
space:
mode:
authorMichael Zhilin <mizhka@FreeBSD.org>2017-05-28 12:05:16 +0000
committerMichael Zhilin <mizhka@FreeBSD.org>2017-05-28 12:05:16 +0000
commit97721228b8df7b9fdb9bb7cc0fd2acec37a58249 (patch)
treede3378b91ff4a085626d5e897071760708ff9396 /sys/mips/broadcom
parent34498213768e9727097571efa32a3638d7c0b42c (diff)
downloadsrc-97721228b8df7b9fdb9bb7cc0fd2acec37a58249.tar.gz
src-97721228b8df7b9fdb9bb7cc0fd2acec37a58249.zip
[mips] [bhnd] Support of old PMU for BMIPS and siba SoC
- Fix typo of PLL Type 4 - Don't panic of frequency getters Submitted by: Hiroki Mori <yamori813@yahoo.co.jp> Differential Revision: https://reviews.freebsd.org/D10967
Notes
Notes: svn path=/head/; revision=319069
Diffstat (limited to 'sys/mips/broadcom')
-rw-r--r--sys/mips/broadcom/bcm_pmu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/mips/broadcom/bcm_pmu.c b/sys/mips/broadcom/bcm_pmu.c
index 46fa70da5902..e9d6d4d2ab3f 100644
--- a/sys/mips/broadcom/bcm_pmu.c
+++ b/sys/mips/broadcom/bcm_pmu.c
@@ -208,7 +208,7 @@ bcm_get_uart_rclk(struct bcm_platform *bp)
uint64_t
bcm_get_alpfreq(struct bcm_platform *bp) {
if (!bcm_has_pmu(bp))
- panic("%s requires PMU\n", __FUNCTION__);
+ return (BHND_PMU_ALP_CLOCK);
return (bhnd_pmu_alp_clock(bcm_get_pmu(bp)));
}
@@ -217,7 +217,7 @@ bcm_get_alpfreq(struct bcm_platform *bp) {
uint64_t
bcm_get_ilpfreq(struct bcm_platform *bp) {
if (!bcm_has_pmu(bp))
- panic("%s requires PMU\n", __FUNCTION__);
+ return (BHND_PMU_ILP_CLOCK);
return (bhnd_pmu_ilp_clock(bcm_get_pmu(bp)));
}