Difference between revisions of "GPIO Registers"

From Vita Development Wiki
Jump to navigation Jump to search
m
Line 58: Line 58:
 
| 0
 
| 0
 
| OLED/LCD
 
| OLED/LCD
 +
|-
 +
| 1
 +
| unk
 +
|-
 +
| 2
 +
| unk
 
|-
 
|-
 
| 3
 
| 3
Line 73: Line 79:
 
| 7
 
| 7
 
| PS Button Blue LED
 
| PS Button Blue LED
 +
|-
 +
| 8
 +
| unk
 
|-
 
|-
 
| 9
 
| 9
Line 82: Line 91:
 
| 13
 
| 13
 
| HDMI related (input)
 
| HDMI related (input)
 +
|-
 +
| 14
 +
| unk
 
|-
 
|-
 
| 15
 
| 15
 
| HDMI related (output)
 
| HDMI related (output)
 +
|-
 +
| 16
 +
| unk
 +
|-
 +
| 17
 +
| unk
 +
|-
 +
| 18
 +
| unk
 +
|-
 +
| 19
 +
| unk
 +
|-
 +
| 20
 +
| unk
 +
|-
 +
| 21
 +
| unk
 +
|-
 +
| 22
 +
| unk
 +
|-
 +
| 23
 +
| unk
 
|-
 
|-
 
| 24
 
| 24
 
| UDCD (USB Device Controller Driver) related
 
| UDCD (USB Device Controller Driver) related
 +
|-
 +
| 25
 +
| unk
 +
|-
 +
| 26
 +
| unk
 
|-
 
|-
 
| 27
 
| 27
Line 94: Line 136:
 
| 28
 
| 28
 
| Motion related
 
| Motion related
 +
|-
 +
| 29
 +
| unk
 
|-
 
|-
 
| 30
 
| 30
 
| 3G Modem related
 
| 3G Modem related
 +
|-
 +
| 31
 +
| unk
 
|}
 
|}

Revision as of 13:50, 10 August 2019

MMIO Interfaces

Name Physical address
SceGpio0Reg 0xE20A0000
SceGpio1Reg 0xE0100000

Registers

Offset Size Description
0x00 4 Port mode (1=out, 0=in) (1 bit each port)
0x04 4 Port read (1=low, 0=high?) (1 bit each port)
0x08 4 Port set (1 bit each port)
0x0C 4 Port clear (1 bit each port)
0x14 4 Interrupt mode (2 bits) for interrupts 0-15
0x18 4 Interrupt mode (2 bits) for interrupts 16-31
0x34 4 Port read latched? (1=low, 0=high?) (1 bit each port)

It looks like +0x10,+0x14,+0x18,+0x1C,+0x20 are related to interrupt enable, and +0x38,+0x3C,+0x40,+0x44,+0x48 to interrupt ack.

GPIO Bus 0 ports

Port Description
0 OLED/LCD
1 unk
2 unk
3 Syscon related (output)
4 Syscon related (input)
5 UDCD (USB Device Controller Driver) related
6 Game card LED
7 PS Button Blue LED
8 unk
9 Camera
12 UDCD (USB Device Controller Driver) related
13 HDMI related (input)
14 unk
15 HDMI related (output)
16 unk
17 unk
18 unk
19 unk
20 unk
21 unk
22 unk
23 unk
24 UDCD (USB Device Controller Driver) related
25 unk
26 unk
27 Motion related
28 Motion related
29 unk
30 3G Modem related
31 unk