Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 355710
b: refs/heads/master
c: c591393
h: refs/heads/master
v: v3
  • Loading branch information
Peter Ujfalusi committed Jan 22, 2013
1 parent 98b66cb commit f10de9b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 40234bf733042eb4343cb47c816619758e477eeb
refs/heads/master: c5913935657f81b8c9cae93d1a4200bba7faffb8
18 changes: 18 additions & 0 deletions trunk/arch/arm/mach-omap2/board-zoom-peripherals.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <linux/wl12xx.h>
#include <linux/mmc/host.h>
#include <linux/platform_data/gpio-omap.h>
#include <linux/platform_data/omap-twl4030.h>

#include <asm/mach-types.h>
#include <asm/mach/arch.h>
Expand Down Expand Up @@ -226,6 +227,19 @@ static struct omap2_hsmmc_info mmc[] = {
{} /* Terminator */
};

static struct omap_tw4030_pdata omap_twl4030_audio_data = {
.voice_connected = true,
.custom_routing = true,

.has_hs = OMAP_TWL4030_LEFT | OMAP_TWL4030_RIGHT,
.has_hf = OMAP_TWL4030_LEFT | OMAP_TWL4030_RIGHT,

.has_mainmic = true,
.has_submic = true,
.has_hsmic = true,
.has_linein = OMAP_TWL4030_LEFT | OMAP_TWL4030_RIGHT,
};

static int zoom_twl_gpio_setup(struct device *dev,
unsigned gpio, unsigned ngpio)
{
Expand All @@ -241,6 +255,10 @@ static int zoom_twl_gpio_setup(struct device *dev,
pr_err("Failed to get LCD_PANEL_ENABLE_GPIO (gpio%d).\n",
LCD_PANEL_ENABLE_GPIO);

/* Audio setup */
omap_twl4030_audio_data.jack_detect = gpio + 2;
omap_twl4030_audio_init("Zoom2", &omap_twl4030_audio_data);

return ret;
}

Expand Down

0 comments on commit f10de9b

Please sign in to comment.