4 * Copyright (C) 2013 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.
16 #ifndef _MUX_TI814X_H_
17 #define _MUX_TI814X_H_
19 /* PAD Control Fields */
20 #define PINCNTL_RSV_MSK (0x3 << 18) /* Reserved bitmask */
21 #define PULLUP_EN (0x1 << 17) /* Pull UP Selection */
22 #define PULLUDEN (0x0 << 16) /* Pull up enabled */
23 #define PULLUDDIS (0x1 << 16) /* Pull up disabled */
24 #define MODE(val) val /* used for Readability */
26 #define MUX_CFG(value, offset) \
29 tmp = __raw_readl(CTRL_BASE + offset); \
30 tmp &= PINCNTL_RSV_MSK; \
31 __raw_writel(tmp | value, (CTRL_BASE + offset));\
36 * Field names corresponds to the pad signal name
311 #endif /* endif _MUX_TI814X_H_ */