^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) * linux/arch/arm/mach-mv78xx0/mpp.h -- Multi Purpose Pins
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * sebastien requiem <sebastien@requiem.fr>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) * This file is licensed under the terms of the GNU General Public
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) * License version 2. This program is licensed "as is" without any
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) * warranty of any kind, whether express or implied.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #ifndef __MV78X00_MPP_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #define __MV78X00_MPP_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #define MPP(_num, _sel, _in, _out, _78100_A0) (\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) /* MPP number */ ((_num) & 0xff) | \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) /* MPP select value */ (((_sel) & 0xf) << 8) | \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) /* may be input signal */ ((!!(_in)) << 12) | \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) /* may be output signal */ ((!!(_out)) << 13) | \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) /* available on A0 */ ((!!(_78100_A0)) << 14))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) /* num sel i o 78100_A0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) #define MPP_78100_A0_MASK MPP(0, 0x0, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) #define MPP0_GPIO MPP(0, 0x0, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #define MPP0_GE0_COL MPP(0, 0x1, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #define MPP0_GE1_TXCLK MPP(0, 0x2, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) #define MPP0_UNUSED MPP(0, 0x3, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) #define MPP1_GPIO MPP(1, 0x0, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) #define MPP1_GE0_RXERR MPP(1, 0x1, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #define MPP1_GE1_TXCTL MPP(1, 0x2, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) #define MPP1_UNUSED MPP(1, 0x3, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) #define MPP2_GPIO MPP(2, 0x0, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) #define MPP2_GE0_CRS MPP(2, 0x1, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) #define MPP2_GE1_RXCTL MPP(2, 0x2, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) #define MPP2_UNUSED MPP(2, 0x3, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) #define MPP3_GPIO MPP(3, 0x0, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) #define MPP3_GE0_TXERR MPP(3, 0x1, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) #define MPP3_GE1_RXCLK MPP(3, 0x2, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) #define MPP3_UNUSED MPP(3, 0x3, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) #define MPP4_GPIO MPP(4, 0x0, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) #define MPP4_GE0_TXD4 MPP(4, 0x1, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) #define MPP4_GE1_TXD0 MPP(4, 0x2, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) #define MPP4_UNUSED MPP(4, 0x3, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) #define MPP5_GPIO MPP(5, 0x0, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) #define MPP5_GE0_TXD5 MPP(5, 0x1, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) #define MPP5_GE1_TXD1 MPP(5, 0x2, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) #define MPP5_UNUSED MPP(5, 0x3, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) #define MPP6_GPIO MPP(6, 0x0, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) #define MPP6_GE0_TXD6 MPP(6, 0x1, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) #define MPP6_GE1_TXD2 MPP(6, 0x2, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) #define MPP6_UNUSED MPP(6, 0x3, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) #define MPP7_GPIO MPP(7, 0x0, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) #define MPP7_GE0_TXD7 MPP(7, 0x1, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) #define MPP7_GE1_TXD3 MPP(7, 0x2, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) #define MPP7_UNUSED MPP(7, 0x3, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) #define MPP8_GPIO MPP(8, 0x0, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) #define MPP8_GE0_RXD4 MPP(8, 0x1, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) #define MPP8_GE1_RXD0 MPP(8, 0x2, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) #define MPP8_UNUSED MPP(8, 0x3, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) #define MPP9_GPIO MPP(9, 0x0, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) #define MPP9_GE0_RXD5 MPP(9, 0x1, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) #define MPP9_GE1_RXD1 MPP(9, 0x2, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) #define MPP9_UNUSED MPP(9, 0x3, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) #define MPP10_GPIO MPP(10, 0x0, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) #define MPP10_GE0_RXD6 MPP(10, 0x1, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) #define MPP10_GE1_RXD2 MPP(10, 0x2, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) #define MPP10_UNUSED MPP(10, 0x3, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) #define MPP11_GPIO MPP(11, 0x0, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) #define MPP11_GE0_RXD7 MPP(11, 0x1, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) #define MPP11_GE1_RXD3 MPP(11, 0x2, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) #define MPP11_UNUSED MPP(11, 0x3, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) #define MPP12_GPIO MPP(12, 0x0, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) #define MPP12_M_BB MPP(12, 0x3, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) #define MPP12_UA0_CTSn MPP(12, 0x4, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) #define MPP12_NAND_FLASH_REn0 MPP(12, 0x5, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) #define MPP12_TDM0_SCSn MPP(12, 0X6, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91) #define MPP12_UNUSED MPP(12, 0x1, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93) #define MPP13_GPIO MPP(13, 0x0, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) #define MPP13_SYSRST_OUTn MPP(13, 0x3, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95) #define MPP13_UA0_RTSn MPP(13, 0x4, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) #define MPP13_NAN_FLASH_WEn0 MPP(13, 0x5, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97) #define MPP13_TDM_SCLK MPP(13, 0x6, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98) #define MPP13_UNUSED MPP(13, 0x1, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) #define MPP14_GPIO MPP(14, 0x0, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) #define MPP14_SATA1_ACTn MPP(14, 0x3, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) #define MPP14_UA1_CTSn MPP(14, 0x4, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) #define MPP14_NAND_FLASH_REn1 MPP(14, 0x5, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) #define MPP14_TDM_SMOSI MPP(14, 0x6, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) #define MPP14_UNUSED MPP(14, 0x1, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) #define MPP15_GPIO MPP(15, 0x0, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) #define MPP15_SATA0_ACTn MPP(15, 0x3, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) #define MPP15_UA1_RTSn MPP(15, 0x4, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) #define MPP15_NAND_FLASH_WEn1 MPP(15, 0x5, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) #define MPP15_TDM_SMISO MPP(15, 0x6, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) #define MPP15_UNUSED MPP(15, 0x1, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) #define MPP16_GPIO MPP(16, 0x0, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) #define MPP16_SATA1_PRESENTn MPP(16, 0x3, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) #define MPP16_UA2_TXD MPP(16, 0x4, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) #define MPP16_NAND_FLASH_REn3 MPP(16, 0x5, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) #define MPP16_TDM_INTn MPP(16, 0x6, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) #define MPP16_UNUSED MPP(16, 0x1, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) #define MPP17_GPIO MPP(17, 0x0, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) #define MPP17_SATA0_PRESENTn MPP(17, 0x3, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) #define MPP17_UA2_RXD MPP(17, 0x4, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) #define MPP17_NAND_FLASH_WEn3 MPP(17, 0x5, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) #define MPP17_TDM_RSTn MPP(17, 0x6, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) #define MPP17_UNUSED MPP(17, 0x1, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) #define MPP18_GPIO MPP(18, 0x0, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) #define MPP18_UA0_CTSn MPP(18, 0x4, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) #define MPP18_BOOT_FLASH_REn MPP(18, 0x5, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) #define MPP18_UNUSED MPP(18, 0x1, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) #define MPP19_GPIO MPP(19, 0x0, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) #define MPP19_UA0_CTSn MPP(19, 0x4, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) #define MPP19_BOOT_FLASH_WEn MPP(19, 0x5, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) #define MPP19_UNUSED MPP(19, 0x1, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) #define MPP20_GPIO MPP(20, 0x0, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) #define MPP20_UA1_CTSs MPP(20, 0x4, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) #define MPP20_TDM_PCLK MPP(20, 0x6, 0, 0, 0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) #define MPP20_UNUSED MPP(20, 0x1, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) #define MPP21_GPIO MPP(21, 0x0, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) #define MPP21_UA1_CTSs MPP(21, 0x4, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) #define MPP21_TDM_FSYNC MPP(21, 0x6, 0, 0, 0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) #define MPP21_UNUSED MPP(21, 0x1, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) #define MPP22_GPIO MPP(22, 0x0, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) #define MPP22_UA3_TDX MPP(22, 0x4, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) #define MPP22_NAND_FLASH_REn2 MPP(22, 0x5, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) #define MPP22_TDM_DRX MPP(22, 0x6, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) #define MPP22_UNUSED MPP(22, 0x1, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) #define MPP23_GPIO MPP(23, 0x0, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) #define MPP23_UA3_RDX MPP(23, 0x4, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) #define MPP23_NAND_FLASH_WEn2 MPP(23, 0x5, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) #define MPP23_TDM_DTX MPP(23, 0x6, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) #define MPP23_UNUSED MPP(23, 0x1, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) #define MPP24_GPIO MPP(24, 0x0, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) #define MPP24_UA2_TXD MPP(24, 0x4, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) #define MPP24_TDM_INTn MPP(24, 0x6, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) #define MPP24_UNUSED MPP(24, 0x1, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) #define MPP25_GPIO MPP(25, 0x0, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) #define MPP25_UA2_RXD MPP(25, 0x4, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) #define MPP25_TDM_RSTn MPP(25, 0x6, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) #define MPP25_UNUSED MPP(25, 0x1, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) #define MPP26_GPIO MPP(26, 0x0, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) #define MPP26_UA2_CTSn MPP(26, 0x4, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) #define MPP26_TDM_PCLK MPP(26, 0x6, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) #define MPP26_UNUSED MPP(26, 0x1, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) #define MPP27_GPIO MPP(27, 0x0, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) #define MPP27_UA2_RTSn MPP(27, 0x4, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) #define MPP27_TDM_FSYNC MPP(27, 0x6, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) #define MPP27_UNUSED MPP(27, 0x1, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) #define MPP28_GPIO MPP(28, 0x0, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) #define MPP28_UA3_TXD MPP(28, 0x4, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) #define MPP28_TDM_DRX MPP(28, 0x6, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) #define MPP28_UNUSED MPP(28, 0x1, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) #define MPP29_GPIO MPP(29, 0x0, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) #define MPP29_UA3_RXD MPP(29, 0x4, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) #define MPP29_SYSRST_OUTn MPP(29, 0x5, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) #define MPP29_TDM_DTX MPP(29, 0x6, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) #define MPP29_UNUSED MPP(29, 0x1, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) #define MPP30_GPIO MPP(30, 0x0, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) #define MPP30_UA3_CTSn MPP(30, 0x4, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) #define MPP30_UNUSED MPP(30, 0x1, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) #define MPP31_GPIO MPP(31, 0x0, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) #define MPP31_UA3_RTSn MPP(31, 0x4, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) #define MPP31_TDM1_SCSn MPP(31, 0x6, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) #define MPP31_UNUSED MPP(31, 0x1, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) #define MPP32_GPIO MPP(32, 0x1, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) #define MPP32_UA3_TDX MPP(32, 0x4, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) #define MPP32_SYSRST_OUTn MPP(32, 0x5, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) #define MPP32_TDM0_RXQ MPP(32, 0x6, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) #define MPP32_UNUSED MPP(32, 0x3, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) #define MPP33_GPIO MPP(33, 0x1, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) #define MPP33_UA3_RDX MPP(33, 0x4, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) #define MPP33_TDM0_TXQ MPP(33, 0x6, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227) #define MPP33_UNUSED MPP(33, 0x3, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 228)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 229)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 230)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 231) #define MPP34_GPIO MPP(34, 0x1, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 232) #define MPP34_UA2_TDX MPP(34, 0x4, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 233) #define MPP34_TDM1_RXQ MPP(34, 0x6, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 234) #define MPP34_UNUSED MPP(34, 0x3, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 235)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 236)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 237)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 238) #define MPP35_GPIO MPP(35, 0x1, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 239) #define MPP35_UA2_RDX MPP(35, 0x4, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 240) #define MPP35_TDM1_TXQ MPP(35, 0x6, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 241) #define MPP35_UNUSED MPP(35, 0x3, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 242)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 243) #define MPP36_GPIO MPP(36, 0x1, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 244) #define MPP36_UA0_CTSn MPP(36, 0x2, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 245) #define MPP36_UA2_TDX MPP(36, 0x4, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 246) #define MPP36_TDM0_SCSn MPP(36, 0x6, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 247) #define MPP36_UNUSED MPP(36, 0x3, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 248)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 249)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 250) #define MPP37_GPIO MPP(37, 0x1, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 251) #define MPP37_UA0_RTSn MPP(37, 0x2, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 252) #define MPP37_UA2_RXD MPP(37, 0x4, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 253) #define MPP37_SYSRST_OUTn MPP(37, 0x5, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 254) #define MPP37_TDM_SCLK MPP(37, 0x6, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 255) #define MPP37_UNUSED MPP(37, 0x3, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 256)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 257)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 258)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 259)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 260) #define MPP38_GPIO MPP(38, 0x1, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 261) #define MPP38_UA1_CTSn MPP(38, 0x2, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 262) #define MPP38_UA3_TXD MPP(38, 0x4, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 263) #define MPP38_SYSRST_OUTn MPP(38, 0x5, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 264) #define MPP38_TDM_SMOSI MPP(38, 0x6, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 265) #define MPP38_UNUSED MPP(38, 0x3, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 266)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 267)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 268)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 269)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 270) #define MPP39_GPIO MPP(39, 0x1, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 271) #define MPP39_UA1_RTSn MPP(39, 0x2, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 272) #define MPP39_UA3_RXD MPP(39, 0x4, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 273) #define MPP39_SYSRST_OUTn MPP(39, 0x5, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 274) #define MPP39_TDM_SMISO MPP(39, 0x6, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 275) #define MPP39_UNUSED MPP(39, 0x3, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 276)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 277)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 278)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 279) #define MPP40_GPIO MPP(40, 0x1, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 280) #define MPP40_TDM_INTn MPP(40, 0x6, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 281) #define MPP40_UNUSED MPP(40, 0x0, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 282)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 283)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 284)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 285) #define MPP41_GPIO MPP(41, 0x1, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 286) #define MPP41_TDM_RSTn MPP(41, 0x6, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 287) #define MPP41_UNUSED MPP(41, 0x0, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 288)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 289)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 290)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 291) #define MPP42_GPIO MPP(42, 0x1, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 292) #define MPP42_TDM_PCLK MPP(42, 0x6, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 293) #define MPP42_UNUSED MPP(42, 0x0, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 294)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 295)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 296)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 297) #define MPP43_GPIO MPP(43, 0x1, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 298) #define MPP43_TDM_FSYNC MPP(43, 0x6, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 299) #define MPP43_UNUSED MPP(43, 0x0, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 300)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 301)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 302)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 303) #define MPP44_GPIO MPP(44, 0x1, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 304) #define MPP44_TDM_DRX MPP(44, 0x6, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 305) #define MPP44_UNUSED MPP(44, 0x0, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 306)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 307)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 308)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 309) #define MPP45_GPIO MPP(45, 0x1, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 310) #define MPP45_SATA0_ACTn MPP(45, 0x3, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 311) #define MPP45_TDM_DRX MPP(45, 0x6, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 312) #define MPP45_UNUSED MPP(45, 0x0, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 313)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 314)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 315) #define MPP46_GPIO MPP(46, 0x1, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 316) #define MPP46_TDM_SCSn MPP(46, 0x6, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 317) #define MPP46_UNUSED MPP(46, 0x0, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 318)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 319)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 320) #define MPP47_GPIO MPP(47, 0x1, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 321) #define MPP47_UNUSED MPP(47, 0x0, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 322)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 323)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 324)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 325) #define MPP48_GPIO MPP(48, 0x1, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 326) #define MPP48_SATA1_ACTn MPP(48, 0x3, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 327) #define MPP48_UNUSED MPP(48, 0x2, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 328)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 329)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 330)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 331) #define MPP49_GPIO MPP(49, 0x1, 1, 1, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 332) #define MPP49_SATA0_ACTn MPP(49, 0x3, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 333) #define MPP49_M_BB MPP(49, 0x4, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 334) #define MPP49_UNUSED MPP(49, 0x2, 0, 0, 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 335)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 336)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 337) #define MPP_MAX 49
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 338)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 339) void mv78xx0_mpp_conf(unsigned int *mpp_list);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 340)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 341) #endif