summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Courbot <acourbot@nvidia.com>2011-11-28 14:38:31 +0900
committerVarun Wadekar <vwadekar@nvidia.com>2011-12-08 16:54:08 +0530
commita95c1a5071f78f4f549b6cdf5fe6ba54f6f0f0c5 (patch)
tree73213a73359ee1c5bc7cf291ba0a80a44cfdd2c7
parentc63f85d09cd95443ca47276e0f933f68099085f1 (diff)
tegra: whistler: fix usb1 vbus gpio
fix usb1 physical platform data to use the right gpio from the TCA6416 gpio expander. Bug 884315 Change-Id: I8e814613a6caf547a14923f87afe91ccd877b827 Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Reviewed-on: http://git-master/r/66875 Reviewed-by: Lokesh Pathak <lpathak@nvidia.com> Tested-by: Lokesh Pathak <lpathak@nvidia.com>
-rw-r--r--arch/arm/mach-tegra/board-whistler-sensors.c2
-rw-r--r--arch/arm/mach-tegra/board-whistler.c4
-rw-r--r--arch/arm/mach-tegra/board-whistler.h3
3 files changed, 7 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/board-whistler-sensors.c b/arch/arm/mach-tegra/board-whistler-sensors.c
index c3ce1df46373..5177770f4cbe 100644
--- a/arch/arm/mach-tegra/board-whistler-sensors.c
+++ b/arch/arm/mach-tegra/board-whistler-sensors.c
@@ -47,6 +47,7 @@
#include "gpio-names.h"
#include "cpu-tegra.h"
+#include "board-whistler.h"
#define CAMERA1_PWDN_GPIO TEGRA_GPIO_PT2
#define CAMERA1_RESET_GPIO TEGRA_GPIO_PD2
@@ -56,7 +57,6 @@
#define CAMERA_FLASH_EN1_GPIO TEGRA_GPIO_PBB4
#define CAMERA_FLASH_EN2_GPIO TEGRA_GPIO_PA0
-#define TCA6416_GPIO_BASE (TEGRA_NR_GPIOS)
#define FUSE_POWER_EN_GPIO (TCA6416_GPIO_BASE + 2)
#define ADXL34X_IRQ_GPIO TEGRA_GPIO_PAA1
diff --git a/arch/arm/mach-tegra/board-whistler.c b/arch/arm/mach-tegra/board-whistler.c
index c27ec1edc5a0..ec4bea9df79a 100644
--- a/arch/arm/mach-tegra/board-whistler.c
+++ b/arch/arm/mach-tegra/board-whistler.c
@@ -60,6 +60,8 @@
#include "pm.h"
#include "board-whistler-baseband.h"
+#define USB1_VBUS_GPIO TCA6416_GPIO_BASE
+
static struct plat_serial8250_port debug_uart_platform_data[] = {
{
.membase = IO_ADDRESS(TEGRA_UARTA_BASE),
@@ -408,7 +410,7 @@ static struct usb_phy_plat_data tegra_usb_phy_pdata[] = {
[0] = {
.instance = 0,
.vbus_irq = MAX8907C_INT_BASE + MAX8907C_IRQ_VCHG_DC_R,
- .vbus_gpio = TEGRA_GPIO_PN6,
+ .vbus_gpio = USB1_VBUS_GPIO,
},
[1] = {
.instance = 1,
diff --git a/arch/arm/mach-tegra/board-whistler.h b/arch/arm/mach-tegra/board-whistler.h
index 8ceb5dd53f8d..a31be96e915b 100644
--- a/arch/arm/mach-tegra/board-whistler.h
+++ b/arch/arm/mach-tegra/board-whistler.h
@@ -33,4 +33,7 @@ int whistler_emc_init(void);
/* Audio-related GPIOs */
#define TEGRA_GPIO_HP_DET TEGRA_GPIO_PW3
+/* TCA6416 GPIO expander */
+#define TCA6416_GPIO_BASE (TEGRA_NR_GPIOS)
+
#endif