blob: 23db221b7bbef8eaee033e8e16dae576338d64d5 [file] [log] [blame]
use kernel::common::StaticRef;
use lowrisc::pwrmgr::{PwrMgr, PwrMgrRegisters};
pub static mut PWRMGR: PwrMgr = PwrMgr::new(PWRMGR_BASE);
const PWRMGR_BASE: StaticRef<PwrMgrRegisters> =
unsafe { StaticRef::new(0x4040_0000 as *const PwrMgrRegisters) };