Line 416: |
Line 416: |
| | d | | | d |
| | wo | | | wo |
− | | ??? switches up input bits from <code>0123456--</code> to <code>12-0435-</code> then writes them to REG[0x5D] (<code>0xFFC02</code>) | + | | Used in legacy mode to signal events for TWL MCU "emulation" (written to REG[0x5D])? Software then asserts the TWL MCU IRQ pin via [[#LGY_GPIOEMU_MASK|Legacy I/O registers]]. |
| + | bit0: Signal TWL POWER button click |
| + | bit1: Signal TWL reset |
| + | bit2: Signal TWL power off |
| + | bit3: Signal TWL battery low |
| + | bit4: Signal TWL battery empty |
| + | bit5: Signal TWL volume button click |
| |- | | |- |
| | 0x22 | | | 0x22 |