|
FreeNOS
|
Allwinner Clock Control Unit (CCU) More...
#include <SunxiClockControl.h>
Public Types | |
| enum | Clock { ClockEmacTx = 1, ClockEphy } |
| Clock identifiers. More... | |
| enum | Reset { ResetEmacTx = 1, ResetEphy } |
| Reset signal identifiers. More... | |
| enum | Result { Success, IOError, InvalidArgument } |
| Result codes. More... | |
Public Member Functions | |
| Result | initialize () |
| Perform initialization. More... | |
| Result | enable (const Clock clock) |
| Enable a clock. More... | |
| Result | deassert (const Reset reset) |
| De-assert a reset signal. More... | |
Private Types | |
| enum | Registers |
| Hardware registers. More... | |
Private Attributes | |
| Arch::IO | m_io |
| Memory I/O object. More... | |
Static Private Attributes | |
| static const Address | IOBase = 0x01C20000 |
| Physical base memory address of the CCU module. More... | |
Allwinner Clock Control Unit (CCU)
Definition at line 38 of file SunxiClockControl.h.
Clock identifiers.
| Enumerator | |
|---|---|
| ClockEmacTx | |
| ClockEphy | |
Definition at line 59 of file SunxiClockControl.h.
|
private |
Hardware registers.
Definition at line 50 of file SunxiClockControl.h.
Reset signal identifiers.
| Enumerator | |
|---|---|
| ResetEmacTx | |
| ResetEphy | |
Definition at line 68 of file SunxiClockControl.h.
Result codes.
| Enumerator | |
|---|---|
| Success | |
| IOError | |
| InvalidArgument | |
Definition at line 77 of file SunxiClockControl.h.
| SunxiClockControl::Result SunxiClockControl::deassert | ( | const Reset | reset | ) |
De-assert a reset signal.
| reset | Reset signal identification |
Definition at line 65 of file SunxiClockControl.cpp.
References DEBUG, ERROR, InvalidArgument, m_io, ResetEmacTx, ResetEphy, ARMIO::set(), and Success.
Referenced by Sun8iEmac::resetPhy().
| SunxiClockControl::Result SunxiClockControl::enable | ( | const Clock | clock | ) |
Enable a clock.
| clock | Clock identification |
Definition at line 37 of file SunxiClockControl.cpp.
References ClockEmacTx, ClockEphy, DEBUG, ERROR, InvalidArgument, m_io, ARMIO::set(), and Success.
Referenced by Sun8iEmac::resetPhy().
| SunxiClockControl::Result SunxiClockControl::initialize | ( | ) |
Perform initialization.
Definition at line 21 of file SunxiClockControl.cpp.
References DEBUG, Memory::Device, ERROR, IO::getBase(), IOBase, IOError, m_io, IO::map(), PAGESIZE, Memory::Readable, IO::setBase(), IO::Success, Success, Memory::User, and Memory::Writable.
Referenced by Sun8iEmac::initialize().
|
staticprivate |
Physical base memory address of the CCU module.
Definition at line 43 of file SunxiClockControl.h.
Referenced by initialize().
|
private |
Memory I/O object.
Definition at line 114 of file SunxiClockControl.h.
Referenced by deassert(), enable(), and initialize().
1.8.17