XINU
gpioselect.h
Go to the documentation of this file.
1 /* pinmux.h - pin multiplexing and control for the BBB ZCZ package */
2 
3 /* Base Register Address for pinmux control */
4 
5 #define PINMUXBASE 0x44E10800
6 
7 /* MUX Control Registers */
8 #define PIN_CONF_GPMC_AD0 0x00
9 #define PIN_CONF_GPMC_AD1 0x01
10 #define PIN_CONF_GPMC_AD2 0x02
11 #define PIN_CONF_GPMC_AD3 0x03
12 #define PIN_CONF_GPMC_AD4 0x04
13 #define PIN_CONF_GPMC_AD5 0x05
14 #define PIN_CONF_GPMC_AD6 0x06
15 #define PIN_CONF_GPMC_AD7 0x07
16 #define PIN_CONF_GPMC_AD8 0x08
17 #define PIN_CONF_GPMC_AD9 0x09
18 #define PIN_CONF_GPMC_AD10 0x0A
19 #define PIN_CONF_GPMC_AD11 0x0B
20 #define PIN_CONF_GPMC_AD12 0x0C
21 #define PIN_CONF_GPMC_AD13 0x0D
22 #define PIN_CONF_GPMC_AD14 0x0E
23 #define PIN_CONF_GPMC_AD15 0x0F
24 #define PIN_CONF_GPMC_A0 0x10
25 #define PIN_CONF_GPMC_A1 0x11
26 #define PIN_CONF_GPMC_A2 0x12
27 #define PIN_CONF_GPMC_A3 0x13
28 #define PIN_CONF_GPMC_A4 0x14
29 #define PIN_CONF_GPMC_A5 0x15
30 #define PIN_CONF_GPMC_A6 0x16
31 #define PIN_CONF_GPMC_A7 0x17
32 #define PIN_CONF_GPMC_A8 0x18
33 #define PIN_CONF_GPMC_A9 0x19
34 #define PIN_CONF_GPMC_A10 0x1A
35 #define PIN_CONF_GPMC_A11 0x1B
36 #define PIN_CONF_GPMC_WAIT0 0x1C
37 #define PIN_CONF_GPMC_WPN 0x1D
38 #define PIN_CONF_GPMC_BEN1 0x1E
39 #define PIN_CONF_GPMC_CSN0 0x1F
40 #define PIN_CONF_GPMC_CSN1 0x20
41 #define PIN_CONF_GPMC_CSN2 0x21
42 #define PIN_CONF_GPMC_CSN3 0x22
43 #define PIN_CONF_GPMC_CLK 0x23
44 #define PIN_CONF_GPMC_ADVN_ALE 0x24
45 #define PIN_CONF_GPMC_OEN_REN 0x25
46 #define PIN_CONF_GPMC_WEN 0x26
47 #define PIN_CONF_GPMC_BEN0_CLE 0x27
48 #define PIN_CONF_LCD_DATA0 0x28
49 #define PIN_CONF_LCD_DATA1 0x29
50 #define PIN_CONF_LCD_DATA2 0x2A
51 #define PIN_CONF_LCD_DATA3 0x2B
52 #define PIN_CONF_LCD_DATA4 0x2C
53 #define PIN_CONF_LCD_DATA5 0x2D
54 #define PIN_CONF_LCD_DATA6 0x2E
55 #define PIN_CONF_LCD_DATA7 0x2F
56 #define PIN_CONF_LCD_DATA8 0x30
57 #define PIN_CONF_LCD_DATA9 0x31
58 #define PIN_CONF_LCD_DATA10 0x32
59 #define PIN_CONF_LCD_DATA11 0x33
60 #define PIN_CONF_LCD_DATA12 0x34
61 #define PIN_CONF_LCD_DATA13 0x35
62 #define PIN_CONF_LCD_DATA14 0x36
63 #define PIN_CONF_LCD_DATA15 0x37
64 #define PIN_CONF_LCD_VSYNC 0x38
65 #define PIN_CONF_LCD_HSYNC 0x39
66 #define PIN_CONF_LCD_PCLK 0x3A
67 #define PIN_CONF_LCD_AC_BIAS_EN 0x3B
68 #define PIN_CONF_MMC0_DAT3 0x3C
69 #define PIN_CONF_MMC0_DAT2 0x3D
70 #define PIN_CONF_MMC0_DAT1 0x3E
71 #define PIN_CONF_MMC0_DAT0 0x3F
72 #define PIN_CONF_MMC0_CLK 0x40
73 #define PIN_CONF_MMC0_CMD 0x41
74 #define PIN_CONF_MII1_COL 0x42
75 #define PIN_CONF_MII1_CRS 0x43
76 #define PIN_CONF_MII1_RX_ER 0x44
77 #define PIN_CONF_MII1_TX_EN 0x45
78 #define PIN_CONF_MII1_RX_DV 0x46
79 #define PIN_CONF_MII1_TXD3 0x47
80 #define PIN_CONF_MII1_TXD2 0x48
81 #define PIN_CONF_MII1_TXD1 0x49
82 #define PIN_CONF_MII1_TXD0 0x4A
83 #define PIN_CONF_MII1_TX_CLK 0x4B
84 #define PIN_CONF_MII1_RX_CLK 0x4C
85 #define PIN_CONF_MII1_RXD3 0x4D
86 #define PIN_CONF_MII1_RXD2 0x4E
87 #define PIN_CONF_MII1_RXD1 0x4F
88 #define PIN_CONF_MII1_RXD0 0x50
89 #define PIN_CONF_RMII1_REF_CLK 0x51
90 #define PIN_CONF_MDIO 0x52
91 #define PIN_CONF_MDC 0x53
92 #define PIN_CONF_SPI0_SCLK 0x54
93 #define PIN_CONF_SPI0_D0 0x55
94 #define PIN_CONF_SPI0_D1 0x56
95 #define PIN_CONF_SPI0_CS0 0x57
96 #define PIN_CONF_SPI0_CS1 0x58
97 #define PIN_CONF_ECAP0_IN_PWM0_OUT 0x59
98 #define PIN_CONF_UART0_CTSN 0x5A
99 #define PIN_CONF_UART0_RTSN 0x5B
100 #define PIN_CONF_UART0_RXD 0x5C
101 #define PIN_CONF_UART0_TXD 0x5D
102 #define PIN_CONF_UART1_CTSN 0x5E
103 #define PIN_CONF_UART1_RTSN 0x5F
104 #define PIN_CONF_UART1_RXD 0x60
105 #define PIN_CONF_UART1_TXD 0x61
106 #define PIN_CONF_I2C0_SDA 0x62
107 #define PIN_CONF_I2C0_SCL 0x63
108 #define PIN_CONF_MCASP0_ACLKX 0x64
109 #define PIN_CONF_MCASP0_FSX 0x65
110 #define PIN_CONF_MCASP0_AXR0 0x66
111 #define PIN_CONF_MCASP0_AHCLKR 0x67
112 #define PIN_CONF_MCASP0_ACLKR 0x68
113 #define PIN_CONF_MCASP0_FSR 0x69
114 #define PIN_CONF_MCASP0_AXR1 0x6A
115 #define PIN_CONF_MCASP0_AHCLKX 0x6B
116 #define PIN_CONF_XDMA_EVENT_INTR0 0x6C
117 #define PIN_CONF_XDMA_EVENT_INTR1 0x6D
118 #define PIN_CONF_WARMRSTN 0x6E
119 #define PIN_CONF_NNMI 0x70
120 #define PIN_CONF_TMS 0x74
121 #define PIN_CONF_TDI 0x75
122 #define PIN_CONF_TDO 0x76
123 #define PIN_CONF_TCK 0x77
124 #define PIN_CONF_TRSTN 0x78
125 #define PIN_CONF_EMU0 0x79
126 #define PIN_CONF_EMU1 0x7A
127 #define PIN_CONF_RTC_PWRONRSTN 0x7E
128 #define PIN_CONF_PMIC_POWER_EN 0x7F
129 #define PIN_CONF_EXT_WAKEUP 0x80
130 #define PIN_CONF_USB0_DRVVBUS 0x87
131 #define PIN_CONF_USB1_DRVVBUS 0x8D
132 
133 /* Pin Modes */
134 
135 #define PIN_MODE_0 0x00
136 #define PIN_MODE_1 0x01
137 #define PIN_MODE_2 0x02
138 #define PIN_MODE_3 0x03
139 #define PIN_MODE_4 0x04
140 #define PIN_MODE_5 0x05
141 #define PIN_MODE_6 0x06
142 #define PIN_MODE_7 0x07
143 
144 
145 /* Input Enable Settings */
146 
147 #define PIN_INPUT_ENABLE 0x20
148 #define PIN_INPUT_DISABLE 0x00
149 
150 /* Slew Rate */
151 
152 #define PIN_SLEW_FAST 0x00
153 #define PIN_SLEW_SLOW 0x40
154 
155 /* Pull Settings */
156 
157 #define PIN_PULL_ENABLE 0x00
158 #define PIN_PULL_DISABLE 0x08
159 #define PIN_PULL_DOWN 0x00
160 #define PIN_PULL_UP 0x10