aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2012-11-30 08:40:51 -0500
committerPeter Ujfalusi <peter.ujfalusi@ti.com>2013-01-22 04:35:16 -0500
commite4f4e8bfa47431b91fbb21dd9b86d9bc2c15cbd7 (patch)
treeb8860e45829896b22ab89d0d3b9b645251424eed
parentb8e21308dd9561e37d9860c5423f3247f76f06b6 (diff)
ARM: board-zoom: Do not request LCD panel enable GPIO from twl4030
The pin in question is muxed between GPIO7 and PWM1. For backlight control there is a custom code in board-zoom-display to control the backlight. No need to request the GPIO7 - which was failing since the way it is requested no longer valid: twl's gpio range is allocated dynamically. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
-rw-r--r--arch/arm/mach-omap2/board-zoom-peripherals.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/arch/arm/mach-omap2/board-zoom-peripherals.c b/arch/arm/mach-omap2/board-zoom-peripherals.c
index f4ea92649672..0745bd93f398 100644
--- a/arch/arm/mach-omap2/board-zoom-peripherals.c
+++ b/arch/arm/mach-omap2/board-zoom-peripherals.c
@@ -38,8 +38,6 @@
38#define OMAP_ZOOM_TSC2004_IRQ_GPIO (153) 38#define OMAP_ZOOM_TSC2004_IRQ_GPIO (153)
39#define OMAP_ZOOM_WLAN_IRQ_GPIO (162) 39#define OMAP_ZOOM_WLAN_IRQ_GPIO (162)
40 40
41#define LCD_PANEL_ENABLE_GPIO (7 + OMAP_MAX_GPIO_LINES)
42
43/* Zoom2 has Qwerty keyboard*/ 41/* Zoom2 has Qwerty keyboard*/
44static uint32_t board_keymap[] = { 42static uint32_t board_keymap[] = {
45 KEY(0, 0, KEY_E), 43 KEY(0, 0, KEY_E),
@@ -243,23 +241,15 @@ static struct omap_tw4030_pdata omap_twl4030_audio_data = {
243static int zoom_twl_gpio_setup(struct device *dev, 241static int zoom_twl_gpio_setup(struct device *dev,
244 unsigned gpio, unsigned ngpio) 242 unsigned gpio, unsigned ngpio)
245{ 243{
246 int ret;
247
248 /* gpio + 0 is "mmc0_cd" (input/IRQ) */ 244 /* gpio + 0 is "mmc0_cd" (input/IRQ) */
249 mmc[0].gpio_cd = gpio + 0; 245 mmc[0].gpio_cd = gpio + 0;
250 omap_hsmmc_late_init(mmc); 246 omap_hsmmc_late_init(mmc);
251 247
252 ret = gpio_request_one(LCD_PANEL_ENABLE_GPIO, GPIOF_OUT_INIT_LOW,
253 "lcd enable");
254 if (ret)
255 pr_err("Failed to get LCD_PANEL_ENABLE_GPIO (gpio%d).\n",
256 LCD_PANEL_ENABLE_GPIO);
257
258 /* Audio setup */ 248 /* Audio setup */
259 omap_twl4030_audio_data.jack_detect = gpio + 2; 249 omap_twl4030_audio_data.jack_detect = gpio + 2;
260 omap_twl4030_audio_init("Zoom2", &omap_twl4030_audio_data); 250 omap_twl4030_audio_init("Zoom2", &omap_twl4030_audio_data);
261 251
262 return ret; 252 return 0;
263} 253}
264 254
265static struct twl4030_gpio_platform_data zoom_gpio_data = { 255static struct twl4030_gpio_platform_data zoom_gpio_data = {