18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * linux/arch/arm/mach-mv78xx0/mpp.h -- Multi Purpose Pins
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * sebastien requiem <sebastien@requiem.fr>
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * This file is licensed under the terms of the GNU General Public
88c2ecf20Sopenharmony_ci * License version 2.  This program is licensed "as is" without any
98c2ecf20Sopenharmony_ci * warranty of any kind, whether express or implied.
108c2ecf20Sopenharmony_ci */
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#ifndef __MV78X00_MPP_H
138c2ecf20Sopenharmony_ci#define __MV78X00_MPP_H
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci#define MPP(_num, _sel, _in, _out, _78100_A0) (\
168c2ecf20Sopenharmony_ci    /* MPP number */        ((_num) & 0xff) | \
178c2ecf20Sopenharmony_ci    /* MPP select value */        (((_sel) & 0xf) << 8) | \
188c2ecf20Sopenharmony_ci    /* may be input signal */    ((!!(_in)) << 12) | \
198c2ecf20Sopenharmony_ci    /* may be output signal */    ((!!(_out)) << 13) | \
208c2ecf20Sopenharmony_ci    /* available on A0 */    ((!!(_78100_A0)) << 14))
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci                /*   num sel  i  o  78100_A0  */
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci#define MPP_78100_A0_MASK    MPP(0, 0x0, 0, 0, 1)
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci#define MPP0_GPIO        MPP(0, 0x0, 1, 1, 1)
278c2ecf20Sopenharmony_ci#define MPP0_GE0_COL        MPP(0, 0x1, 0, 0, 1)
288c2ecf20Sopenharmony_ci#define MPP0_GE1_TXCLK        MPP(0, 0x2, 0, 0, 1)
298c2ecf20Sopenharmony_ci#define MPP0_UNUSED        MPP(0, 0x3, 0, 0, 1)
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci#define MPP1_GPIO        MPP(1, 0x0, 1, 1, 1)
328c2ecf20Sopenharmony_ci#define MPP1_GE0_RXERR        MPP(1, 0x1, 0, 0, 1)
338c2ecf20Sopenharmony_ci#define MPP1_GE1_TXCTL        MPP(1, 0x2, 0, 0, 1)
348c2ecf20Sopenharmony_ci#define MPP1_UNUSED        MPP(1, 0x3, 0, 0, 1)
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ci#define MPP2_GPIO        MPP(2, 0x0, 1, 1, 1)
378c2ecf20Sopenharmony_ci#define MPP2_GE0_CRS        MPP(2, 0x1, 0, 0, 1)
388c2ecf20Sopenharmony_ci#define MPP2_GE1_RXCTL        MPP(2, 0x2, 0, 0, 1)
398c2ecf20Sopenharmony_ci#define MPP2_UNUSED        MPP(2, 0x3, 0, 0, 1)
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ci#define MPP3_GPIO        MPP(3, 0x0, 1, 1, 1)
428c2ecf20Sopenharmony_ci#define MPP3_GE0_TXERR        MPP(3, 0x1, 0, 0, 1)
438c2ecf20Sopenharmony_ci#define MPP3_GE1_RXCLK        MPP(3, 0x2, 0, 0, 1)
448c2ecf20Sopenharmony_ci#define MPP3_UNUSED        MPP(3, 0x3, 0, 0, 1)
458c2ecf20Sopenharmony_ci
468c2ecf20Sopenharmony_ci#define MPP4_GPIO        MPP(4, 0x0, 1, 1, 1)
478c2ecf20Sopenharmony_ci#define MPP4_GE0_TXD4        MPP(4, 0x1, 0, 0, 1)
488c2ecf20Sopenharmony_ci#define MPP4_GE1_TXD0        MPP(4, 0x2, 0, 0, 1)
498c2ecf20Sopenharmony_ci#define MPP4_UNUSED        MPP(4, 0x3, 0, 0, 1)
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ci#define MPP5_GPIO        MPP(5, 0x0, 1, 1, 1)
528c2ecf20Sopenharmony_ci#define MPP5_GE0_TXD5        MPP(5, 0x1, 0, 0, 1)
538c2ecf20Sopenharmony_ci#define MPP5_GE1_TXD1        MPP(5, 0x2, 0, 0, 1)
548c2ecf20Sopenharmony_ci#define MPP5_UNUSED        MPP(5, 0x3, 0, 0, 1)
558c2ecf20Sopenharmony_ci
568c2ecf20Sopenharmony_ci#define MPP6_GPIO        MPP(6, 0x0, 1, 1, 1)
578c2ecf20Sopenharmony_ci#define MPP6_GE0_TXD6        MPP(6, 0x1, 0, 0, 1)
588c2ecf20Sopenharmony_ci#define MPP6_GE1_TXD2        MPP(6, 0x2, 0, 0, 1)
598c2ecf20Sopenharmony_ci#define MPP6_UNUSED        MPP(6, 0x3, 0, 0, 1)
608c2ecf20Sopenharmony_ci
618c2ecf20Sopenharmony_ci#define MPP7_GPIO        MPP(7, 0x0, 1, 1, 1)
628c2ecf20Sopenharmony_ci#define MPP7_GE0_TXD7        MPP(7, 0x1, 0, 0, 1)
638c2ecf20Sopenharmony_ci#define MPP7_GE1_TXD3        MPP(7, 0x2, 0, 0, 1)
648c2ecf20Sopenharmony_ci#define MPP7_UNUSED        MPP(7, 0x3, 0, 0, 1)
658c2ecf20Sopenharmony_ci
668c2ecf20Sopenharmony_ci#define MPP8_GPIO        MPP(8, 0x0, 1, 1, 1)
678c2ecf20Sopenharmony_ci#define MPP8_GE0_RXD4        MPP(8, 0x1, 0, 0, 1)
688c2ecf20Sopenharmony_ci#define MPP8_GE1_RXD0        MPP(8, 0x2, 0, 0, 1)
698c2ecf20Sopenharmony_ci#define MPP8_UNUSED        MPP(8, 0x3, 0, 0, 1)
708c2ecf20Sopenharmony_ci
718c2ecf20Sopenharmony_ci#define MPP9_GPIO        MPP(9, 0x0, 1, 1, 1)
728c2ecf20Sopenharmony_ci#define MPP9_GE0_RXD5        MPP(9, 0x1, 0, 0, 1)
738c2ecf20Sopenharmony_ci#define MPP9_GE1_RXD1        MPP(9, 0x2, 0, 0, 1)
748c2ecf20Sopenharmony_ci#define MPP9_UNUSED        MPP(9, 0x3, 0, 0, 1)
758c2ecf20Sopenharmony_ci
768c2ecf20Sopenharmony_ci#define MPP10_GPIO        MPP(10, 0x0, 1, 1, 1)
778c2ecf20Sopenharmony_ci#define MPP10_GE0_RXD6        MPP(10, 0x1, 0, 0, 1)
788c2ecf20Sopenharmony_ci#define MPP10_GE1_RXD2        MPP(10, 0x2, 0, 0, 1)
798c2ecf20Sopenharmony_ci#define MPP10_UNUSED        MPP(10, 0x3, 0, 0, 1)
808c2ecf20Sopenharmony_ci
818c2ecf20Sopenharmony_ci#define MPP11_GPIO        MPP(11, 0x0, 1, 1, 1)
828c2ecf20Sopenharmony_ci#define MPP11_GE0_RXD7        MPP(11, 0x1, 0, 0, 1)
838c2ecf20Sopenharmony_ci#define MPP11_GE1_RXD3        MPP(11, 0x2, 0, 0, 1)
848c2ecf20Sopenharmony_ci#define MPP11_UNUSED        MPP(11, 0x3, 0, 0, 1)
858c2ecf20Sopenharmony_ci
868c2ecf20Sopenharmony_ci#define MPP12_GPIO        MPP(12, 0x0, 1, 1, 1)
878c2ecf20Sopenharmony_ci#define MPP12_M_BB        MPP(12, 0x3, 0, 0, 1)
888c2ecf20Sopenharmony_ci#define MPP12_UA0_CTSn        MPP(12, 0x4, 0, 0, 1)
898c2ecf20Sopenharmony_ci#define MPP12_NAND_FLASH_REn0    MPP(12, 0x5, 0, 0, 1)
908c2ecf20Sopenharmony_ci#define MPP12_TDM0_SCSn        MPP(12, 0X6, 0, 0, 1)
918c2ecf20Sopenharmony_ci#define MPP12_UNUSED        MPP(12, 0x1, 0, 0, 1)
928c2ecf20Sopenharmony_ci
938c2ecf20Sopenharmony_ci#define MPP13_GPIO        MPP(13, 0x0, 1, 1, 1)
948c2ecf20Sopenharmony_ci#define MPP13_SYSRST_OUTn    MPP(13, 0x3, 0, 0, 1)
958c2ecf20Sopenharmony_ci#define MPP13_UA0_RTSn        MPP(13, 0x4, 0, 0, 1)
968c2ecf20Sopenharmony_ci#define MPP13_NAN_FLASH_WEn0    MPP(13, 0x5, 0, 0, 1)
978c2ecf20Sopenharmony_ci#define MPP13_TDM_SCLK        MPP(13, 0x6, 0, 0, 1)
988c2ecf20Sopenharmony_ci#define MPP13_UNUSED        MPP(13, 0x1, 0, 0, 1)
998c2ecf20Sopenharmony_ci
1008c2ecf20Sopenharmony_ci#define MPP14_GPIO        MPP(14, 0x0, 1, 1, 1)
1018c2ecf20Sopenharmony_ci#define MPP14_SATA1_ACTn    MPP(14, 0x3, 0, 0, 1)
1028c2ecf20Sopenharmony_ci#define MPP14_UA1_CTSn        MPP(14, 0x4, 0, 0, 1)
1038c2ecf20Sopenharmony_ci#define MPP14_NAND_FLASH_REn1    MPP(14, 0x5, 0, 0, 1)
1048c2ecf20Sopenharmony_ci#define MPP14_TDM_SMOSI        MPP(14, 0x6, 0, 0, 1)
1058c2ecf20Sopenharmony_ci#define MPP14_UNUSED        MPP(14, 0x1, 0, 0, 1)
1068c2ecf20Sopenharmony_ci
1078c2ecf20Sopenharmony_ci#define MPP15_GPIO        MPP(15, 0x0, 1, 1, 1)
1088c2ecf20Sopenharmony_ci#define MPP15_SATA0_ACTn    MPP(15, 0x3, 0, 0, 1)
1098c2ecf20Sopenharmony_ci#define MPP15_UA1_RTSn        MPP(15, 0x4, 0, 0, 1)
1108c2ecf20Sopenharmony_ci#define MPP15_NAND_FLASH_WEn1    MPP(15, 0x5, 0, 0, 1)
1118c2ecf20Sopenharmony_ci#define MPP15_TDM_SMISO        MPP(15, 0x6, 0, 0, 1)
1128c2ecf20Sopenharmony_ci#define MPP15_UNUSED        MPP(15, 0x1, 0, 0, 1)
1138c2ecf20Sopenharmony_ci
1148c2ecf20Sopenharmony_ci#define MPP16_GPIO        MPP(16, 0x0, 1, 1, 1)
1158c2ecf20Sopenharmony_ci#define MPP16_SATA1_PRESENTn    MPP(16, 0x3, 0, 0, 1)
1168c2ecf20Sopenharmony_ci#define MPP16_UA2_TXD        MPP(16, 0x4, 0, 0, 1)
1178c2ecf20Sopenharmony_ci#define MPP16_NAND_FLASH_REn3    MPP(16, 0x5, 0, 0, 1)
1188c2ecf20Sopenharmony_ci#define MPP16_TDM_INTn        MPP(16, 0x6, 0, 0, 1)
1198c2ecf20Sopenharmony_ci#define MPP16_UNUSED        MPP(16, 0x1, 0, 0, 1)
1208c2ecf20Sopenharmony_ci
1218c2ecf20Sopenharmony_ci
1228c2ecf20Sopenharmony_ci#define MPP17_GPIO        MPP(17, 0x0, 1, 1, 1)
1238c2ecf20Sopenharmony_ci#define MPP17_SATA0_PRESENTn    MPP(17, 0x3, 0, 0, 1)
1248c2ecf20Sopenharmony_ci#define MPP17_UA2_RXD        MPP(17, 0x4, 0, 0, 1)
1258c2ecf20Sopenharmony_ci#define MPP17_NAND_FLASH_WEn3    MPP(17, 0x5, 0, 0, 1)
1268c2ecf20Sopenharmony_ci#define MPP17_TDM_RSTn        MPP(17, 0x6, 0, 0, 1)
1278c2ecf20Sopenharmony_ci#define MPP17_UNUSED        MPP(17, 0x1, 0, 0, 1)
1288c2ecf20Sopenharmony_ci
1298c2ecf20Sopenharmony_ci
1308c2ecf20Sopenharmony_ci#define MPP18_GPIO        MPP(18, 0x0, 1, 1, 1)
1318c2ecf20Sopenharmony_ci#define MPP18_UA0_CTSn        MPP(18, 0x4, 0, 0, 1)
1328c2ecf20Sopenharmony_ci#define MPP18_BOOT_FLASH_REn    MPP(18, 0x5, 0, 0, 1)
1338c2ecf20Sopenharmony_ci#define MPP18_UNUSED        MPP(18, 0x1, 0, 0, 1)
1348c2ecf20Sopenharmony_ci
1358c2ecf20Sopenharmony_ci
1368c2ecf20Sopenharmony_ci
1378c2ecf20Sopenharmony_ci#define MPP19_GPIO        MPP(19, 0x0, 1, 1, 1)
1388c2ecf20Sopenharmony_ci#define MPP19_UA0_CTSn        MPP(19, 0x4, 0, 0, 1)
1398c2ecf20Sopenharmony_ci#define MPP19_BOOT_FLASH_WEn    MPP(19, 0x5, 0, 0, 1)
1408c2ecf20Sopenharmony_ci#define MPP19_UNUSED        MPP(19, 0x1, 0, 0, 1)
1418c2ecf20Sopenharmony_ci
1428c2ecf20Sopenharmony_ci
1438c2ecf20Sopenharmony_ci#define MPP20_GPIO        MPP(20, 0x0, 1, 1, 1)
1448c2ecf20Sopenharmony_ci#define MPP20_UA1_CTSs        MPP(20, 0x4, 0, 0, 1)
1458c2ecf20Sopenharmony_ci#define MPP20_TDM_PCLK        MPP(20, 0x6, 0, 0, 0)
1468c2ecf20Sopenharmony_ci#define MPP20_UNUSED        MPP(20, 0x1, 0, 0, 1)
1478c2ecf20Sopenharmony_ci
1488c2ecf20Sopenharmony_ci
1498c2ecf20Sopenharmony_ci
1508c2ecf20Sopenharmony_ci#define MPP21_GPIO        MPP(21, 0x0, 1, 1, 1)
1518c2ecf20Sopenharmony_ci#define MPP21_UA1_CTSs        MPP(21, 0x4, 0, 0, 1)
1528c2ecf20Sopenharmony_ci#define MPP21_TDM_FSYNC        MPP(21, 0x6, 0, 0, 0)
1538c2ecf20Sopenharmony_ci#define MPP21_UNUSED        MPP(21, 0x1, 0, 0, 1)
1548c2ecf20Sopenharmony_ci
1558c2ecf20Sopenharmony_ci
1568c2ecf20Sopenharmony_ci
1578c2ecf20Sopenharmony_ci#define MPP22_GPIO        MPP(22, 0x0, 1, 1, 1)
1588c2ecf20Sopenharmony_ci#define MPP22_UA3_TDX        MPP(22, 0x4, 0, 0, 1)
1598c2ecf20Sopenharmony_ci#define MPP22_NAND_FLASH_REn2    MPP(22, 0x5, 0, 0, 1)
1608c2ecf20Sopenharmony_ci#define MPP22_TDM_DRX        MPP(22, 0x6, 0, 0, 1)
1618c2ecf20Sopenharmony_ci#define MPP22_UNUSED        MPP(22, 0x1, 0, 0, 1)
1628c2ecf20Sopenharmony_ci
1638c2ecf20Sopenharmony_ci
1648c2ecf20Sopenharmony_ci
1658c2ecf20Sopenharmony_ci#define MPP23_GPIO        MPP(23, 0x0, 1, 1, 1)
1668c2ecf20Sopenharmony_ci#define MPP23_UA3_RDX        MPP(23, 0x4, 0, 0, 1)
1678c2ecf20Sopenharmony_ci#define MPP23_NAND_FLASH_WEn2    MPP(23, 0x5, 0, 0, 1)
1688c2ecf20Sopenharmony_ci#define MPP23_TDM_DTX        MPP(23, 0x6, 0, 0, 1)
1698c2ecf20Sopenharmony_ci#define MPP23_UNUSED        MPP(23, 0x1, 0, 0, 1)
1708c2ecf20Sopenharmony_ci
1718c2ecf20Sopenharmony_ci
1728c2ecf20Sopenharmony_ci#define MPP24_GPIO        MPP(24, 0x0, 1, 1, 1)
1738c2ecf20Sopenharmony_ci#define MPP24_UA2_TXD        MPP(24, 0x4, 0, 0, 1)
1748c2ecf20Sopenharmony_ci#define MPP24_TDM_INTn        MPP(24, 0x6, 0, 0, 1)
1758c2ecf20Sopenharmony_ci#define MPP24_UNUSED        MPP(24, 0x1, 0, 0, 1)
1768c2ecf20Sopenharmony_ci
1778c2ecf20Sopenharmony_ci
1788c2ecf20Sopenharmony_ci#define MPP25_GPIO        MPP(25, 0x0, 1, 1, 1)
1798c2ecf20Sopenharmony_ci#define MPP25_UA2_RXD        MPP(25, 0x4, 0, 0, 1)
1808c2ecf20Sopenharmony_ci#define MPP25_TDM_RSTn        MPP(25, 0x6, 0, 0, 1)
1818c2ecf20Sopenharmony_ci#define MPP25_UNUSED        MPP(25, 0x1, 0, 0, 1)
1828c2ecf20Sopenharmony_ci
1838c2ecf20Sopenharmony_ci
1848c2ecf20Sopenharmony_ci#define MPP26_GPIO        MPP(26, 0x0, 1, 1, 1)
1858c2ecf20Sopenharmony_ci#define MPP26_UA2_CTSn        MPP(26, 0x4, 0, 0, 1)
1868c2ecf20Sopenharmony_ci#define MPP26_TDM_PCLK        MPP(26, 0x6, 0, 0, 1)
1878c2ecf20Sopenharmony_ci#define MPP26_UNUSED        MPP(26, 0x1, 0, 0, 1)
1888c2ecf20Sopenharmony_ci
1898c2ecf20Sopenharmony_ci
1908c2ecf20Sopenharmony_ci#define MPP27_GPIO        MPP(27, 0x0, 1, 1, 1)
1918c2ecf20Sopenharmony_ci#define MPP27_UA2_RTSn        MPP(27, 0x4, 0, 0, 1)
1928c2ecf20Sopenharmony_ci#define MPP27_TDM_FSYNC        MPP(27, 0x6, 0, 0, 1)
1938c2ecf20Sopenharmony_ci#define MPP27_UNUSED        MPP(27, 0x1, 0, 0, 1)
1948c2ecf20Sopenharmony_ci
1958c2ecf20Sopenharmony_ci
1968c2ecf20Sopenharmony_ci#define MPP28_GPIO        MPP(28, 0x0, 1, 1, 1)
1978c2ecf20Sopenharmony_ci#define MPP28_UA3_TXD        MPP(28, 0x4, 0, 0, 1)
1988c2ecf20Sopenharmony_ci#define MPP28_TDM_DRX        MPP(28, 0x6, 0, 0, 1)
1998c2ecf20Sopenharmony_ci#define MPP28_UNUSED        MPP(28, 0x1, 0, 0, 1)
2008c2ecf20Sopenharmony_ci
2018c2ecf20Sopenharmony_ci#define MPP29_GPIO        MPP(29, 0x0, 1, 1, 1)
2028c2ecf20Sopenharmony_ci#define MPP29_UA3_RXD        MPP(29, 0x4, 0, 0, 1)
2038c2ecf20Sopenharmony_ci#define MPP29_SYSRST_OUTn    MPP(29, 0x5, 0, 0, 1)
2048c2ecf20Sopenharmony_ci#define MPP29_TDM_DTX        MPP(29, 0x6, 0, 0, 1)
2058c2ecf20Sopenharmony_ci#define MPP29_UNUSED        MPP(29, 0x1, 0, 0, 1)
2068c2ecf20Sopenharmony_ci
2078c2ecf20Sopenharmony_ci#define MPP30_GPIO        MPP(30, 0x0, 1, 1, 1)
2088c2ecf20Sopenharmony_ci#define MPP30_UA3_CTSn        MPP(30, 0x4, 0, 0, 1)
2098c2ecf20Sopenharmony_ci#define MPP30_UNUSED        MPP(30, 0x1, 0, 0, 1)
2108c2ecf20Sopenharmony_ci
2118c2ecf20Sopenharmony_ci#define MPP31_GPIO        MPP(31, 0x0, 1, 1, 1)
2128c2ecf20Sopenharmony_ci#define MPP31_UA3_RTSn        MPP(31, 0x4, 0, 0, 1)
2138c2ecf20Sopenharmony_ci#define MPP31_TDM1_SCSn        MPP(31, 0x6, 0, 0, 1)
2148c2ecf20Sopenharmony_ci#define MPP31_UNUSED        MPP(31, 0x1, 0, 0, 1)
2158c2ecf20Sopenharmony_ci
2168c2ecf20Sopenharmony_ci
2178c2ecf20Sopenharmony_ci#define MPP32_GPIO        MPP(32, 0x1, 1, 1, 1)
2188c2ecf20Sopenharmony_ci#define MPP32_UA3_TDX        MPP(32, 0x4, 0, 0, 1)
2198c2ecf20Sopenharmony_ci#define MPP32_SYSRST_OUTn    MPP(32, 0x5, 0, 0, 1)
2208c2ecf20Sopenharmony_ci#define MPP32_TDM0_RXQ        MPP(32, 0x6, 0, 0, 1)
2218c2ecf20Sopenharmony_ci#define MPP32_UNUSED        MPP(32, 0x3, 0, 0, 1)
2228c2ecf20Sopenharmony_ci
2238c2ecf20Sopenharmony_ci
2248c2ecf20Sopenharmony_ci#define MPP33_GPIO        MPP(33, 0x1, 1, 1, 1)
2258c2ecf20Sopenharmony_ci#define MPP33_UA3_RDX        MPP(33, 0x4, 0, 0, 1)
2268c2ecf20Sopenharmony_ci#define MPP33_TDM0_TXQ        MPP(33, 0x6, 0, 0, 1)
2278c2ecf20Sopenharmony_ci#define MPP33_UNUSED        MPP(33, 0x3, 0, 0, 1)
2288c2ecf20Sopenharmony_ci
2298c2ecf20Sopenharmony_ci
2308c2ecf20Sopenharmony_ci
2318c2ecf20Sopenharmony_ci#define MPP34_GPIO        MPP(34, 0x1, 1, 1, 1)
2328c2ecf20Sopenharmony_ci#define MPP34_UA2_TDX        MPP(34, 0x4, 0, 0, 1)
2338c2ecf20Sopenharmony_ci#define MPP34_TDM1_RXQ        MPP(34, 0x6, 0, 0, 1)
2348c2ecf20Sopenharmony_ci#define MPP34_UNUSED        MPP(34, 0x3, 0, 0, 1)
2358c2ecf20Sopenharmony_ci
2368c2ecf20Sopenharmony_ci
2378c2ecf20Sopenharmony_ci
2388c2ecf20Sopenharmony_ci#define MPP35_GPIO        MPP(35, 0x1, 1, 1, 1)
2398c2ecf20Sopenharmony_ci#define MPP35_UA2_RDX        MPP(35, 0x4, 0, 0, 1)
2408c2ecf20Sopenharmony_ci#define MPP35_TDM1_TXQ        MPP(35, 0x6, 0, 0, 1)
2418c2ecf20Sopenharmony_ci#define MPP35_UNUSED        MPP(35, 0x3, 0, 0, 1)
2428c2ecf20Sopenharmony_ci
2438c2ecf20Sopenharmony_ci#define MPP36_GPIO        MPP(36, 0x1, 1, 1, 1)
2448c2ecf20Sopenharmony_ci#define MPP36_UA0_CTSn        MPP(36, 0x2, 0, 0, 1)
2458c2ecf20Sopenharmony_ci#define MPP36_UA2_TDX        MPP(36, 0x4, 0, 0, 1)
2468c2ecf20Sopenharmony_ci#define MPP36_TDM0_SCSn        MPP(36, 0x6, 0, 0, 1)
2478c2ecf20Sopenharmony_ci#define MPP36_UNUSED        MPP(36, 0x3, 0, 0, 1)
2488c2ecf20Sopenharmony_ci
2498c2ecf20Sopenharmony_ci
2508c2ecf20Sopenharmony_ci#define MPP37_GPIO        MPP(37, 0x1, 1, 1, 1)
2518c2ecf20Sopenharmony_ci#define MPP37_UA0_RTSn        MPP(37, 0x2, 0, 0, 1)
2528c2ecf20Sopenharmony_ci#define MPP37_UA2_RXD        MPP(37, 0x4, 0, 0, 1)
2538c2ecf20Sopenharmony_ci#define MPP37_SYSRST_OUTn    MPP(37, 0x5, 0, 0, 1)
2548c2ecf20Sopenharmony_ci#define MPP37_TDM_SCLK        MPP(37, 0x6, 0, 0, 1)
2558c2ecf20Sopenharmony_ci#define MPP37_UNUSED        MPP(37, 0x3, 0, 0, 1)
2568c2ecf20Sopenharmony_ci
2578c2ecf20Sopenharmony_ci
2588c2ecf20Sopenharmony_ci
2598c2ecf20Sopenharmony_ci
2608c2ecf20Sopenharmony_ci#define MPP38_GPIO        MPP(38, 0x1, 1, 1, 1)
2618c2ecf20Sopenharmony_ci#define MPP38_UA1_CTSn        MPP(38, 0x2, 0, 0, 1)
2628c2ecf20Sopenharmony_ci#define MPP38_UA3_TXD        MPP(38, 0x4, 0, 0, 1)
2638c2ecf20Sopenharmony_ci#define MPP38_SYSRST_OUTn    MPP(38, 0x5, 0, 0, 1)
2648c2ecf20Sopenharmony_ci#define MPP38_TDM_SMOSI        MPP(38, 0x6, 0, 0, 1)
2658c2ecf20Sopenharmony_ci#define MPP38_UNUSED        MPP(38, 0x3, 0, 0, 1)
2668c2ecf20Sopenharmony_ci
2678c2ecf20Sopenharmony_ci
2688c2ecf20Sopenharmony_ci
2698c2ecf20Sopenharmony_ci
2708c2ecf20Sopenharmony_ci#define MPP39_GPIO        MPP(39, 0x1, 1, 1, 1)
2718c2ecf20Sopenharmony_ci#define MPP39_UA1_RTSn        MPP(39, 0x2, 0, 0, 1)
2728c2ecf20Sopenharmony_ci#define MPP39_UA3_RXD        MPP(39, 0x4, 0, 0, 1)
2738c2ecf20Sopenharmony_ci#define MPP39_SYSRST_OUTn    MPP(39, 0x5, 0, 0, 1)
2748c2ecf20Sopenharmony_ci#define MPP39_TDM_SMISO        MPP(39, 0x6, 0, 0, 1)
2758c2ecf20Sopenharmony_ci#define MPP39_UNUSED        MPP(39, 0x3, 0, 0, 1)
2768c2ecf20Sopenharmony_ci
2778c2ecf20Sopenharmony_ci
2788c2ecf20Sopenharmony_ci
2798c2ecf20Sopenharmony_ci#define MPP40_GPIO        MPP(40, 0x1, 1, 1, 1)
2808c2ecf20Sopenharmony_ci#define MPP40_TDM_INTn        MPP(40, 0x6, 0, 0, 1)
2818c2ecf20Sopenharmony_ci#define MPP40_UNUSED        MPP(40, 0x0, 0, 0, 1)
2828c2ecf20Sopenharmony_ci
2838c2ecf20Sopenharmony_ci
2848c2ecf20Sopenharmony_ci
2858c2ecf20Sopenharmony_ci#define MPP41_GPIO        MPP(41, 0x1, 1, 1, 1)
2868c2ecf20Sopenharmony_ci#define MPP41_TDM_RSTn        MPP(41, 0x6, 0, 0, 1)
2878c2ecf20Sopenharmony_ci#define MPP41_UNUSED        MPP(41, 0x0, 0, 0, 1)
2888c2ecf20Sopenharmony_ci
2898c2ecf20Sopenharmony_ci
2908c2ecf20Sopenharmony_ci
2918c2ecf20Sopenharmony_ci#define MPP42_GPIO        MPP(42, 0x1, 1, 1, 1)
2928c2ecf20Sopenharmony_ci#define MPP42_TDM_PCLK        MPP(42, 0x6, 0, 0, 1)
2938c2ecf20Sopenharmony_ci#define MPP42_UNUSED        MPP(42, 0x0, 0, 0, 1)
2948c2ecf20Sopenharmony_ci
2958c2ecf20Sopenharmony_ci
2968c2ecf20Sopenharmony_ci
2978c2ecf20Sopenharmony_ci#define MPP43_GPIO        MPP(43, 0x1, 1, 1, 1)
2988c2ecf20Sopenharmony_ci#define MPP43_TDM_FSYNC        MPP(43, 0x6, 0, 0, 1)
2998c2ecf20Sopenharmony_ci#define MPP43_UNUSED        MPP(43, 0x0, 0, 0, 1)
3008c2ecf20Sopenharmony_ci
3018c2ecf20Sopenharmony_ci
3028c2ecf20Sopenharmony_ci
3038c2ecf20Sopenharmony_ci#define MPP44_GPIO        MPP(44, 0x1, 1, 1, 1)
3048c2ecf20Sopenharmony_ci#define MPP44_TDM_DRX        MPP(44, 0x6, 0, 0, 1)
3058c2ecf20Sopenharmony_ci#define MPP44_UNUSED        MPP(44, 0x0, 0, 0, 1)
3068c2ecf20Sopenharmony_ci
3078c2ecf20Sopenharmony_ci
3088c2ecf20Sopenharmony_ci
3098c2ecf20Sopenharmony_ci#define MPP45_GPIO        MPP(45, 0x1, 1, 1, 1)
3108c2ecf20Sopenharmony_ci#define MPP45_SATA0_ACTn    MPP(45, 0x3, 0, 0, 1)
3118c2ecf20Sopenharmony_ci#define MPP45_TDM_DRX        MPP(45, 0x6, 0, 0, 1)
3128c2ecf20Sopenharmony_ci#define MPP45_UNUSED        MPP(45, 0x0, 0, 0, 1)
3138c2ecf20Sopenharmony_ci
3148c2ecf20Sopenharmony_ci
3158c2ecf20Sopenharmony_ci#define MPP46_GPIO        MPP(46, 0x1, 1, 1, 1)
3168c2ecf20Sopenharmony_ci#define MPP46_TDM_SCSn        MPP(46, 0x6, 0, 0, 1)
3178c2ecf20Sopenharmony_ci#define MPP46_UNUSED        MPP(46, 0x0, 0, 0, 1)
3188c2ecf20Sopenharmony_ci
3198c2ecf20Sopenharmony_ci
3208c2ecf20Sopenharmony_ci#define MPP47_GPIO        MPP(47, 0x1, 1, 1, 1)
3218c2ecf20Sopenharmony_ci#define MPP47_UNUSED        MPP(47, 0x0, 0, 0, 1)
3228c2ecf20Sopenharmony_ci
3238c2ecf20Sopenharmony_ci
3248c2ecf20Sopenharmony_ci
3258c2ecf20Sopenharmony_ci#define MPP48_GPIO        MPP(48, 0x1, 1, 1, 1)
3268c2ecf20Sopenharmony_ci#define MPP48_SATA1_ACTn    MPP(48, 0x3, 0, 0, 1)
3278c2ecf20Sopenharmony_ci#define MPP48_UNUSED        MPP(48, 0x2, 0, 0, 1)
3288c2ecf20Sopenharmony_ci
3298c2ecf20Sopenharmony_ci
3308c2ecf20Sopenharmony_ci
3318c2ecf20Sopenharmony_ci#define MPP49_GPIO        MPP(49, 0x1, 1, 1, 1)
3328c2ecf20Sopenharmony_ci#define MPP49_SATA0_ACTn    MPP(49, 0x3, 0, 0, 1)
3338c2ecf20Sopenharmony_ci#define MPP49_M_BB        MPP(49, 0x4, 0, 0, 1)
3348c2ecf20Sopenharmony_ci#define MPP49_UNUSED        MPP(49, 0x2, 0, 0, 1)
3358c2ecf20Sopenharmony_ci
3368c2ecf20Sopenharmony_ci
3378c2ecf20Sopenharmony_ci#define MPP_MAX            49
3388c2ecf20Sopenharmony_ci
3398c2ecf20Sopenharmony_civoid mv78xx0_mpp_conf(unsigned int *mpp_list);
3408c2ecf20Sopenharmony_ci
3418c2ecf20Sopenharmony_ci#endif
342