Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 269422
b: refs/heads/master
c: ab05be0
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Warren authored and Russell King committed Sep 26, 2011
1 parent 48736aa commit 80e4aa4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cc890cd78acd7ab03442907d354b6af34e973cb3
refs/heads/master: ab05be0572bb9e17d7fe744b60724d2eaceb1beb
10 changes: 4 additions & 6 deletions trunk/arch/arm/mach-tegra/board-harmony-pcie.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,10 @@

#include <mach/pinmux.h>
#include "board.h"
#include "board-harmony.h"

#ifdef CONFIG_TEGRA_PCI

/* GPIO 3 of the PMIC */
#define EN_VDD_1V05_GPIO (TEGRA_NR_GPIOS + 2)

static int __init harmony_pcie_init(void)
{
struct regulator *regulator = NULL;
Expand All @@ -38,11 +36,11 @@ static int __init harmony_pcie_init(void)
if (!machine_is_harmony())
return 0;

err = gpio_request(EN_VDD_1V05_GPIO, "EN_VDD_1V05");
err = gpio_request(TEGRA_GPIO_EN_VDD_1V05_GPIO, "EN_VDD_1V05");
if (err)
return err;

gpio_direction_output(EN_VDD_1V05_GPIO, 1);
gpio_direction_output(TEGRA_GPIO_EN_VDD_1V05_GPIO, 1);

regulator = regulator_get(NULL, "pex_clk");
if (IS_ERR_OR_NULL(regulator))
Expand All @@ -68,7 +66,7 @@ static int __init harmony_pcie_init(void)
regulator_disable(regulator);
regulator_put(regulator);
err_reg:
gpio_free(EN_VDD_1V05_GPIO);
gpio_free(TEGRA_GPIO_EN_VDD_1V05_GPIO);

return err;
}
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-tegra/board-harmony.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#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
#define TEGRA_GPIO_EN_VDD_1V05_GPIO HARMONY_GPIO_TPS6586X(2)

void harmony_pinmux_init(void);
int harmony_regulator_init(void);
Expand Down

0 comments on commit 80e4aa4

Please sign in to comment.