mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 12:43:55 +08:00
f2a4d8ae4d
Currently, both the WM8903 and TPS6586x chips attempt to register with
gpiolib using the same GPIO numbers. This causes the audio driver to
fail to initialize.
To solve this, add a define to board-harmony.h for the TPS6586x, and make
board-harmony-power.c use this define, instead of directly referencing
TEGRA_NR_GPIOS.
This fixes a regression introduced by commit
6f168f2fa6
.
ARM: tegra: harmony: initialize the TPS65862 PMIC
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Colin Cross <ccross@android.com>
39 lines
1.3 KiB
C
39 lines
1.3 KiB
C
/*
|
|
* 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
|
|
|
|
#define HARMONY_GPIO_TPS6586X(_x_) (TEGRA_NR_GPIOS + (_x_))
|
|
#define HARMONY_GPIO_WM8903(_x_) (HARMONY_GPIO_TPS6586X(4) + (_x_))
|
|
|
|
#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
|
|
#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
|
|
|
|
void harmony_pinmux_init(void);
|
|
int harmony_regulator_init(void);
|
|
|
|
#endif
|