Changes

2,255 bytes added ,  15:38, 20 March 2015
no edit summary
Line 1: Line 1: −
== Registers ==
+
= Registers =
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
NAME
+
Old3DS
PHYSICAL ADDRESS
+
Name
WIDTH
+
Address
INFO
+
Width
 +
!  Used by
 
|-
 
|-
| SPI_CFG
+
| style="background: green" | Yes
 +
| [[#PDN_SPI_CNT|PDN_SPI_CNT]]
 
| 0x101401C0
 
| 0x101401C0
 
| 4
 
| 4
 +
| [[SPI Services]]
 +
|-
 +
| style="background: green" | Yes
 +
| [[#PDN_SHAREDWRAM_32K_DATA|PDN_SHAREDWRAM_32K_DATA]]<0-7>
 +
| 0x10141000
 +
| 1*8
 
|  
 
|  
 
|-
 
|-
| SHAREDWRAM_CFG
+
| style="background: green" | Yes
| 0x10141000
+
| [[#PDN_SHAREDWRAM_32K_CODE|PDN_SHAREDWRAM_32K_CODE]]<0-7>
| 16
+
| 0x10141008
 +
| 1*8
 
|  
 
|  
 
|-
 
|-
 +
| style="background: green" | Yes
 
| ?
 
| ?
 
| 0x10141100
 
| 0x10141100
Line 21: Line 31:  
|
 
|
 
|-
 
|-
 +
| style="background: green" | Yes
 
| ?
 
| ?
 
| 0x10141103
 
| 0x10141103
Line 26: Line 37:  
|
 
|
 
|-
 
|-
 +
| style="background: green" | Yes
 
| ?
 
| ?
 
| 0x10141104
 
| 0x10141104
Line 31: Line 43:  
|
 
|
 
|-
 
|-
 +
| style="background: green" | Yes
 
| ?
 
| ?
 
| 0x10141105
 
| 0x10141105
Line 36: Line 49:  
|
 
|
 
|-
 
|-
 +
| style="background: green" | Yes
 
| ?
 
| ?
 
| 0x10141108
 
| 0x10141108
Line 41: Line 55:  
|
 
|
 
|-
 
|-
 +
| style="background: green" | Yes
 
| PDN_WIFI?
 
| PDN_WIFI?
 
| 0x1014110C
 
| 0x1014110C
Line 46: Line 61:  
|
 
|
 
|-
 
|-
 +
| style="background: green" | Yes
 
| ?
 
| ?
 
| 0x10141140
 
| 0x10141140
Line 51: Line 67:  
|
 
|
 
|-
 
|-
 +
| style="background: green" | Yes
 
| ?
 
| ?
 
| 0x10141141
 
| 0x10141141
Line 56: Line 73:  
|
 
|
 
|-
 
|-
| PDN_WIFI
+
| style="background: green" | Yes
 +
| [[#PDN_WIFI_CNT|PDN_WIFI_CNT]]
 
| 0x10141180
 
| 0x10141180
 
| 1
 
| 1
| 1=Internet?, 0=Streetpass?
+
|
 
|-
 
|-
| PDN_HID
+
| style="background: green" | Yes
 +
| [[#PDN_HID_CNT|PDN_HID_CNT]]
 
| 0x101411C0
 
| 0x101411C0
 
| 1
 
| 1
 
|
 
|
 
|-
 
|-
 +
| style="background: green" | Yes
 
| ?
 
| ?
 
| 0x10141200
 
| 0x10141200
Line 71: Line 91:  
|
 
|
 
|-
 
|-
 +
| style="background: green" | Yes
 
| ?
 
| ?
 
| 0x10141FFC
 
| 0x10141FFC
Line 76: Line 97:  
|
 
|
 
|-
 
|-
| ?
+
| style="background: green" | Yes
 +
| PDN_PTM_0
 
| 0x10141008
 
| 0x10141008
 
| 4
 
| 4
|
+
| [[PTM Services]]
 
|-
 
|-
| ?
+
| style="background: green" | Yes
 +
| PDN_PTM_1
 
| 0x1014100C
 
| 0x1014100C
 
| 4
 
| 4
|
+
| [[PTM Services]]
 
|-
 
|-
| PDN_TWLMODE?
+
| style="background: green" | Yes
 +
| [[#PDN_TWLMODE|PDN_TWLMODE]]
 
| 0x10141100
 
| 0x10141100
 
| 2
 
| 2
 
|
 
|
 
|-
 
|-
 +
| style="background: green" | Yes
 
| ?
 
| ?
 
| 0x10141104
 
| 0x10141104
Line 96: Line 121:  
|
 
|
 
|-
 
|-
 +
| style="background: green" | Yes
 
| ?
 
| ?
 
| 0x10141110
 
| 0x10141110
Line 101: Line 127:  
|
 
|
 
|-
 
|-
 +
| style="background: green" | Yes
 
| ?
 
| ?
 
| 0x10141112
 
| 0x10141112
Line 106: Line 133:  
|  
 
|  
 
|-
 
|-
| ?
+
| style="background: green" | Yes
 +
| [[#PDN_CODEC|PDN_CODEC_0]]
 
| 0x10141114
 
| 0x10141114
 
| 2
 
| 2
|
+
| [[CODEC Services]]
 
|-
 
|-
| ?
+
| style="background: green" | Yes
 +
| [[#PDN_CODEC|PDN_CODEC_1]]
 
| 0x10141116
 
| 0x10141116
 
| 2
 
| 2
|
+
| [[CODEC Services]]
 
|-
 
|-
| PDN_LCD
+
| style="background: green" | Yes
 +
| [[#PDN_LCD_CNT|PDN_LCD_CNT]]
 
| 0x10141200
 
| 0x10141200
 
| 1
 
| 1
 
| Boot11 sets/clears bit16, bit0.
 
| Boot11 sets/clears bit16, bit0.
 
|-
 
|-
| PDN_BACKLIGHT
+
| style="background: green" | Yes
 +
| [[#PDN_BACKLIGHT_CNT|PDN_BACKLIGHT_CNT]]
 
| 0x10141202
 
| 0x10141202
 
| 1
 
| 1
 
|
 
|
 
|-
 
|-
 +
| style="background: green" | Yes
 
| ?
 
| ?
 
| 0x10141204
 
| 0x10141204
Line 131: Line 163:  
| Boot11 sets/clears bit0.
 
| Boot11 sets/clears bit0.
 
|-
 
|-
 +
| style="background: green" | Yes
 
| ?
 
| ?
 
| 0x10141210
 
| 0x10141210
Line 136: Line 169:  
|
 
|
 
|-
 
|-
| PDN_CODEC
+
| style="background: green" | Yes
 +
| [[#PDN_CODEC_CNT|PDN_CODEC_CNT]]
 
| 0x10141220
 
| 0x10141220
 
| 1
 
| 1
 
|
 
|
 
|-
 
|-
| PDN_CAMERA
+
| style="background: green" | Yes
 +
| [[#PDN_CAMERA_CNT|PDN_CAMERA_CNT]]
 
| 0x10141224
 
| 0x10141224
 
| 1
 
| 1
 
|
 
|
 
|-
 
|-
 +
| style="background: green" | Yes
 
| ?
 
| ?
 
| 0x10141230
 
| 0x10141230
Line 152: Line 188:  
|}
 
|}
   −
==0x1EC41008 and 0x1EC4100C==
+
== PDN_SPI_CNT ==
These are the PDN PTM registers used for the [[PDN_Services|PDN]] PTM service.
+
Bit0-3: Enable SPI bus.
 +
 
 +
== PDN_SHAREDWRAM_32K_DATA ==
 +
Used for mapping 32K chunks of shared WRAM for DSP code.
 +
 
 +
  0-1 Master (0=ARM9?, 1=ARM11?, 2 or 3=DSP/code)
 +
  2-4  Offset (0..7) (slot 0..7) (LSB of address in 32Kbyte units)
 +
  5-6  Not used (0)
 +
  7    Enable (0=Disable, 1=Enable)
 +
 
 +
== PDN_SHAREDWRAM_32K_CODE ==
 +
Used for mapping 32K chunks of shared WRAM for DSP data.
 +
 
 +
  0-1  Master (0=ARM9?, 1=ARM11?, 2 or 3=DSP/data)
 +
  2-4  Offset (0..7) (slot 0..7) (LSB of address in 32Kbyte units)
 +
  5-6  Not used (0)
 +
  7    Enable (0=Disable, 1=Enable)
 +
 
 +
==PDN_WIFI_CNT==
 +
Bit0: Enable wifi.
 +
 
 +
==PDN_HID_CNT==
 +
Bit0: Enable [[HID Registers]].
    
==PDN_TWLMODE==
 
==PDN_TWLMODE==
Line 160: Line 218:  
Writing 0x8000 to here from the ARM9 with NATIVE_FIRM running doesn't seem to do anything, other reg-pokes likely need done first.
 
Writing 0x8000 to here from the ARM9 with NATIVE_FIRM running doesn't seem to do anything, other reg-pokes likely need done first.
   −
==PDN_LCD==
+
==PDN_LCD_CNT==
 
This one seems to control the LCD displays?
 
This one seems to control the LCD displays?
   −
==PDN_BACKLIGHT==
+
==PDN_BACKLIGHT_CNT==
 
This is the power register used for the LCD backlights.
 
This is the power register used for the LCD backlights.
   Line 169: Line 227:     
==PDN_CODEC==
 
==PDN_CODEC==
 +
The following is the only time the ARM11 CODEC module uses any 0x1EC41XXX registers. In one case CODEC module clears bit1 in register 0x1EC41114, in the other case CODEC module sets bit1 in registers 0x1EC41114 and 0x1EC41116.
 +
 +
==PDN_CODEC_CNT==
 
This is the power register used for the [[PDN_Services|PDN]] CODEC service.
 
This is the power register used for the [[PDN_Services|PDN]] CODEC service.
    
bit0 = unknown, bit1 = turn on/off DSP, rest = always 0.
 
bit0 = unknown, bit1 = turn on/off DSP, rest = always 0.
   −
==PDN_CAMERA==
+
==PDN_CAMERA_CNT==
 
This is the power register used for the [[PDN_Services|PDN]] camera service.
 
This is the power register used for the [[PDN_Services|PDN]] camera service.
    
bit0 = unknown, bit1 = turn on/off cameras, rest = always 0.
 
bit0 = unknown, bit1 = turn on/off cameras, rest = always 0.