The Pedigree Project
0.1
|
#include <Prcm.h>
Public Member Functions | |
void | initialise (uintptr_t base) |
void | SelectClockPER (size_t clock, Clock which) |
void | SetFuncClockPER (size_t clock, bool enabled) |
void | SetIfaceClockPER (size_t clock, bool enabled) |
void | SetFuncClockCORE (size_t n, size_t clock, bool enabled) |
void | SetIfaceClockCORE (size_t n, size_t clock, bool enabled) |
void | WaitCoreIdleStatus (size_t n, size_t clock, bool waitForOn) |
void | WaitPllIdleStatus (size_t n, size_t clock, bool waitForOn) |
void | SelectClockCORE (size_t clock, Clock which) |
void | SetClockPLL (size_t n, size_t value) |
void | SelectClockPLL (size_t n, size_t value) |
Static Public Member Functions | |
static Prcm & | instance () |
Private Attributes | |
MemoryRegion | m_Base |
Static Private Attributes | |
static Prcm | m_Instance |
PRCM - Power, Reset and Clock Management - abstraction
Power management
Reset
void Prcm::initialise | ( | uintptr_t | base | ) |
Initialises the PRCM from a specific base
Definition at line 36 of file Prcm.cc.
References PhysicalMemoryManager::continuous, PhysicalMemoryManager::instance(), VirtualAddressSpace::KernelMode, and VirtualAddressSpace::Write.
Referenced by ArmBeagle::initialise2().
void Prcm::SelectClockCORE | ( | size_t | clock, |
Clock | which | ||
) |
Handle source clock selection for CORE
Definition at line 78 of file Prcm.cc.
References ERROR.
Referenced by UsbUlpi::initialise().
void Prcm::SelectClockPER | ( | size_t | clock, |
Clock | which | ||
) |
Handle source clock selection for PER
Definition at line 50 of file Prcm.cc.
References ERROR.
Referenced by GPTimer::initialise().
void Prcm::SelectClockPLL | ( | size_t | n, |
size_t | value | ||
) |
Clock selection for PLL. The register contents must be set by the programmer.
Definition at line 308 of file Prcm.cc.
References ERROR.
Referenced by UsbUlpi::initialise().
void Prcm::SetClockPLL | ( | size_t | n, |
size_t | value | ||
) |
Enables or disables a PLL clock (programmer chooses value)
Definition at line 335 of file Prcm.cc.
References ERROR, and WARNING.
Referenced by UsbUlpi::initialise().
void Prcm::SetFuncClockCORE | ( | size_t | n, |
size_t | clock, | ||
bool | enabled | ||
) |
Handle functional clock enable/disable for CORE
Definition at line 166 of file Prcm.cc.
References ERROR, and WARNING.
Referenced by UsbUlpi::initialise().
void Prcm::SetFuncClockPER | ( | size_t | clock, |
bool | enabled | ||
) |
Handle functional clock enable/disable for PER
Definition at line 110 of file Prcm.cc.
References ERROR.
Referenced by GPTimer::initialise().
void Prcm::SetIfaceClockCORE | ( | size_t | n, |
size_t | clock, | ||
bool | enabled | ||
) |
Handle interface clock enable/disable for CORE
Definition at line 200 of file Prcm.cc.
References ERROR, and WARNING.
Referenced by UsbUlpi::initialise().
void Prcm::SetIfaceClockPER | ( | size_t | clock, |
bool | enabled | ||
) |
Handle interface clock enable/disable for PER
Definition at line 138 of file Prcm.cc.
References ERROR.
Referenced by GPTimer::initialise().
void Prcm::WaitCoreIdleStatus | ( | size_t | n, |
size_t | clock, | ||
bool | waitForOn | ||
) |
void Prcm::WaitPllIdleStatus | ( | size_t | n, |
size_t | clock, | ||
bool | waitForOn | ||
) |