Changes

Jump to navigation Jump to search
717 bytes added ,  19:13, 20 March 2022
xdma config
Line 32: Line 32:  
|-
 
|-
 
| style="background: green" | Yes
 
| style="background: green" | Yes
| ?
+
| [[#CFG9_XDMA_CNT|CFG9_XDMA_CNT]]
 
| 0x10000008
 
| 0x10000008
 
| 1
 
| 1
Line 161: Line 161:  
|}
 
|}
   −
== 0x10000008 ==
+
== CFG9_XDMA_CNT ==
 +
 
 +
Write 1 to enable XDMA for the device, 0 to disable. Always enabled for CTRCARD (ids 0 and 1), NTRCARD (id 8), and SHA (id 6 for infifo and 7 for outfifo).
 +
 
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
 
!  Bit
 
!  Bit
Line 167: Line 170:  
!  Used by
 
!  Used by
 
|-
 
|-
| 1-0
+
| 0
| ?
+
| SDIO controller 1 (eMMC and usually SD card; XDMA device ID: 2)
 +
|
 +
|-
 +
| 1
 +
| SDIO controller 3 (SD card if configured so; ID: 3)
 
|
 
|
 
|-
 
|-
| 3-2
+
| 2
| AES related? Value 3 written after write to AES_CTL.
+
| AES Input FIFO (ID: 4)
 +
| Boot9, Process9, TwlProcess9
 +
|-
 +
| 3
 +
| AES Output FIFO (ID: 5)
 
| Boot9, Process9, TwlProcess9
 
| Boot9, Process9, TwlProcess9
 
|-
 
|-
Line 191: Line 202:  
|-
 
|-
 
| 8
 
| 8
| Enable gamecard eject IRQ, maybe?
+
| 1 = Switch to [[SPICARD_Registers|SPICARD]] interface (savegames).
 
| Process9
 
| Process9
 
|}
 
|}
Line 216: Line 227:     
== CFG9_SDMMCCTL ==
 
== CFG9_SDMMCCTL ==
CFG9_SDMMCCTL controls power. Also controls SD card detect?
+
This register controls power of multiple ports/controllers and allows to map controller 3 to ARM9 or ARM11. The SD card can be accessed on ARM11 by setting bit 8 and clearing bit 9.
    
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
Line 224: Line 235:  
|-
 
|-
 
| 0
 
| 0
| SD slot power.
+
| Controller 1/3 port 0 power (SD card) (1=off)
 
| Process9
 
| Process9
 
|-
 
|-
 
| 1
 
| 1
| eMMC power? NAND init hangs if set.
+
| Controller 1 port 1 power (eMMC) (1=off)
 
| Process9
 
| Process9
 
|-
 
|-
 +
| 2
 +
| Controller 2 port 0 power (WiFi SDIO) (1=off)
 +
| Process9
 
|-
 
|-
| 2-3
+
| 3
| Other power supplies?
+
| Controller 3 port 1 power? Set at cold boot.
| Process9
+
| -
 +
|-
 +
| 4-5
 +
| Unused.
 +
| -
 
|-
 
|-
 
| 6
 
| 6
| Never used by anything. Set at cold boot.
+
| Wifi port related? Pull up? Set at cold boot.
|
+
| -
 
|-
 
|-
 
| 8
 
| 8
| ? This bit seems to do nothing.
+
| Controller 3 mapping (0=ARM9 0x10007000, 1=ARM11 0x10100000)
 
| Process9
 
| Process9
 
|-
 
|-
 
| 9
 
| 9
| If not set force pulls all SD card lines high.
+
| SD card controller select (0=0x10007000/0x10100000, 1=0x10006000)
 
| Process9
 
| Process9
 +
|-
 +
| 10-15
 +
| Unused.
 +
| -
 
|}
 
|}
  
516

edits

Navigation menu