Line 57: |
Line 57: |
| ! Description | | ! Description |
| |- | | |- |
− | | RTC_CNT (?) | + | | [[#RTC_CNT_(0x10147100)|RTC_CNT]] |
| | 0x10147100 | | | 0x10147100 |
| | 2 | | | 2 |
− | | ??? | + | | Control register |
| |- | | |- |
− | | RTC_? | + | | RTC_REG_STAT1 |
| | 0x10147110 | | | 0x10147110 |
| | 1 | | | 1 |
− | | ??? | + | | Rtc status register 1 (command 0). Bitswapped |
| |- | | |- |
− | | RTC_? | + | | RTC_REG_STAT2 |
| | 0x10147111 | | | 0x10147111 |
| | 1 | | | 1 |
− | | ??? | + | | Rtc status register 2 (command 1). Bitswapped |
| |- | | |- |
− | | RTC_RAW | + | | RTC_REG_CLKADJ |
| + | | 0x10147112 |
| + | | 1 |
| + | | Rtc clock adjustment register (command 6). Bitswapped |
| + | |- |
| + | | RTC_REG_FREE |
| + | | 0x10147113 |
| + | | 1 |
| + | | The free general purpose rtc register (command 7). Bitswapped |
| + | |- |
| + | | RTC_REG_TIME1 |
| | 0x10147120 | | | 0x10147120 |
| | 4 | | | 4 |
− | | Byte-wise bit-swapped (bit7 is bit0, etc.) BCD RTC (byte0 = seconds, byte1 = minutes, byte2 = hours, byte3 = day(?)) | + | | Byte-wise bit-swapped (bit7 is bit0, etc.) BCD RTC (byte0 = seconds, byte1 = minutes, byte2 = hours, byte3 = day of week) |
| |- | | |- |
− | | RTC_? | + | | RTC_REG_TIME2 |
| | 0x10147124 | | | 0x10147124 |
− | | 4 | + | | 4 (3?) |
− | | RTC offset? | + | | Day, month and year all byte-wise bit-swapped |
| |- | | |- |
− | | RTC_? | + | | RTC_REG_ALRMTIM1 |
| | 0x10147130 | | | 0x10147130 |
− | | 4 | + | | 4 (3?) |
− | | ??? | + | | Rtc alarm time register 1 (command 4). Byte-wise bit-swapped |
| |- | | |- |
− | | RTC_? | + | | RTC_REG_ALRMTIM2 |
| | 0x10147134 | | | 0x10147134 |
− | | 4 | + | | 4 (3?) |
− | | ??? | + | | Rtc alarm time register 2 (command 5). Byte-wise bit-swapped |
| |- | | |- |
− | | RTC_? | + | | RTC_REG_COUNT |
| | 0x10147140 | | | 0x10147140 |
− | | 4 | + | | 4 (3?) |
− | | Some sort of byte-wise bit-swapped seconds counter | + | | Rtc dsi counter register (ex command 0). Byte-wise bit-swapped |
| |- | | |- |
− | | RTC_? | + | | RTC_REG_FOUT1 |
| | 0x10147150 | | | 0x10147150 |
| | 1 | | | 1 |
− | | ??? | + | | Rtc dsi fout register 1 (ex command 1). Bitswapped |
| |- | | |- |
− | | RTC_? | + | | RTC_REG_FOUT2 |
| | 0x10147151 | | | 0x10147151 |
| | 1 | | | 1 |
− | | ??? | + | | Rtc dsi fout register 2 (ex command 2). Bitswapped |
| |- | | |- |
− | | RTC_? | + | | RTC_REG_ALRMDAT1 |
| | 0x10147160 | | | 0x10147160 |
− | | 4 | + | | 4 (3?) |
− | | ??? | + | | Rtc dsi alarm date register 1 (ex command 4). Byte-wise bit-swapped |
| |- | | |- |
− | | RTC_? | + | | RTC_REG_ALRMDAT2 |
| | 0x10147164 | | | 0x10147164 |
− | | 4 | + | | 4 (3?) |
− | | ??? | + | | Rtc dsi alarm date register 2 (ex command 5). Byte-wise bit-swapped |
| |- | | |- |
| |} | | |} |
Line 219: |
Line 229: |
| | 1-15 | | | 1-15 |
| | Unused by GPIO-sysmodule and TwlBg. | | | Unused by GPIO-sysmodule and TwlBg. |
| + | |} |
| + | |
| + | == Legacy RTC == |
| + | === RTC_CNT (0x10147100) === |
| + | {| class="wikitable" border="1" |
| + | ! Bit |
| + | ! Description |
| + | |- |
| + | | 0 |
| + | | Latch STAT1 |
| + | |- |
| + | | 1 |
| + | | Latch STAT2 |
| + | |- |
| + | | 2 |
| + | | Latch CLKADJ |
| + | |- |
| + | | 3 |
| + | | Latch FREE |
| + | |- |
| + | | 4 |
| + | | Latch TIME |
| + | |- |
| + | | 5 |
| + | | Latch ALRMTIM1 |
| + | |- |
| + | | 6 |
| + | | Latch ALRMTIM2 |
| + | |- |
| + | | 7 |
| + | | Latch COUNT |
| + | |- |
| + | | 8 |
| + | | Latch FOUT1 |
| + | |- |
| + | | 9 |
| + | | Latch FOUT2 |
| + | |- |
| + | | 10 |
| + | | Latch ALRMDAT1 |
| + | |- |
| + | | 11 |
| + | | Latch ALRMDAT2 |
| + | |- |
| + | | 12 |
| + | | ARM7 Busy? This may be chipselect |
| + | |- |
| + | | 13 |
| + | | ARM7 write command received? (writing 1 clears it seems) |
| + | |- |
| + | | 14 |
| + | | ARM7 read command recieved? (writing 1 clears it seems) |
| + | |- |
| + | | 15 |
| + | | DS SIO SI pin (rtc irq pin) |
| |} | | |} |
| | | |