general_registers
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
general_registers [2025/05/09 01:42] – arisotura | general_registers [2025/05/16 23:07] (current) – arisotura | ||
---|---|---|---|
Line 73: | Line 73: | ||
The boot ROM checks bits 17-18 to determine where to load the second stage bootloader from. Those bits can be controlled by the [[test_points# | The boot ROM checks bits 17-18 to determine where to load the second stage bootloader from. Those bits can be controlled by the [[test_points# | ||
+ | |||
+ | Bit 19 is tied to pad N2 of the SoC. On the gamepad, it is tied to ground through R133 (zero-ohm resistor). | ||
Line 114: | Line 116: | ||
This likely also disables the boot ROM overlay and makes bit 8-15 in register 0xF0000000 read-only. | This likely also disables the boot ROM overlay and makes bit 8-15 in register 0xF0000000 read-only. | ||
- | Weirdly, the boot ROM sets it to 1 without setting it to 0 first. | + | Weirdly, the boot ROM sets it to 1 without setting it to 0 first. This register might just react to 0-to-1 transitions. |
**0xF0000058** | **0xF0000058** | ||
+ | |||
+ | Hardware reset register. | ||
^ Bits ^ Desc. ^ | ^ Bits ^ Desc. ^ | ||
| 0 | Reset IRQ controller | | | 0 | Reset IRQ controller | | ||
| 1 | Reset timers | | | 1 | Reset timers | | ||
- | | 2 | Reset RAM??? (displays static pattern) | + | | 2 | Reset RAM? | |
| 3 | Reset DMA | | | 3 | Reset DMA | | ||
| 4 | Reset SPI | | | 4 | Reset SPI | | ||
Line 136: | Line 140: | ||
| 14 | Reset I2C4 | | | 14 | Reset I2C4 | | ||
| 15 | Reset audio controller | | | 15 | Reset audio controller | | ||
- | | 16 | Reset ??? (0xF0008400) | | + | | 16 | Reset H264 codec (0xF0008400) | |
| 17 | ??? | | | 17 | ??? | | ||
| 18 | Reset ??? (0xF0008800, | | 18 | Reset ??? (0xF0008800, | ||
| 19 | Reset ??? (0xF0008C00) | | | 19 | Reset ??? (0xF0008C00) | | ||
- | | 20 | Reset ??? (0xF0009000) | | + | | 20 | Reset camera controller |
| 21 | Reset LCD controller (0xF0009400, | | 21 | Reset LCD controller (0xF0009400, | ||
Setting a bit to 1 then 0 resets the corresponding hardware component. This register is 22 bits wide. | Setting a bit to 1 then 0 resets the corresponding hardware component. This register is 22 bits wide. | ||
+ | |||
+ | Bit 2 is used by the boot ROM. Using it from code running in RAM will crash the gamepad. This bit might be for resetting RAM, but at the same time, the RAM does somewhat retain old data across consecutive boots, so it's not entirely clear how this works. | ||
general_registers.1746754961.txt.gz · Last modified: 2025/05/09 01:42 by arisotura