xref: /openbmc/linux/arch/sh/include/cpu-sh3/cpu/sh7720.h (revision f7275650)
1f7275650SPaul Mundt #ifndef __ASM_SH7720_H__
2f7275650SPaul Mundt #define __ASM_SH7720_H__
3f7275650SPaul Mundt 
4f7275650SPaul Mundt enum {
5f7275650SPaul Mundt 	/* PTA */
6f7275650SPaul Mundt 	GPIO_PTA7, GPIO_PTA6, GPIO_PTA5, GPIO_PTA4,
7f7275650SPaul Mundt 	GPIO_PTA3, GPIO_PTA2, GPIO_PTA1, GPIO_PTA0,
8f7275650SPaul Mundt 
9f7275650SPaul Mundt 	/* PTB */
10f7275650SPaul Mundt 	GPIO_PTB7, GPIO_PTB6, GPIO_PTB5, GPIO_PTB4,
11f7275650SPaul Mundt 	GPIO_PTB3, GPIO_PTB2, GPIO_PTB1, GPIO_PTB0,
12f7275650SPaul Mundt 
13f7275650SPaul Mundt 	/* PTC */
14f7275650SPaul Mundt 	GPIO_PTC7, GPIO_PTC6, GPIO_PTC5, GPIO_PTC4,
15f7275650SPaul Mundt 	GPIO_PTC3, GPIO_PTC2, GPIO_PTC1, GPIO_PTC0,
16f7275650SPaul Mundt 
17f7275650SPaul Mundt 	/* PTD */
18f7275650SPaul Mundt 	GPIO_PTD7, GPIO_PTD6, GPIO_PTD5, GPIO_PTD4,
19f7275650SPaul Mundt 	GPIO_PTD3, GPIO_PTD2, GPIO_PTD1, GPIO_PTD0,
20f7275650SPaul Mundt 
21f7275650SPaul Mundt 	/* PTE */
22f7275650SPaul Mundt 	GPIO_PTE6, GPIO_PTE5, GPIO_PTE4, GPIO_PTE3,
23f7275650SPaul Mundt 	GPIO_PTE2, GPIO_PTE1, GPIO_PTE0,
24f7275650SPaul Mundt 
25f7275650SPaul Mundt 	/* PTF */
26f7275650SPaul Mundt 	GPIO_PTF6, GPIO_PTF5, GPIO_PTF4, GPIO_PTF3,
27f7275650SPaul Mundt 	GPIO_PTF2, GPIO_PTF1, GPIO_PTF0, GPIO_PTG6,
28f7275650SPaul Mundt 
29f7275650SPaul Mundt 	/* PTG */
30f7275650SPaul Mundt 	GPIO_PTG5, GPIO_PTG4, GPIO_PTG3, GPIO_PTG2,
31f7275650SPaul Mundt 	GPIO_PTG1, GPIO_PTG0,
32f7275650SPaul Mundt 
33f7275650SPaul Mundt 	/* PTH */
34f7275650SPaul Mundt 	GPIO_PTH6, GPIO_PTH5, GPIO_PTH4, GPIO_PTH3,
35f7275650SPaul Mundt 	GPIO_PTH2, GPIO_PTH1, GPIO_PTH0,
36f7275650SPaul Mundt 
37f7275650SPaul Mundt 	/* PTJ */
38f7275650SPaul Mundt 	GPIO_PTJ6, GPIO_PTJ5, GPIO_PTJ4, GPIO_PTJ3,
39f7275650SPaul Mundt 	GPIO_PTJ2, GPIO_PTJ1, GPIO_PTJ0,
40f7275650SPaul Mundt 
41f7275650SPaul Mundt 	/* PTK */
42f7275650SPaul Mundt 	GPIO_PTK3, GPIO_PTK2, GPIO_PTK1, GPIO_PTK0,
43f7275650SPaul Mundt 
44f7275650SPaul Mundt 	/* PTL */
45f7275650SPaul Mundt 	GPIO_PTL7, GPIO_PTL6, GPIO_PTL5, GPIO_PTL4, GPIO_PTL3,
46f7275650SPaul Mundt 
47f7275650SPaul Mundt 	/* PTM */
48f7275650SPaul Mundt 	GPIO_PTM7, GPIO_PTM6, GPIO_PTM5, GPIO_PTM4,
49f7275650SPaul Mundt 	GPIO_PTM3, GPIO_PTM2, GPIO_PTM1, GPIO_PTM0,
50f7275650SPaul Mundt 
51f7275650SPaul Mundt 	/* PTP */
52f7275650SPaul Mundt 	GPIO_PTP4, GPIO_PTP3, GPIO_PTP2, GPIO_PTP1, GPIO_PTP0,
53f7275650SPaul Mundt 
54f7275650SPaul Mundt 	/* PTR */
55f7275650SPaul Mundt 	GPIO_PTR7, GPIO_PTR6, GPIO_PTR5, GPIO_PTR4,
56f7275650SPaul Mundt 	GPIO_PTR3, GPIO_PTR2, GPIO_PTR1, GPIO_PTR0,
57f7275650SPaul Mundt 
58f7275650SPaul Mundt 	/* PTS */
59f7275650SPaul Mundt 	GPIO_PTS4, GPIO_PTS3, GPIO_PTS2, GPIO_PTS1, GPIO_PTS0,
60f7275650SPaul Mundt 
61f7275650SPaul Mundt 	/* PTT */
62f7275650SPaul Mundt 	GPIO_PTT4, GPIO_PTT3, GPIO_PTT2, GPIO_PTT1, GPIO_PTT0,
63f7275650SPaul Mundt 
64f7275650SPaul Mundt 	/* PTU */
65f7275650SPaul Mundt 	GPIO_PTU4, GPIO_PTU3, GPIO_PTU2, GPIO_PTU1, GPIO_PTU0,
66f7275650SPaul Mundt 
67f7275650SPaul Mundt 	/* PTV */
68f7275650SPaul Mundt 	GPIO_PTV4, GPIO_PTV3, GPIO_PTV2, GPIO_PTV1, GPIO_PTV0,
69f7275650SPaul Mundt 
70f7275650SPaul Mundt 	/* BSC */
71f7275650SPaul Mundt 	GPIO_FN_D31, GPIO_FN_D30, GPIO_FN_D29, GPIO_FN_D28,
72f7275650SPaul Mundt 	GPIO_FN_D27, GPIO_FN_D26, GPIO_FN_D25, GPIO_FN_D24,
73f7275650SPaul Mundt 	GPIO_FN_D23, GPIO_FN_D22, GPIO_FN_D21, GPIO_FN_D20,
74f7275650SPaul Mundt 	GPIO_FN_D19, GPIO_FN_D18, GPIO_FN_D17, GPIO_FN_D16,
75f7275650SPaul Mundt 	GPIO_FN_IOIS16, GPIO_FN_RAS, GPIO_FN_CAS, GPIO_FN_CKE,
76f7275650SPaul Mundt 	GPIO_FN_CS5B_CE1A, GPIO_FN_CS6B_CE1B,
77f7275650SPaul Mundt 	GPIO_FN_A25, GPIO_FN_A24, GPIO_FN_A23, GPIO_FN_A22,
78f7275650SPaul Mundt 	GPIO_FN_A21, GPIO_FN_A20, GPIO_FN_A19, GPIO_FN_A0,
79f7275650SPaul Mundt 	GPIO_FN_REFOUT, GPIO_FN_IRQOUT,
80f7275650SPaul Mundt 
81f7275650SPaul Mundt 	/* LCDC */
82f7275650SPaul Mundt 	GPIO_FN_LCD_DATA15, GPIO_FN_LCD_DATA14,
83f7275650SPaul Mundt 	GPIO_FN_LCD_DATA13, GPIO_FN_LCD_DATA12,
84f7275650SPaul Mundt 	GPIO_FN_LCD_DATA11, GPIO_FN_LCD_DATA10,
85f7275650SPaul Mundt 	GPIO_FN_LCD_DATA9, GPIO_FN_LCD_DATA8,
86f7275650SPaul Mundt 	GPIO_FN_LCD_DATA7, GPIO_FN_LCD_DATA6,
87f7275650SPaul Mundt 	GPIO_FN_LCD_DATA5, GPIO_FN_LCD_DATA4,
88f7275650SPaul Mundt 	GPIO_FN_LCD_DATA3, GPIO_FN_LCD_DATA2,
89f7275650SPaul Mundt 	GPIO_FN_LCD_DATA1, GPIO_FN_LCD_DATA0,
90f7275650SPaul Mundt 	GPIO_FN_LCD_M_DISP,
91f7275650SPaul Mundt 	GPIO_FN_LCD_CL1, GPIO_FN_LCD_CL2,
92f7275650SPaul Mundt 	GPIO_FN_LCD_DON, GPIO_FN_LCD_FLM,
93f7275650SPaul Mundt 	GPIO_FN_LCD_VEPWC, GPIO_FN_LCD_VCPWC,
94f7275650SPaul Mundt 
95f7275650SPaul Mundt 	/* AFEIF */
96f7275650SPaul Mundt 	GPIO_FN_AFE_RXIN, GPIO_FN_AFE_RDET,
97f7275650SPaul Mundt 	GPIO_FN_AFE_FS, GPIO_FN_AFE_TXOUT,
98f7275650SPaul Mundt 	GPIO_FN_AFE_SCLK, GPIO_FN_AFE_RLYCNT,
99f7275650SPaul Mundt 	GPIO_FN_AFE_HC1,
100f7275650SPaul Mundt 
101f7275650SPaul Mundt 	/* IIC */
102f7275650SPaul Mundt 	GPIO_FN_IIC_SCL, GPIO_FN_IIC_SDA,
103f7275650SPaul Mundt 
104f7275650SPaul Mundt 	/* DAC */
105f7275650SPaul Mundt 	GPIO_FN_DA1, GPIO_FN_DA0,
106f7275650SPaul Mundt 
107f7275650SPaul Mundt 	/* ADC */
108f7275650SPaul Mundt 	GPIO_FN_AN3, GPIO_FN_AN2, GPIO_FN_AN1, GPIO_FN_AN0, GPIO_FN_ADTRG,
109f7275650SPaul Mundt 
110f7275650SPaul Mundt 	/* USB */
111f7275650SPaul Mundt 	GPIO_FN_USB1D_RCV, GPIO_FN_USB1D_TXSE0,
112f7275650SPaul Mundt 	GPIO_FN_USB1D_TXDPLS, GPIO_FN_USB1D_DMNS,
113f7275650SPaul Mundt 	GPIO_FN_USB1D_DPLS, GPIO_FN_USB1D_SPEED,
114f7275650SPaul Mundt 	GPIO_FN_USB1D_TXENL, GPIO_FN_USB2_PWR_EN,
115f7275650SPaul Mundt 	GPIO_FN_USB1_PWR_EN_USBF_UPLUP, GPIO_FN_USB1D_SUSPEND,
116f7275650SPaul Mundt 
117f7275650SPaul Mundt 	/* INTC */
118f7275650SPaul Mundt 	GPIO_FN_IRQ5, GPIO_FN_IRQ4,
119f7275650SPaul Mundt 	GPIO_FN_IRQ3_IRL3, GPIO_FN_IRQ2_IRL2,
120f7275650SPaul Mundt 	GPIO_FN_IRQ1_IRL1, GPIO_FN_IRQ0_IRL0,
121f7275650SPaul Mundt 
122f7275650SPaul Mundt 	/* PCC */
123f7275650SPaul Mundt 	GPIO_FN_PCC_REG, GPIO_FN_PCC_DRV,
124f7275650SPaul Mundt 	GPIO_FN_PCC_BVD2, GPIO_FN_PCC_BVD1,
125f7275650SPaul Mundt 	GPIO_FN_PCC_CD2, GPIO_FN_PCC_CD1,
126f7275650SPaul Mundt 	GPIO_FN_PCC_RESET, GPIO_FN_PCC_RDY,
127f7275650SPaul Mundt 	GPIO_FN_PCC_VS2, GPIO_FN_PCC_VS1,
128f7275650SPaul Mundt 
129f7275650SPaul Mundt 	/* HUDI */
130f7275650SPaul Mundt 	GPIO_FN_AUDATA3, GPIO_FN_AUDATA2, GPIO_FN_AUDATA1, GPIO_FN_AUDATA0,
131f7275650SPaul Mundt 	GPIO_FN_AUDCK, GPIO_FN_AUDSYNC, GPIO_FN_ASEBRKAK, GPIO_FN_TRST,
132f7275650SPaul Mundt 	GPIO_FN_TMS, GPIO_FN_TDO, GPIO_FN_TDI, GPIO_FN_TCK,
133f7275650SPaul Mundt 
134f7275650SPaul Mundt 	/* DMAC */
135f7275650SPaul Mundt 	GPIO_FN_DACK1, GPIO_FN_DREQ1, GPIO_FN_DACK0, GPIO_FN_DREQ0,
136f7275650SPaul Mundt 	GPIO_FN_TEND1, GPIO_FN_TEND0,
137f7275650SPaul Mundt 
138f7275650SPaul Mundt 	/* SIOF0 */
139f7275650SPaul Mundt 	GPIO_FN_SIOF0_SYNC, GPIO_FN_SIOF0_MCLK,
140f7275650SPaul Mundt 	GPIO_FN_SIOF0_TXD, GPIO_FN_SIOF0_RXD,
141f7275650SPaul Mundt 	GPIO_FN_SIOF0_SCK,
142f7275650SPaul Mundt 
143f7275650SPaul Mundt 	/* SIOF1 */
144f7275650SPaul Mundt 	GPIO_FN_SIOF1_SYNC, GPIO_FN_SIOF1_MCLK,
145f7275650SPaul Mundt 	GPIO_FN_SIOF1_TXD, GPIO_FN_SIOF1_RXD,
146f7275650SPaul Mundt 	GPIO_FN_SIOF1_SCK,
147f7275650SPaul Mundt 
148f7275650SPaul Mundt 	/* SCIF0 */
149f7275650SPaul Mundt 	GPIO_FN_SCIF0_TXD, GPIO_FN_SCIF0_RXD,
150f7275650SPaul Mundt 	GPIO_FN_SCIF0_RTS, GPIO_FN_SCIF0_CTS, GPIO_FN_SCIF0_SCK,
151f7275650SPaul Mundt 
152f7275650SPaul Mundt 	/* SCIF1 */
153f7275650SPaul Mundt 	GPIO_FN_SCIF1_TXD, GPIO_FN_SCIF1_RXD,
154f7275650SPaul Mundt 	GPIO_FN_SCIF1_RTS, GPIO_FN_SCIF1_CTS, GPIO_FN_SCIF1_SCK,
155f7275650SPaul Mundt 
156f7275650SPaul Mundt 	/* TPU */
157f7275650SPaul Mundt 	GPIO_FN_TPU_TO1, GPIO_FN_TPU_TO0,
158f7275650SPaul Mundt 	GPIO_FN_TPU_TI3B, GPIO_FN_TPU_TI3A,
159f7275650SPaul Mundt 	GPIO_FN_TPU_TI2B, GPIO_FN_TPU_TI2A,
160f7275650SPaul Mundt 	GPIO_FN_TPU_TO3, GPIO_FN_TPU_TO2,
161f7275650SPaul Mundt 
162f7275650SPaul Mundt 	/* SIM */
163f7275650SPaul Mundt 	GPIO_FN_SIM_D, GPIO_FN_SIM_CLK, GPIO_FN_SIM_RST,
164f7275650SPaul Mundt 
165f7275650SPaul Mundt 	/* MMC */
166f7275650SPaul Mundt 	GPIO_FN_MMC_DAT, GPIO_FN_MMC_CMD,
167f7275650SPaul Mundt 	GPIO_FN_MMC_CLK, GPIO_FN_MMC_VDDON,
168f7275650SPaul Mundt 	GPIO_FN_MMC_ODMOD,
169f7275650SPaul Mundt 
170f7275650SPaul Mundt 	/* SYSC */
171f7275650SPaul Mundt 	GPIO_FN_STATUS0, GPIO_FN_STATUS1,
172f7275650SPaul Mundt };
173f7275650SPaul Mundt 
174f7275650SPaul Mundt #endif /* __ASM_SH7720_H__ */
175