diff options
author | raj <raj@FreeBSD.org> | 2009-08-25 09:35:50 +0000 |
---|---|---|
committer | raj <raj@FreeBSD.org> | 2009-08-25 09:35:50 +0000 |
commit | f9b8acbebb3e463e657f9403968ba81908387eb2 (patch) | |
tree | eacd5fd6fbbc9a0e6f45f460271e3b4e7960389b /sys/arm/mv/mvvar.h | |
parent | c1a2d532dd31a8096b7fbf2046d6494417284551 (diff) | |
download | FreeBSD-src-f9b8acbebb3e463e657f9403968ba81908387eb2.zip FreeBSD-src-f9b8acbebb3e463e657f9403968ba81908387eb2.tar.gz |
Properly handle initial state of power mgmt.
Modules on Marvell SOC can be selectively PM-disabled, and we must not access
disabled devices' registers (attempt to initialize them) unconditionally, as
this leads to the system hang. This patch introduces graceful handling of the
PM state during devices init.
Submitted by: Michal Hajduk
Obtained from: Semihalf
Diffstat (limited to 'sys/arm/mv/mvvar.h')
-rw-r--r-- | sys/arm/mv/mvvar.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/arm/mv/mvvar.h b/sys/arm/mv/mvvar.h index 9274dcf..7d7de32 100644 --- a/sys/arm/mv/mvvar.h +++ b/sys/arm/mv/mvvar.h @@ -135,6 +135,7 @@ void soc_id(uint32_t *dev, uint32_t *rev); void soc_identify(void); void soc_dump_decode_win(void); uint32_t soc_power_ctrl_get(uint32_t mask); +void soc_power_ctrl_set(uint32_t mask); int decode_win_cpu_set(int target, int attr, vm_paddr_t base, uint32_t size, int remap); |