Lokesh Vutla | 83269d0 | 2013-07-30 11:36:28 +0530 | [diff] [blame] | 1 | /* |
| 2 | * mux_am43xx.h |
| 3 | * |
| 4 | * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/ |
| 5 | * |
| 6 | * SPDX-License-Identifier: GPL-2.0+ |
| 7 | */ |
| 8 | |
| 9 | #ifndef _MUX_AM43XX_H_ |
| 10 | #define _MUX_AM43XX_H_ |
| 11 | |
| 12 | #include <common.h> |
| 13 | #include <asm/io.h> |
| 14 | |
| 15 | #define MUX_CFG(value, offset) \ |
| 16 | __raw_writel(value, (CTRL_BASE + offset)); |
| 17 | |
| 18 | /* PAD Control Fields */ |
| 19 | #define SLEWCTRL (0x1 << 19) |
| 20 | #define RXACTIVE (0x1 << 18) |
| 21 | #define PULLDOWN_EN (0x0 << 17) /* Pull Down Selection */ |
| 22 | #define PULLUP_EN (0x1 << 17) /* Pull Up Selection */ |
| 23 | #define PULLUDEN (0x0 << 16) /* Pull up/down enable */ |
| 24 | #define PULLUDDIS (0x1 << 16) /* Pull up/down disable */ |
| 25 | #define MODE(val) val /* used for Readability */ |
| 26 | |
| 27 | /* |
| 28 | * PAD CONTROL OFFSETS |
| 29 | * Field names corresponds to the pad signal name |
| 30 | */ |
| 31 | struct pad_signals { |
| 32 | int gpmc_ad0; |
| 33 | int gpmc_ad1; |
| 34 | int gpmc_ad2; |
| 35 | int gpmc_ad3; |
| 36 | int gpmc_ad4; |
| 37 | int gpmc_ad5; |
| 38 | int gpmc_ad6; |
| 39 | int gpmc_ad7; |
| 40 | int gpmc_ad8; |
| 41 | int gpmc_ad9; |
| 42 | int gpmc_ad10; |
| 43 | int gpmc_ad11; |
| 44 | int gpmc_ad12; |
| 45 | int gpmc_ad13; |
| 46 | int gpmc_ad14; |
| 47 | int gpmc_ad15; |
| 48 | int gpmc_a0; |
| 49 | int gpmc_a1; |
| 50 | int gpmc_a2; |
| 51 | int gpmc_a3; |
| 52 | int gpmc_a4; |
| 53 | int gpmc_a5; |
| 54 | int gpmc_a6; |
| 55 | int gpmc_a7; |
| 56 | int gpmc_a8; |
| 57 | int gpmc_a9; |
| 58 | int gpmc_a10; |
| 59 | int gpmc_a11; |
| 60 | int gpmc_wait0; |
| 61 | int gpmc_wpn; |
| 62 | int gpmc_be1n; |
| 63 | int gpmc_csn0; |
| 64 | int gpmc_csn1; |
| 65 | int gpmc_csn2; |
| 66 | int gpmc_csn3; |
| 67 | int gpmc_clk; |
| 68 | int gpmc_advn_ale; |
| 69 | int gpmc_oen_ren; |
| 70 | int gpmc_wen; |
| 71 | int gpmc_be0n_cle; |
| 72 | int lcd_data0; |
| 73 | int lcd_data1; |
| 74 | int lcd_data2; |
| 75 | int lcd_data3; |
| 76 | int lcd_data4; |
| 77 | int lcd_data5; |
| 78 | int lcd_data6; |
| 79 | int lcd_data7; |
| 80 | int lcd_data8; |
| 81 | int lcd_data9; |
| 82 | int lcd_data10; |
| 83 | int lcd_data11; |
| 84 | int lcd_data12; |
| 85 | int lcd_data13; |
| 86 | int lcd_data14; |
| 87 | int lcd_data15; |
| 88 | int lcd_vsync; |
| 89 | int lcd_hsync; |
| 90 | int lcd_pclk; |
| 91 | int lcd_ac_bias_en; |
| 92 | int mmc0_dat3; |
| 93 | int mmc0_dat2; |
| 94 | int mmc0_dat1; |
| 95 | int mmc0_dat0; |
| 96 | int mmc0_clk; |
| 97 | int mmc0_cmd; |
| 98 | int mii1_col; |
| 99 | int mii1_crs; |
| 100 | int mii1_rxerr; |
| 101 | int mii1_txen; |
| 102 | int mii1_rxdv; |
| 103 | int mii1_txd3; |
| 104 | int mii1_txd2; |
| 105 | int mii1_txd1; |
| 106 | int mii1_txd0; |
| 107 | int mii1_txclk; |
| 108 | int mii1_rxclk; |
| 109 | int mii1_rxd3; |
| 110 | int mii1_rxd2; |
| 111 | int mii1_rxd1; |
| 112 | int mii1_rxd0; |
| 113 | int rmii1_refclk; |
| 114 | int mdio_data; |
| 115 | int mdio_clk; |
| 116 | int spi0_sclk; |
| 117 | int spi0_d0; |
| 118 | int spi0_d1; |
| 119 | int spi0_cs0; |
| 120 | int spi0_cs1; |
| 121 | int ecap0_in_pwm0_out; |
| 122 | int uart0_ctsn; |
| 123 | int uart0_rtsn; |
| 124 | int uart0_rxd; |
| 125 | int uart0_txd; |
| 126 | int uart1_ctsn; |
| 127 | int uart1_rtsn; |
| 128 | int uart1_rxd; |
| 129 | int uart1_txd; |
| 130 | int i2c0_sda; |
| 131 | int i2c0_scl; |
| 132 | int mcasp0_aclkx; |
| 133 | int mcasp0_fsx; |
| 134 | int mcasp0_axr0; |
| 135 | int mcasp0_ahclkr; |
| 136 | int mcasp0_aclkr; |
| 137 | int mcasp0_fsr; |
| 138 | int mcasp0_axr1; |
| 139 | int mcasp0_ahclkx; |
Bryan De Faria | 7c2b52d | 2015-04-02 10:57:07 +0200 | [diff] [blame] | 140 | int cam0_hd; |
| 141 | int cam0_vd; |
| 142 | int cam0_field; |
| 143 | int cam0_wen; |
| 144 | int cam0_pclk; |
| 145 | int cam0_data8; |
| 146 | int cam0_data9; |
| 147 | int cam1_data9; |
| 148 | int cam1_data8; |
| 149 | int cam1_hd; |
| 150 | int cam1_vd; |
| 151 | int cam1_pclk; |
| 152 | int cam1_field; |
| 153 | int cam1_wen; |
| 154 | int cam1_data0; |
| 155 | int cam1_data1; |
| 156 | int cam1_data2; |
| 157 | int cam1_data3; |
| 158 | int cam1_data4; |
| 159 | int cam1_data5; |
| 160 | int cam1_data6; |
| 161 | int cam1_data7; |
| 162 | int cam0_data0; |
| 163 | int cam0_data1; |
| 164 | int cam0_data2; |
| 165 | int cam0_data3; |
| 166 | int cam0_data4; |
| 167 | int cam0_data5; |
| 168 | int cam0_data6; |
| 169 | int cam0_data7; |
| 170 | int uart3_rxd; |
| 171 | int uart3_txd; |
| 172 | int uart3_ctsn; |
| 173 | int uart3_rtsn; |
| 174 | int gpio5_8; |
| 175 | int gpio5_9; |
| 176 | int gpio5_10; |
| 177 | int gpio5_11; |
| 178 | int gpio5_12; |
| 179 | int gpio5_13; |
| 180 | int spi4_sclk; |
| 181 | int spi4_d0; |
| 182 | int spi4_d1; |
| 183 | int spi4_cs0; |
| 184 | int spi2_sclk; |
| 185 | int spi2_d0; |
| 186 | int spi2_d1; |
| 187 | int spi2_cs0; |
| 188 | int xdma_evt_intr0; |
| 189 | int xdma_evt_intr1; |
| 190 | int clkreq; |
Lokesh Vutla | e6bd05e | 2013-12-10 15:02:19 +0530 | [diff] [blame] | 191 | int nresetin_out; |
Lokesh Vutla | e6bd05e | 2013-12-10 15:02:19 +0530 | [diff] [blame] | 192 | int rsvd1; |
Bryan De Faria | 7c2b52d | 2015-04-02 10:57:07 +0200 | [diff] [blame] | 193 | int nnmi; |
| 194 | int rsvd2; |
| 195 | int rsvd3; |
Lokesh Vutla | e6bd05e | 2013-12-10 15:02:19 +0530 | [diff] [blame] | 196 | int tms; |
| 197 | int tdi; |
| 198 | int tdo; |
| 199 | int tck; |
| 200 | int ntrst; |
| 201 | int emu0; |
| 202 | int emu1; |
| 203 | int osc1_in; |
| 204 | int osc1_out; |
Lokesh Vutla | e6bd05e | 2013-12-10 15:02:19 +0530 | [diff] [blame] | 205 | int rtc_porz; |
Bryan De Faria | 7c2b52d | 2015-04-02 10:57:07 +0200 | [diff] [blame] | 206 | int ext_wakeup0; |
| 207 | int pmic_power_en0; |
Lokesh Vutla | e6bd05e | 2013-12-10 15:02:19 +0530 | [diff] [blame] | 208 | int usb0_drvvbus; |
Lokesh Vutla | e6bd05e | 2013-12-10 15:02:19 +0530 | [diff] [blame] | 209 | int usb1_drvvbus; |
Lokesh Vutla | 83269d0 | 2013-07-30 11:36:28 +0530 | [diff] [blame] | 210 | }; |
| 211 | |
| 212 | #endif /* _MUX_AM43XX_H_ */ |