]>
git.ipfire.org Git - people/ms/u-boot.git/blob - arch/arm/include/asm/arch-am33xx/mux.h
4 * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation version 2.
10 * This program is distributed "as is" WITHOUT ANY WARRANTY of any
11 * kind, whether express or implied; without even the implied warranty
12 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
22 #define MUX_CFG(value, offset) \
23 __raw_writel(value, (CTRL_BASE + offset));
25 /* PAD Control Fields */
26 #define SLEWCTRL (0x1 << 6)
27 #define RXACTIVE (0x1 << 5)
28 #define PULLDOWN_EN (0x0 << 4) /* Pull Down Selection */
29 #define PULLUP_EN (0x1 << 4) /* Pull Up Selection */
30 #define PULLUDEN (0x0 << 3) /* Pull up enabled */
31 #define PULLUDDIS (0x1 << 3) /* Pull up disabled */
32 #define MODE(val) val /* used for Readability */
36 * Field names corresponds to the pad signal name
128 int ecap0_in_pwm0_out
;
147 int xdma_event_intr0
;
148 int xdma_event_intr1
;
247 struct module_pin_mux
{
252 /* Pad control register offset */
253 #define PAD_CTRL_BASE 0x800
254 #define OFFSET(x) (unsigned int) (&((struct pad_signals *) \
258 * Configure the pin mux for the module
260 void configure_module_pin_mux(struct module_pin_mux
*mod_pin_mux
);