aboutsummaryrefslogtreecommitdiff
path: root/sys/mips/broadcom
diff options
context:
space:
mode:
authorLandon J. Fuller <landonf@FreeBSD.org>2016-08-27 00:03:02 +0000
committerLandon J. Fuller <landonf@FreeBSD.org>2016-08-27 00:03:02 +0000
commitf90f4b65322a1d76ae934c5aa9e2bfbc2d9f5477 (patch)
treeee14bcf58058e9230de32f698cfe7f92ea519a74 /sys/mips/broadcom
parentc4676089b0c59d660bdea07acda6d9ccacb8b805 (diff)
downloadsrc-f90f4b65322a1d76ae934c5aa9e2bfbc2d9f5477.tar.gz
src-f90f4b65322a1d76ae934c5aa9e2bfbc2d9f5477.zip
bhnd(4): Initial PMU/PWRCTL power and clock management support.
- Added bhnd_pmu driver implementations for PMU and PWRCTL chipsets, derived from Broadcom's ISC-licensed HND code. - Added bhnd bus-level support for routing per-core clock and resource power requests to the PMU device. - Lift ChipCommon support out into the bhnd module, dropping bhnd_chipc. Reviewed by: mizhka Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D7492
Notes
Notes: svn path=/head/; revision=304870
Diffstat (limited to 'sys/mips/broadcom')
-rw-r--r--sys/mips/broadcom/bcm_machdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/mips/broadcom/bcm_machdep.c b/sys/mips/broadcom/bcm_machdep.c
index f03c72b6cebf..2d288a15ecd8 100644
--- a/sys/mips/broadcom/bcm_machdep.c
+++ b/sys/mips/broadcom/bcm_machdep.c
@@ -81,6 +81,7 @@ __FBSDID("$FreeBSD$");
#include <dev/bhnd/siba/sibavar.h>
#include <dev/bhnd/cores/chipc/chipcreg.h>
+#include <dev/bhnd/cores/pmu/bhnd_pmureg.h>
#include "bcm_machdep.h"
#include "bcm_mips_exts.h"
@@ -342,7 +343,7 @@ platform_reset(void)
/* Set watchdog (PMU or ChipCommon) */
if (bcm_get_platform()->pmu_addr != 0x0) {
- BCM_CHIPC_WRITE_4(CHIPC_PMU_WATCHDOG, 1);
+ BCM_CHIPC_WRITE_4(BHND_PMU_WATCHDOG, 1);
} else
BCM_CHIPC_WRITE_4(CHIPC_WATCHDOG, 1);