162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci#ifndef __ASM_SH7203_H__
362306a36Sopenharmony_ci#define __ASM_SH7203_H__
462306a36Sopenharmony_ci
562306a36Sopenharmony_cienum {
662306a36Sopenharmony_ci	/* PA */
762306a36Sopenharmony_ci	GPIO_PA7, GPIO_PA6, GPIO_PA5, GPIO_PA4,
862306a36Sopenharmony_ci	GPIO_PA3, GPIO_PA2, GPIO_PA1, GPIO_PA0,
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ci	/* PB */
1162306a36Sopenharmony_ci	GPIO_PB12,
1262306a36Sopenharmony_ci	GPIO_PB11, GPIO_PB10, GPIO_PB9, GPIO_PB8,
1362306a36Sopenharmony_ci	GPIO_PB7, GPIO_PB6, GPIO_PB5, GPIO_PB4,
1462306a36Sopenharmony_ci	GPIO_PB3, GPIO_PB2, GPIO_PB1, GPIO_PB0,
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ci	/* PC */
1762306a36Sopenharmony_ci	GPIO_PC14, GPIO_PC13, GPIO_PC12,
1862306a36Sopenharmony_ci	GPIO_PC11, GPIO_PC10, GPIO_PC9, GPIO_PC8,
1962306a36Sopenharmony_ci	GPIO_PC7, GPIO_PC6, GPIO_PC5, GPIO_PC4,
2062306a36Sopenharmony_ci	GPIO_PC3, GPIO_PC2, GPIO_PC1, GPIO_PC0,
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ci	/* PD */
2362306a36Sopenharmony_ci	GPIO_PD15, GPIO_PD14, GPIO_PD13, GPIO_PD12,
2462306a36Sopenharmony_ci	GPIO_PD11, GPIO_PD10, GPIO_PD9, GPIO_PD8,
2562306a36Sopenharmony_ci	GPIO_PD7, GPIO_PD6, GPIO_PD5, GPIO_PD4,
2662306a36Sopenharmony_ci	GPIO_PD3, GPIO_PD2, GPIO_PD1, GPIO_PD0,
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ci	/* PE */
2962306a36Sopenharmony_ci	GPIO_PE15, GPIO_PE14, GPIO_PE13, GPIO_PE12,
3062306a36Sopenharmony_ci	GPIO_PE11, GPIO_PE10, GPIO_PE9, GPIO_PE8,
3162306a36Sopenharmony_ci	GPIO_PE7, GPIO_PE6, GPIO_PE5, GPIO_PE4,
3262306a36Sopenharmony_ci	GPIO_PE3, GPIO_PE2, GPIO_PE1, GPIO_PE0,
3362306a36Sopenharmony_ci
3462306a36Sopenharmony_ci	/* PF */
3562306a36Sopenharmony_ci	GPIO_PF30, GPIO_PF29, GPIO_PF28,
3662306a36Sopenharmony_ci	GPIO_PF27, GPIO_PF26, GPIO_PF25, GPIO_PF24,
3762306a36Sopenharmony_ci	GPIO_PF23, GPIO_PF22, GPIO_PF21, GPIO_PF20,
3862306a36Sopenharmony_ci	GPIO_PF19, GPIO_PF18, GPIO_PF17, GPIO_PF16,
3962306a36Sopenharmony_ci	GPIO_PF15, GPIO_PF14, GPIO_PF13, GPIO_PF12,
4062306a36Sopenharmony_ci	GPIO_PF11, GPIO_PF10, GPIO_PF9, GPIO_PF8,
4162306a36Sopenharmony_ci	GPIO_PF7, GPIO_PF6, GPIO_PF5, GPIO_PF4,
4262306a36Sopenharmony_ci	GPIO_PF3, GPIO_PF2, GPIO_PF1, GPIO_PF0,
4362306a36Sopenharmony_ci
4462306a36Sopenharmony_ci	/* INTC: IRQ and PINT on PB/PD/PE */
4562306a36Sopenharmony_ci	GPIO_FN_PINT7_PB, GPIO_FN_PINT6_PB, GPIO_FN_PINT5_PB, GPIO_FN_PINT4_PB,
4662306a36Sopenharmony_ci	GPIO_FN_PINT3_PB, GPIO_FN_PINT2_PB, GPIO_FN_PINT1_PB, GPIO_FN_PINT0_PB,
4762306a36Sopenharmony_ci	GPIO_FN_PINT7_PD, GPIO_FN_PINT6_PD, GPIO_FN_PINT5_PD, GPIO_FN_PINT4_PD,
4862306a36Sopenharmony_ci	GPIO_FN_PINT3_PD, GPIO_FN_PINT2_PD, GPIO_FN_PINT1_PD, GPIO_FN_PINT0_PD,
4962306a36Sopenharmony_ci	GPIO_FN_IRQ7_PB, GPIO_FN_IRQ6_PB, GPIO_FN_IRQ5_PB, GPIO_FN_IRQ4_PB,
5062306a36Sopenharmony_ci	GPIO_FN_IRQ3_PB, GPIO_FN_IRQ2_PB, GPIO_FN_IRQ1_PB, GPIO_FN_IRQ0_PB,
5162306a36Sopenharmony_ci	GPIO_FN_IRQ7_PD, GPIO_FN_IRQ6_PD, GPIO_FN_IRQ5_PD, GPIO_FN_IRQ4_PD,
5262306a36Sopenharmony_ci	GPIO_FN_IRQ3_PD, GPIO_FN_IRQ2_PD, GPIO_FN_IRQ1_PD, GPIO_FN_IRQ0_PD,
5362306a36Sopenharmony_ci	GPIO_FN_IRQ7_PE, GPIO_FN_IRQ6_PE, GPIO_FN_IRQ5_PE, GPIO_FN_IRQ4_PE,
5462306a36Sopenharmony_ci	GPIO_FN_IRQ3_PE, GPIO_FN_IRQ2_PE, GPIO_FN_IRQ1_PE, GPIO_FN_IRQ0_PE,
5562306a36Sopenharmony_ci
5662306a36Sopenharmony_ci	GPIO_FN_WDTOVF, GPIO_FN_IRQOUT, GPIO_FN_REFOUT, GPIO_FN_IRQOUT_REFOUT,
5762306a36Sopenharmony_ci	GPIO_FN_UBCTRG,
5862306a36Sopenharmony_ci
5962306a36Sopenharmony_ci	/* CAN */
6062306a36Sopenharmony_ci	GPIO_FN_CTX1, GPIO_FN_CRX1, GPIO_FN_CTX0, GPIO_FN_CTX0_CTX1,
6162306a36Sopenharmony_ci	GPIO_FN_CRX0, GPIO_FN_CRX0_CRX1,
6262306a36Sopenharmony_ci
6362306a36Sopenharmony_ci	/* IIC3 */
6462306a36Sopenharmony_ci	GPIO_FN_SDA3, GPIO_FN_SCL3,
6562306a36Sopenharmony_ci	GPIO_FN_SDA2, GPIO_FN_SCL2,
6662306a36Sopenharmony_ci	GPIO_FN_SDA1, GPIO_FN_SCL1,
6762306a36Sopenharmony_ci	GPIO_FN_SDA0, GPIO_FN_SCL0,
6862306a36Sopenharmony_ci
6962306a36Sopenharmony_ci	/* DMAC */
7062306a36Sopenharmony_ci	GPIO_FN_TEND0_PD, GPIO_FN_TEND0_PE, GPIO_FN_DACK0_PD,
7162306a36Sopenharmony_ci	GPIO_FN_DACK0_PE, GPIO_FN_DREQ0_PD, GPIO_FN_DREQ0_PE,
7262306a36Sopenharmony_ci	GPIO_FN_TEND1_PD, GPIO_FN_TEND1_PE, GPIO_FN_DACK1_PD,
7362306a36Sopenharmony_ci	GPIO_FN_DACK1_PE, GPIO_FN_DREQ1_PD, GPIO_FN_DREQ1_PE,
7462306a36Sopenharmony_ci	GPIO_FN_DACK2, GPIO_FN_DREQ2,
7562306a36Sopenharmony_ci	GPIO_FN_DACK3, GPIO_FN_DREQ3,
7662306a36Sopenharmony_ci
7762306a36Sopenharmony_ci	/* ADC */
7862306a36Sopenharmony_ci	GPIO_FN_ADTRG_PD, GPIO_FN_ADTRG_PE,
7962306a36Sopenharmony_ci
8062306a36Sopenharmony_ci	/* BSC */
8162306a36Sopenharmony_ci	GPIO_FN_D31, GPIO_FN_D30, GPIO_FN_D29, GPIO_FN_D28,
8262306a36Sopenharmony_ci	GPIO_FN_D27, GPIO_FN_D26, GPIO_FN_D25, GPIO_FN_D24,
8362306a36Sopenharmony_ci	GPIO_FN_D23, GPIO_FN_D22, GPIO_FN_D21, GPIO_FN_D20,
8462306a36Sopenharmony_ci	GPIO_FN_D19, GPIO_FN_D18, GPIO_FN_D17, GPIO_FN_D16,
8562306a36Sopenharmony_ci	GPIO_FN_A25, GPIO_FN_A24, GPIO_FN_A23, GPIO_FN_A22,
8662306a36Sopenharmony_ci	GPIO_FN_A21, GPIO_FN_CS4, GPIO_FN_MRES, GPIO_FN_BS,
8762306a36Sopenharmony_ci	GPIO_FN_IOIS16, GPIO_FN_CS1, GPIO_FN_CS6_CE1B,
8862306a36Sopenharmony_ci	GPIO_FN_CE2B, GPIO_FN_CS5_CE1A, GPIO_FN_CE2A,
8962306a36Sopenharmony_ci	GPIO_FN_FRAME, GPIO_FN_WAIT, GPIO_FN_RDWR,
9062306a36Sopenharmony_ci	GPIO_FN_CKE, GPIO_FN_CASU, GPIO_FN_BREQ, GPIO_FN_RASU,
9162306a36Sopenharmony_ci	GPIO_FN_BACK, GPIO_FN_CASL, GPIO_FN_RASL,
9262306a36Sopenharmony_ci	GPIO_FN_WE3_DQMUU_AH_ICIO_WR, GPIO_FN_WE2_DQMUL_ICIORD,
9362306a36Sopenharmony_ci	GPIO_FN_WE1_DQMLU_WE, GPIO_FN_WE0_DQMLL,
9462306a36Sopenharmony_ci	GPIO_FN_CS3, GPIO_FN_CS2, GPIO_FN_A1, GPIO_FN_A0, GPIO_FN_CS7,
9562306a36Sopenharmony_ci
9662306a36Sopenharmony_ci	/* TMU */
9762306a36Sopenharmony_ci	GPIO_FN_TIOC4D, GPIO_FN_TIOC4C, GPIO_FN_TIOC4B, GPIO_FN_TIOC4A,
9862306a36Sopenharmony_ci	GPIO_FN_TIOC3D, GPIO_FN_TIOC3C, GPIO_FN_TIOC3B, GPIO_FN_TIOC3A,
9962306a36Sopenharmony_ci	GPIO_FN_TIOC2B, GPIO_FN_TIOC1B, GPIO_FN_TIOC2A, GPIO_FN_TIOC1A,
10062306a36Sopenharmony_ci	GPIO_FN_TIOC0D, GPIO_FN_TIOC0C, GPIO_FN_TIOC0B, GPIO_FN_TIOC0A,
10162306a36Sopenharmony_ci	GPIO_FN_TCLKD_PD, GPIO_FN_TCLKC_PD, GPIO_FN_TCLKB_PD, GPIO_FN_TCLKA_PD,
10262306a36Sopenharmony_ci	GPIO_FN_TCLKD_PF, GPIO_FN_TCLKC_PF, GPIO_FN_TCLKB_PF, GPIO_FN_TCLKA_PF,
10362306a36Sopenharmony_ci
10462306a36Sopenharmony_ci	/* SSU */
10562306a36Sopenharmony_ci	GPIO_FN_SCS0_PD, GPIO_FN_SSO0_PD, GPIO_FN_SSI0_PD, GPIO_FN_SSCK0_PD,
10662306a36Sopenharmony_ci	GPIO_FN_SCS0_PF, GPIO_FN_SSO0_PF, GPIO_FN_SSI0_PF, GPIO_FN_SSCK0_PF,
10762306a36Sopenharmony_ci	GPIO_FN_SCS1_PD, GPIO_FN_SSO1_PD, GPIO_FN_SSI1_PD, GPIO_FN_SSCK1_PD,
10862306a36Sopenharmony_ci	GPIO_FN_SCS1_PF, GPIO_FN_SSO1_PF, GPIO_FN_SSI1_PF, GPIO_FN_SSCK1_PF,
10962306a36Sopenharmony_ci
11062306a36Sopenharmony_ci	/* SCIF */
11162306a36Sopenharmony_ci	GPIO_FN_TXD0, GPIO_FN_RXD0, GPIO_FN_SCK0,
11262306a36Sopenharmony_ci	GPIO_FN_TXD1, GPIO_FN_RXD1, GPIO_FN_SCK1,
11362306a36Sopenharmony_ci	GPIO_FN_TXD2, GPIO_FN_RXD2, GPIO_FN_SCK2,
11462306a36Sopenharmony_ci	GPIO_FN_RTS3, GPIO_FN_CTS3, GPIO_FN_TXD3, GPIO_FN_RXD3, GPIO_FN_SCK3,
11562306a36Sopenharmony_ci
11662306a36Sopenharmony_ci	/* SSI */
11762306a36Sopenharmony_ci	GPIO_FN_AUDIO_CLK,
11862306a36Sopenharmony_ci	GPIO_FN_SSIDATA3, GPIO_FN_SSIWS3, GPIO_FN_SSISCK3,
11962306a36Sopenharmony_ci	GPIO_FN_SSIDATA2, GPIO_FN_SSIWS2, GPIO_FN_SSISCK2,
12062306a36Sopenharmony_ci	GPIO_FN_SSIDATA1, GPIO_FN_SSIWS1, GPIO_FN_SSISCK1,
12162306a36Sopenharmony_ci	GPIO_FN_SSIDATA0, GPIO_FN_SSIWS0, GPIO_FN_SSISCK0,
12262306a36Sopenharmony_ci
12362306a36Sopenharmony_ci	/* FLCTL */
12462306a36Sopenharmony_ci	GPIO_FN_FCE, GPIO_FN_FRB,
12562306a36Sopenharmony_ci	GPIO_FN_NAF7, GPIO_FN_NAF6, GPIO_FN_NAF5, GPIO_FN_NAF4,
12662306a36Sopenharmony_ci	GPIO_FN_NAF3, GPIO_FN_NAF2, GPIO_FN_NAF1, GPIO_FN_NAF0,
12762306a36Sopenharmony_ci	GPIO_FN_FSC, GPIO_FN_FOE, GPIO_FN_FCDE, GPIO_FN_FWE,
12862306a36Sopenharmony_ci
12962306a36Sopenharmony_ci	/* LCDC */
13062306a36Sopenharmony_ci	GPIO_FN_LCD_VEPWC, GPIO_FN_LCD_VCPWC,
13162306a36Sopenharmony_ci	GPIO_FN_LCD_CLK, GPIO_FN_LCD_FLM,
13262306a36Sopenharmony_ci	GPIO_FN_LCD_M_DISP, GPIO_FN_LCD_CL2,
13362306a36Sopenharmony_ci	GPIO_FN_LCD_CL1, GPIO_FN_LCD_DON,
13462306a36Sopenharmony_ci	GPIO_FN_LCD_DATA15, GPIO_FN_LCD_DATA14,
13562306a36Sopenharmony_ci	GPIO_FN_LCD_DATA13, GPIO_FN_LCD_DATA12,
13662306a36Sopenharmony_ci	GPIO_FN_LCD_DATA11, GPIO_FN_LCD_DATA10,
13762306a36Sopenharmony_ci	GPIO_FN_LCD_DATA9, GPIO_FN_LCD_DATA8,
13862306a36Sopenharmony_ci	GPIO_FN_LCD_DATA7, GPIO_FN_LCD_DATA6,
13962306a36Sopenharmony_ci	GPIO_FN_LCD_DATA5, GPIO_FN_LCD_DATA4,
14062306a36Sopenharmony_ci	GPIO_FN_LCD_DATA3, GPIO_FN_LCD_DATA2,
14162306a36Sopenharmony_ci	GPIO_FN_LCD_DATA1, GPIO_FN_LCD_DATA0,
14262306a36Sopenharmony_ci};
14362306a36Sopenharmony_ci
14462306a36Sopenharmony_ci#endif /* __ASM_SH7203_H__ */
145