Mainline:Broadcom Kona/BCM590xx/RTC: Difference between revisions
No edit summary |
|||
Line 1: | Line 1: | ||
The | The BCM590XX PMUs provide a real-time clock. | ||
== Time data == | == Time data == | ||
Line 34: | Line 34: | ||
|Amount of years since 2000 (0 = 2000, 1 = 2001, etc.) | |Amount of years since 2000 (0 = 2000, 1 = 2001, etc.) | ||
|} | |} | ||
This exact format is used for both the time and alarm registers. | |||
TODO: What happens on year overflow? Is there a reason as to why the downstream driver limits the values it gets? | TODO: What happens on year overflow? Is there a reason as to why the downstream driver limits the values it gets? | ||
== Getting the time == | |||
On the BCM59054 and BCM59056, time registers start at 0xE0 and follow the format outlined above. | |||
There are interrupts for updates of each of the time values. | |||
== Alarm == | |||
On the BCM59054 and BCM59056, the alarm registers start at 0xE7. | |||
There is an interrupt that is triggered when the alarm is triggered. | |||
== Calibration == | == Calibration == |