blob: 139d96c93843f6b94ad120789497fb4ecfde18c9 [file] [log] [blame]
Colin Cross42a7bf42010-02-10 17:13:07 -08001/*
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
Stephen Warrenea5abbd2011-09-26 19:00:02 +010020#include <mach/gpio-tegra.h>
21
Stephen Warrenf2a4d8a2011-05-31 15:14:07 -060022#define HARMONY_GPIO_TPS6586X(_x_) (TEGRA_NR_GPIOS + (_x_))
23#define HARMONY_GPIO_WM8903(_x_) (HARMONY_GPIO_TPS6586X(4) + (_x_))
Stephen Warrenef2b1a02011-03-04 22:44:29 -070024
Stephen Warren986afbe2011-03-04 22:44:28 -070025#define TEGRA_GPIO_SD2_CD TEGRA_GPIO_PI5
26#define TEGRA_GPIO_SD2_WP TEGRA_GPIO_PH1
27#define TEGRA_GPIO_SD2_POWER TEGRA_GPIO_PT3
28#define TEGRA_GPIO_SD4_CD TEGRA_GPIO_PH2
29#define TEGRA_GPIO_SD4_WP TEGRA_GPIO_PH3
30#define TEGRA_GPIO_SD4_POWER TEGRA_GPIO_PI6
Stephen Warrenef2b1a02011-03-04 22:44:29 -070031#define TEGRA_GPIO_CDC_IRQ TEGRA_GPIO_PX3
32#define TEGRA_GPIO_SPKR_EN HARMONY_GPIO_WM8903(2)
33#define TEGRA_GPIO_HP_DET TEGRA_GPIO_PW2
34#define TEGRA_GPIO_INT_MIC_EN TEGRA_GPIO_PX0
35#define TEGRA_GPIO_EXT_MIC_EN TEGRA_GPIO_PX1
Stephen Warrenab05be02011-09-22 18:16:04 +010036#define TEGRA_GPIO_EN_VDD_1V05_GPIO HARMONY_GPIO_TPS6586X(2)
Stephen Warren986afbe2011-03-04 22:44:28 -070037
Colin Cross42a7bf42010-02-10 17:13:07 -080038void harmony_pinmux_init(void);
Mike Rapoport6f168f22011-03-09 16:31:18 +020039int harmony_regulator_init(void);
Colin Cross42a7bf42010-02-10 17:13:07 -080040
41#endif