Commit | Line | Data |
---|---|---|
54862bf0 SW |
1 | /* |
2 | * Copyright (c) 2011, NVIDIA CORPORATION. All rights reserved. | |
3 | * | |
4 | * This software is licensed under the terms of the GNU General Public | |
5 | * License version 2, as published by the Free Software Foundation, and | |
6 | * may be copied, distributed, and modified under those terms. | |
7 | * | |
8 | * This program is distributed in the hope that it will be useful, | |
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 | * GNU General Public License for more details. | |
12 | * | |
13 | */ | |
14 | ||
15 | #ifndef __MACH_TEGRA_BOARD_PINMUX_H | |
16 | #define __MACH_TEGRA_BOARD_PINMUX_H | |
17 | ||
18 | #define GPIO_DEV "tegra-gpio" | |
19 | #define PINMUX_DEV "tegra-pinmux" | |
20 | ||
21 | struct tegra_pingroup_config; | |
22 | struct tegra_gpio_table; | |
23 | ||
24 | struct tegra_board_pinmux_conf { | |
25 | struct tegra_pingroup_config *pgs; | |
26 | int pg_count; | |
27 | ||
28 | struct tegra_drive_pingroup_config *drives; | |
29 | int drive_count; | |
30 | ||
31 | struct tegra_gpio_table *gpios; | |
32 | int gpio_count; | |
33 | }; | |
34 | ||
35 | void tegra_board_pinmux_init(struct tegra_board_pinmux_conf *conf_a, | |
36 | struct tegra_board_pinmux_conf *conf_b); | |
37 | ||
38 | #endif |