Mainline:Broadcom Kona/BCM590xx/RTC: Difference between revisions

No edit summary
Line 10: Line 10:
!Offset
!Offset
!Purpose
!Purpose
!Mask
!Value
!Value
|-
|-
|0
|0
|Second (<code>SC</code>)
|Second (<code>SC</code>)
|0x3F
|Current second, from 0 to 59.
|Current second, from 0 to 59.
|-
|-
|1
|1
|Minute (<code>MN</code>)
|Minute (<code>MN</code>)
|0x3F
|Current minute of the hour, from 0 to 59.
|Current minute of the hour, from 0 to 59.
|-
|-
|2
|2
|Hour (<code>HR</code>)
|Hour (<code>HR</code>)
|0x1F
|Current hour of the day, from 0 to 23.
|Current hour of the day, from 0 to 23.
|-
|-
|3
|3
|Weekday (<code>WD</code>)
|Weekday (<code>WD</code>)
|Day of week, from 0 to 6. {{speculation|Appears to roll over whenever the day changes; the hardware does not enforce a specific start.}} Sets itself to 0 on reset. {{speculation|The day of month sets itself to 0 on reset, which should be an invalid value, but would suggest that the range is 0 -> Sunday, 6 -> Monday, but there is no downstream code to confirm this.}}
|{{speculation|0x0F}}
|Day of week, from 0 to 6. Appears to roll over whenever the day changes; {{speculation|the hardware does not enforce a specific start.}} Sets itself to 0 on reset. '''Not used in downstream.'''<br>{{speculation|The day of month sets itself to 0 on reset, which should be an invalid value, but would suggest that the range is 0 -> Sunday, 6 -> Monday, but there is no downstream code to confirm this.}}
|-
|-
|4
|4
|Day of month (<code>DT</code>)
|Day of month (<code>DT</code>)
|Day of month, starting from 1. {{speculation|Sets itself to 0 on reset.}}
|0x1F
|Day of month, starting from 1. Sets itself to 0 on reset.
|-
|-
|5
|5
|Month (<code>MT_WD</code>)
|Month (<code>MT_WD</code>)
|0x0F
|Number of the month. 1 to 12 represent January-December.
|Number of the month. 1 to 12 represent January-December.
|-
|-
|6
|6
|Year (<code>YR</code>)
|Year (<code>YR</code>)
|0xFF
|Amount of years since 2000 (0 = 2000, 1 = 2001, etc.)
|Amount of years since 2000 (0 = 2000, 1 = 2001, etc.)
|}
|}