2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 * Copyright (C) 2013 Google Inc.
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of
8 * the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
16 #ifndef __CPU_TI_AM335X_PINMUX_H
17 #define __CPU_TI_AM335X_PINMUX_H
22 #define SLEWCTRL (0x1 << 6)
23 #define RXACTIVE (0x1 << 5)
24 #define PULLDOWN_EN (0x0 << 4) // Pull down
25 #define PULLUP_EN (0x1 << 4) // Pull up
26 #define PULLUDEN (0x0 << 3) // Pull up enabled
27 #define PULLUDDIS (0x1 << 3) // Pull up disabled
30 void am335x_pinmux_uart0(void);
31 void am335x_pinmux_uart1(void);
32 void am335x_pinmux_uart2(void);
33 void am335x_pinmux_uart3(void);
34 void am335x_pinmux_uart4(void);
35 void am335x_pinmux_uart5(void);
37 void am335x_pinmux_mmc0(int cd
, int sk_evm
);
38 void am335x_pinmux_mmc1(void);
40 void am335x_pinmux_i2c0(void);
41 void am335x_pinmux_i2c1(void);
43 void am335x_pinmux_spi0(void);
45 void am335x_pinmux_gpio0_7(void);
47 void am335x_pinmux_rgmii1(void);
48 void am335x_pinmux_mii1(void);
50 void am335x_pinmux_nand(void);
52 #define AM335X_PINMUX_REG_ADDR 0x44e10800
54 struct am335x_pinmux_regs
{
91 uint32_t gpmc_advn_ale
;
92 uint32_t gpmc_oen_ren
;
94 uint32_t gpmc_be0n_cle
;
114 uint32_t lcd_ac_bias_en
;
136 uint32_t rmii1_refclk
;
144 uint32_t ecap0_in_pwm0_out
;
155 uint32_t mcasp0_aclkx
;
157 uint32_t mcasp0_axr0
;
158 uint32_t mcasp0_ahclkr
;
159 uint32_t mcasp0_aclkr
;
161 uint32_t mcasp0_axr1
;
162 uint32_t mcasp0_ahclkx
;
163 uint32_t xdma_event_intr0
;
164 uint32_t xdma_event_intr1
;
165 uint32_t nresetin_out
;
180 uint32_t pmic_power_en
;
184 uint32_t enz_kaldo_1p8v
;
190 uint32_t usb0_drvvbus
;
196 uint32_t usb1_drvvbus
;
249 uint32_t ddr_strben0
;
250 uint32_t ddr_strben1
;