Skip to content

Commit

Permalink
OMAP4: SDP4430: Add twl6040 codec platform support
Browse files Browse the repository at this point in the history
Configure, and enable the twl6040 codec on SDP4430.

Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
  • Loading branch information
Misael Lopez Cruz authored and Peter Ujfalusi committed Jul 4, 2011
1 parent 1fbe995 commit 1a4cdec
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion arch/arm/mach-omap2/board-4430sdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,14 @@ static struct regulator_init_data sdp4430_vusim = {
},
};

static struct twl4030_codec_data twl6040_codec = {
/* single-step ramp for headset and handsfree */
.hs_left_step = 0x0f,
.hs_right_step = 0x0f,
.hf_left_step = 0x1d,
.hf_right_step = 0x1d,
};

static struct twl4030_vibra_data twl6040_vibra = {
.vibldrv_res = 8,
.vibrdrv_res = 3,
Expand All @@ -435,7 +443,7 @@ static struct twl4030_vibra_data twl6040_vibra = {
};

static struct twl4030_audio_data twl6040_audio = {
.codec = NULL,
.codec = &twl6040_codec,
.vibra = &twl6040_vibra,
.audpwron_gpio = 127,
.naudint_irq = OMAP44XX_IRQ_SYS_2N,
Expand Down

0 comments on commit 1a4cdec

Please sign in to comment.