blob: b200501788b70e091861078c9d9d29cc267b7617 [file] [log] [blame]
Gregory Bean1963a2a2010-08-28 10:05:44 -07001/* Copyright (c) 2010, Code Aurora Forum. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
Gregory Bean1963a2a2010-08-28 10:05:44 -070011 */
12#ifndef __ARCH_ARM_MACH_MSM_GPIOMUX_V2_H
13#define __ARCH_ARM_MACH_MSM_GPIOMUX_V2_H
14
15#define GPIOMUX_NGPIOS 173
16
17typedef u16 gpiomux_config_t;
18
19enum {
20 GPIOMUX_DRV_2MA = 0UL << 6,
21 GPIOMUX_DRV_4MA = 1UL << 6,
22 GPIOMUX_DRV_6MA = 2UL << 6,
23 GPIOMUX_DRV_8MA = 3UL << 6,
24 GPIOMUX_DRV_10MA = 4UL << 6,
25 GPIOMUX_DRV_12MA = 5UL << 6,
26 GPIOMUX_DRV_14MA = 6UL << 6,
27 GPIOMUX_DRV_16MA = 7UL << 6,
28};
29
30enum {
31 GPIOMUX_FUNC_GPIO = 0UL << 2,
32 GPIOMUX_FUNC_1 = 1UL << 2,
33 GPIOMUX_FUNC_2 = 2UL << 2,
34 GPIOMUX_FUNC_3 = 3UL << 2,
35 GPIOMUX_FUNC_4 = 4UL << 2,
36 GPIOMUX_FUNC_5 = 5UL << 2,
37 GPIOMUX_FUNC_6 = 6UL << 2,
38 GPIOMUX_FUNC_7 = 7UL << 2,
39 GPIOMUX_FUNC_8 = 8UL << 2,
40 GPIOMUX_FUNC_9 = 9UL << 2,
41 GPIOMUX_FUNC_A = 10UL << 2,
42 GPIOMUX_FUNC_B = 11UL << 2,
43 GPIOMUX_FUNC_C = 12UL << 2,
44 GPIOMUX_FUNC_D = 13UL << 2,
45 GPIOMUX_FUNC_E = 14UL << 2,
46 GPIOMUX_FUNC_F = 15UL << 2,
47};
48
49enum {
50 GPIOMUX_PULL_NONE = 0UL,
51 GPIOMUX_PULL_DOWN = 1UL,
52 GPIOMUX_PULL_KEEPER = 2UL,
53 GPIOMUX_PULL_UP = 3UL,
54};
55
56#endif