diff options
Diffstat (limited to 'arch/arm/mach-tegra/board-harmony.h')
-rw-r--r-- | arch/arm/mach-tegra/board-harmony.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-harmony.h b/arch/arm/mach-tegra/board-harmony.h new file mode 100644 index 00000000000..edd16166990 --- /dev/null +++ b/arch/arm/mach-tegra/board-harmony.h | |||
@@ -0,0 +1,53 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-tegra/board-harmony.h | ||
3 | * | ||
4 | * Copyright (C) 2010 Google, Inc. | ||
5 | * | ||
6 | * This software is licensed under the terms of the GNU General Public | ||
7 | * License version 2, as published by the Free Software Foundation, and | ||
8 | * may be copied, distributed, and modified under those terms. | ||
9 | * | ||
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. | ||
14 | * | ||
15 | */ | ||
16 | |||
17 | #ifndef _MACH_TEGRA_BOARD_HARMONY_H | ||
18 | #define _MACH_TEGRA_BOARD_HARMONY_H | ||
19 | |||
20 | #define HARMONY_GPIO_TPS6586X(_x_) (TEGRA_NR_GPIOS + (_x_)) | ||
21 | #define HARMONY_GPIO_WM8903(_x_) (HARMONY_GPIO_TPS6586X(4) + (_x_)) | ||
22 | |||
23 | #define TEGRA_GPIO_SD2_CD TEGRA_GPIO_PI5 | ||
24 | #define TEGRA_GPIO_SD2_WP TEGRA_GPIO_PH1 | ||
25 | #define TEGRA_GPIO_SD2_POWER TEGRA_GPIO_PT3 | ||
26 | #define TEGRA_GPIO_SD4_CD TEGRA_GPIO_PH2 | ||
27 | #define TEGRA_GPIO_SD4_WP TEGRA_GPIO_PH3 | ||
28 | #define TEGRA_GPIO_SD4_POWER TEGRA_GPIO_PI6 | ||
29 | #define TEGRA_GPIO_CDC_IRQ TEGRA_GPIO_PX3 | ||
30 | #define TEGRA_GPIO_SPKR_EN HARMONY_GPIO_WM8903(2) | ||
31 | #define TEGRA_GPIO_HP_DET TEGRA_GPIO_PW2 | ||
32 | #define TEGRA_GPIO_INT_MIC_EN TEGRA_GPIO_PX0 | ||
33 | #define TEGRA_GPIO_EXT_MIC_EN TEGRA_GPIO_PX1 | ||
34 | /* fixed voltage regulator enable/mode gpios */ | ||
35 | #define TPS_GPIO_EN_1V5 (HARMONY_GPIO_TPS6586X(0)) | ||
36 | #define TPS_GPIO_EN_1V2 (HARMONY_GPIO_TPS6586X(1)) | ||
37 | #define TPS_GPIO_EN_1V05 (HARMONY_GPIO_TPS6586X(2)) | ||
38 | #define TPS_GPIO_MODE_1V05 (HARMONY_GPIO_TPS6586X(3)) | ||
39 | |||
40 | /* WLAN pwr and reset gpio */ | ||
41 | #define TEGRA_GPIO_WLAN_PWR_LOW TEGRA_GPIO_PK5 | ||
42 | #define TEGRA_GPIO_WLAN_RST_LOW TEGRA_GPIO_PK6 | ||
43 | |||
44 | #define TEGRA_GPIO_POWERKEY TEGRA_GPIO_PV2 | ||
45 | |||
46 | void harmony_pinmux_init(void); | ||
47 | int harmony_regulator_init(void); | ||
48 | int harmony_suspend_init(void); | ||
49 | int harmony_panel_init(void); | ||
50 | int harmony_kbc_init(void); | ||
51 | int harmony_pcie_init(void); | ||
52 | |||
53 | #endif | ||