Line 85: |
Line 85: |
| | 0x180 | | | 0x180 |
| | No | | | No |
− | | Power management | + | | ? |
| |- | | |- |
| | 0x78 | | | 0x78 |
Line 100: |
Line 100: |
| | 0x180 | | | 0x180 |
| | Yes | | | Yes |
− | | Power related? | + | | Power management |
| |- | | |- |
| | 0x40 | | | 0x40 |
Line 115: |
Line 115: |
| === Power management === | | === Power management === |
| When registers 0x70 and 0x11 are set to 1 in that order, a power cycle is done. | | When registers 0x70 and 0x11 are set to 1 in that order, a power cycle is done. |
| + | |
| + | When battery is nearly empty on boot, Arm7 reads I2C power management registers 0x0, 0x10, and 0x20. After poking other registers, it reads 0x20 again. After that it does shutdown, clears gfx and NDMA. Then it reads register 0x20 again. Last it writes value 2 to register 0x11, then SPI shutdown. |
| | | |
| {| class="wikitable" border="1" | | {| class="wikitable" border="1" |
Line 120: |
Line 122: |
| ! WIDTH | | ! WIDTH |
| ! DESCRIPTION | | ! DESCRIPTION |
| + | |- |
| + | | 0x0 |
| + | | 1 |
| + | | Might be battery level? |
| + | |- |
| + | | 0x10 |
| + | | 1 |
| + | | Power related? |
| |- | | |- |
| | 0x11 | | | 0x11 |
| | 1 | | | 1 |
− | | System reset register 2. | + | | System reset register 2. Writing value 2 here might power off all twl hw? |
| |- | | |- |
| | 0x12 | | | 0x12 |
| | 1 | | | 1 |
| | Might be MMC bus power related, unknown. | | | Might be MMC bus power related, unknown. |
| + | |- |
| + | | 0x20 |
| + | | 1 |
| + | | Shutdown related? |
| |- | | |- |
| | 0x31 | | | 0x31 |
Line 136: |
Line 150: |
| | 1 | | | 1 |
| | System reset register 1. | | | System reset register 1. |
− | |}
| |
− |
| |
− | === Device 0x4A ===
| |
− |
| |
− | When battery is nearly empty on boot, Arm7 reads I2C device 0x4a registers 0x0, 0x10, and 0x20. After poking other registers, it reads 0x20 again. After that it does shutdown, clears gfx and NDMA. Then it reads register 0x20 again. Last it writes value 2 to register 0x11, then SPI shutdown.
| |
− |
| |
− | {| class="wikitable" border="1"
| |
− | ! REGISTER
| |
− | ! WIDTH
| |
− | ! DESCRIPTION
| |
− | |-
| |
− | | 0x0
| |
− | | 1
| |
− | | Might be battery level?
| |
− | |-
| |
− | | 0x10
| |
− | | 1
| |
− | | Power related?
| |
− | |-
| |
− | | 0x11
| |
− | | 1
| |
− | | Writing value 2 here might power off all twl hw?
| |
− | |-
| |
− | | 0x20
| |
− | | 1
| |
− | | Shutdown related?
| |
| |} | | |} |