GPIO Registers: Difference between revisions

From 3dbrew
Jump to navigation Jump to search
Xerpi (talk | contribs)
No edit summary
No edit summary
Line 4: Line 4:
!  Address
!  Address
!  Width
!  Width
Interrupt bitmasks associated to this register
GPIO [[GPIO_Services|bitmasks]] associated with this register
|-
|-
| ??
| GPIO_DATA0
| 0x10147000
| 0x10147000
| 2??
| 2
| 0x1, 0x2, 0x4
| 0x1, 0x2, 0x4
|-
|-
| ??
| GPIO_DATA1
| [[#0x10147010|0x10147010]]
| [[#0x10147010|0x10147010]]
| 4
| 4
| 0x8, 0x10
| 0x8, 0x10
|-
|-
| ??
| GPIO_DATA2
| 0x10147014
| 0x10147014
| 2??
| 2
| 0x20
| 0x20
|-
|-
| ??
| GPIO_DATA3
| 0x10147020
| 0x10147020
| 4
| 4
Line 31: Line 31:
| 0x40, 0x80, 0x100, 0x200, 0x400, 0x800, 0x1000, 0x2000, 0x4000, 0x8000, 0x10000, 0x20000
| 0x40, 0x80, 0x100, 0x200, 0x400, 0x800, 0x1000, 0x2000, 0x4000, 0x8000, 0x10000, 0x20000
|-
|-
| ??
| GPIO_DATA4
| 0x10147028
| 0x10147028
| 2??
| 2
| 0x40000
| 0x40000
|}
|}
Line 48: Line 48:
| 25
| 25
| Enable/disable? GPIO interrupt 0x66 (bitmask 0x10)
| Enable/disable? GPIO interrupt 0x66 (bitmask 0x10)
|}
== GPIO_DATA ==
=== GPIO_DATA0 ===
{| class="wikitable" border="1"
!  Bit
!  Description
|-
| 0-2
| Used for GPIO [[GPIO_Services|bitmask]] 0x7.
|-
| 3-15
| Unused by GPIO-sysmodule and TwlBg.
|}
=== GPIO_DATA1 ===
{| class="wikitable" border="1"
!  Bit
!  Description
|-
| 0-1
| Used for GPIO [[GPIO_Services|bitmask]] 0x18.
|-
| 2-31
| Unused by GPIO-sysmodule and TwlBg.
|}
=== GPIO_DATA2 ===
{| class="wikitable" border="1"
!  Bit
!  Description
|-
| 0
| Used for GPIO [[GPIO_Services|bitmask]] 0x20.
|-
| 1-15
| Unused by GPIO-sysmodule and TwlBg.
|}
=== GPIO_DATA3 ===
{| class="wikitable" border="1"
!  Bit
!  Description
|-
| 0-11
| Used for GPIO [[GPIO_Services|bitmask]] 0x3FFC0.
|-
| 12-31
| Unused by GPIO-sysmodule and TwlBg.
|}
=== GPIO_DATA4 ===
{| class="wikitable" border="1"
!  Bit
!  Description
|-
| 0
| Used for GPIO [[GPIO_Services|bitmask]] 0x40000.
|-
| 1-15
| Unused by GPIO-sysmodule and TwlBg.
|}
|}



Revision as of 00:16, 21 January 2017

Registers

Name Address Width GPIO bitmasks associated with this register
GPIO_DATA0 0x10147000 2 0x1, 0x2, 0x4
GPIO_DATA1 0x10147010 4 0x8, 0x10
GPIO_DATA2 0x10147014 2 0x20
GPIO_DATA3 0x10147020 4 0x40, 0x80, 0x100, 0x200, 0x400, 0x800, 0x1000, 0x2000, 0x4000, 0x8000, 0x10000, 0x20000
?? 0x10147024 4 0x40, 0x80, 0x100, 0x200, 0x400, 0x800, 0x1000, 0x2000, 0x4000, 0x8000, 0x10000, 0x20000
GPIO_DATA4 0x10147028 2 0x40000

0x10147010

Bit Description
24 Enable/disable? GPIO interrupt 0x64 (bitmask 0x8)
25 Enable/disable? GPIO interrupt 0x66 (bitmask 0x10)

GPIO_DATA

GPIO_DATA0

Bit Description
0-2 Used for GPIO bitmask 0x7.
3-15 Unused by GPIO-sysmodule and TwlBg.

GPIO_DATA1

Bit Description
0-1 Used for GPIO bitmask 0x18.
2-31 Unused by GPIO-sysmodule and TwlBg.

GPIO_DATA2

Bit Description
0 Used for GPIO bitmask 0x20.
1-15 Unused by GPIO-sysmodule and TwlBg.

GPIO_DATA3

Bit Description
0-11 Used for GPIO bitmask 0x3FFC0.
12-31 Unused by GPIO-sysmodule and TwlBg.

GPIO_DATA4

Bit Description
0 Used for GPIO bitmask 0x40000.
1-15 Unused by GPIO-sysmodule and TwlBg.

Default values

After bootrom initialization, these are the values of the registers:

Address Value
0x10147000 0x0003
0x10147010 0x00000002
0x10147014 0x0000
0x10147020 0x00000DFB
0x10147024 0x00000000
0x10147028 0x0000