2010-02-11 08:13:07 +07:00
|
|
|
/*
|
|
|
|
* arch/arm/mach-tegra/board-harmony.h
|
|
|
|
*
|
|
|
|
* Copyright (C) 2010 Google, Inc.
|
|
|
|
*
|
|
|
|
* This software is licensed under the terms of the GNU General Public
|
|
|
|
* License version 2, as published by the Free Software Foundation, and
|
|
|
|
* may be copied, distributed, and modified under those terms.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _MACH_TEGRA_BOARD_HARMONY_H
|
|
|
|
#define _MACH_TEGRA_BOARD_HARMONY_H
|
|
|
|
|
2011-09-27 01:00:02 +07:00
|
|
|
#include <mach/gpio-tegra.h>
|
|
|
|
|
2011-06-01 04:14:07 +07:00
|
|
|
#define HARMONY_GPIO_TPS6586X(_x_) (TEGRA_NR_GPIOS + (_x_))
|
|
|
|
#define HARMONY_GPIO_WM8903(_x_) (HARMONY_GPIO_TPS6586X(4) + (_x_))
|
2011-03-05 12:44:29 +07:00
|
|
|
|
2011-03-05 12:44:28 +07:00
|
|
|
#define TEGRA_GPIO_SD2_CD TEGRA_GPIO_PI5
|
|
|
|
#define TEGRA_GPIO_SD2_WP TEGRA_GPIO_PH1
|
|
|
|
#define TEGRA_GPIO_SD2_POWER TEGRA_GPIO_PT3
|
|
|
|
#define TEGRA_GPIO_SD4_CD TEGRA_GPIO_PH2
|
|
|
|
#define TEGRA_GPIO_SD4_WP TEGRA_GPIO_PH3
|
|
|
|
#define TEGRA_GPIO_SD4_POWER TEGRA_GPIO_PI6
|
2011-03-05 12:44:29 +07:00
|
|
|
#define TEGRA_GPIO_CDC_IRQ TEGRA_GPIO_PX3
|
|
|
|
#define TEGRA_GPIO_SPKR_EN HARMONY_GPIO_WM8903(2)
|
|
|
|
#define TEGRA_GPIO_HP_DET TEGRA_GPIO_PW2
|
|
|
|
#define TEGRA_GPIO_INT_MIC_EN TEGRA_GPIO_PX0
|
|
|
|
#define TEGRA_GPIO_EXT_MIC_EN TEGRA_GPIO_PX1
|
2011-09-23 00:16:04 +07:00
|
|
|
#define TEGRA_GPIO_EN_VDD_1V05_GPIO HARMONY_GPIO_TPS6586X(2)
|
2011-03-05 12:44:28 +07:00
|
|
|
|
2010-02-11 08:13:07 +07:00
|
|
|
void harmony_pinmux_init(void);
|
2011-03-09 21:31:18 +07:00
|
|
|
int harmony_regulator_init(void);
|
2010-02-11 08:13:07 +07:00
|
|
|
|
|
|
|
#endif
|