earlgrey/pwrmgr.rs
1// Licensed under the Apache License, Version 2.0 or the MIT License.
2// SPDX-License-Identifier: Apache-2.0 OR MIT
3// Copyright Tock Contributors 2022.
4
5use crate::registers::top_earlgrey::PWRMGR_AON_BASE_ADDR;
6use kernel::utilities::StaticRef;
7use lowrisc::pwrmgr::PwrMgrRegisters;
8
9pub(crate) const PWRMGR_BASE: StaticRef<PwrMgrRegisters> =
10 unsafe { StaticRef::new(PWRMGR_AON_BASE_ADDR as *const PwrMgrRegisters) };