提交 1a4cdece 编写于 作者: M Misael Lopez Cruz 提交者: Peter Ujfalusi

OMAP4: SDP4430: Add twl6040 codec platform support

Configure, and enable the twl6040 codec on SDP4430.
Signed-off-by: NMisael Lopez Cruz <misael.lopez@ti.com>
Signed-off-by: NPeter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: NTony Lindgren <tony@atomide.com>
上级 1fbe9952
...@@ -425,6 +425,14 @@ static struct regulator_init_data sdp4430_vusim = { ...@@ -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 = { static struct twl4030_vibra_data twl6040_vibra = {
.vibldrv_res = 8, .vibldrv_res = 8,
.vibrdrv_res = 3, .vibrdrv_res = 3,
...@@ -435,7 +443,7 @@ static struct twl4030_vibra_data twl6040_vibra = { ...@@ -435,7 +443,7 @@ static struct twl4030_vibra_data twl6040_vibra = {
}; };
static struct twl4030_audio_data twl6040_audio = { static struct twl4030_audio_data twl6040_audio = {
.codec = NULL, .codec = &twl6040_codec,
.vibra = &twl6040_vibra, .vibra = &twl6040_vibra,
.audpwron_gpio = 127, .audpwron_gpio = 127,
.naudint_irq = OMAP44XX_IRQ_SYS_2N, .naudint_irq = OMAP44XX_IRQ_SYS_2N,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部