Line 70: |
Line 70: |
| | [[#CFG11_SPI_CNT|CFG11_SPI_CNT]] | | | [[#CFG11_SPI_CNT|CFG11_SPI_CNT]] |
| | 0x101401C0 | | | 0x101401C0 |
− | | 4 | + | | 2 |
| | [[SPI Services]], TwlBg | | | [[SPI Services]], TwlBg |
| |- | | |- |
Line 164: |
Line 164: |
| |- | | |- |
| | style="background: green" | Yes | | | style="background: green" | Yes |
− | | ? | + | | [[#CFG11_TWLAGB_HIDEMU_MASK|CFG11_TWLAGB_HIDEMU_MASK]] |
| | 0x10141110 | | | 0x10141110 |
| | 2 | | | 2 |
Line 170: |
Line 170: |
| |- | | |- |
| | style="background: green" | Yes | | | style="background: green" | Yes |
− | | ? | + | | [[#CFG11_TWLAGB_HIDEMU_PAD|CFG11_TWLAGB_HIDEMU_PAD]] |
| | 0x10141112 | | | 0x10141112 |
| | 2 | | | 2 |
Line 545: |
Line 545: |
| | Wifi-related? Set to 1 very early in NWM-module. | | | Wifi-related? Set to 1 very early in NWM-module. |
| |} | | |} |
| + | |
| + | ==CFG11_TWLAGB_HIDEMU_MASK== |
| + | Set bits will use the corresponding values from [[#CFG11_TWLAGB_HIDEMU_PAD|CFG11_TWLAGB_HIDEMU_PAD]] instead of allowing the hardware to read it from [[HID_Registers#HID_PAD|HID_PAD]]. |
| + | |
| + | This is set to 0x1FFF (all buttons and the debug key) and [[#CFG11_TWLAGB_HIDEMU_PAD|CFG11_TWLAGB_HIDEMU_PAD]] is set to 0 when the "Close this software and return to HOME Menu?" dialog is shown to prevent the button presses from propagating to the DS/GBA CPU. |
| + | |
| + | ==CFG11_TWLAGB_HIDEMU_PAD== |
| + | Works the same way as [[HID_Registers#HID_PAD|HID_PAD]], but the values set here are only replaced in the HID_PAD seen by the DS/GBA CPU when the corresponding bits in [[#CFG11_TWLAGB_HIDEMU_MASK|CFG11_TWLAGB_HIDEMU_MASK]] are set. |
| | | |
| ==CFG11_GPU_CNT== | | ==CFG11_GPU_CNT== |
Line 550: |
Line 558: |
| | | |
| Bit0: main (?) nRESET (active low), unset to reset (when not on reset, external GPU registers at 0x10400000+ are enabled). | | Bit0: main (?) nRESET (active low), unset to reset (when not on reset, external GPU registers at 0x10400000+ are enabled). |
| + | When this is unset VRAM is not accessible and triggers exceptions. |
| + | |
| Bits 1..6: other nRESET bits. | | Bits 1..6: other nRESET bits. |
− | Bit16: Turn on LCD backlight. | + | |
| + | Bit16: Enable/Turn on LCD backlight. |
| | | |
| PDN uses a 12 Arm11 cycle delay to deassert reset. | | PDN uses a 12 Arm11 cycle delay to deassert reset. |