From 1cc5939ffb20a608257e26f000479d68f9b8e0b6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=82=B1=E5=BB=BA=E6=96=8C?= Date: Mon, 14 Jan 2013 16:41:10 +0800 Subject: [PATCH] rk610 codec : spk_ctl_io filling in board(rk29) --- arch/arm/mach-rk29/board-rk29-ddr3sdk.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm/mach-rk29/board-rk29-ddr3sdk.c b/arch/arm/mach-rk29/board-rk29-ddr3sdk.c index 6bc4f213bd3e..f035a5265460 100755 --- a/arch/arm/mach-rk29/board-rk29-ddr3sdk.c +++ b/arch/arm/mach-rk29/board-rk29-ddr3sdk.c @@ -1135,7 +1135,19 @@ struct bq27510_platform_data bq27510_info = { .bat_num = LI_LION_BAT_NUM, }; #endif +#ifdef CONFIG_SND_SOC_RK610 +static int rk610_codec_io_init(void) +{ +//if need iomux. +//Must not gpio_request + return 0; +} +static struct rk610_codec_platform_data rk610_codec_pdata = { + .spk_ctl_io = RK29_PIN6_PB6, + .io_init = rk610_codec_io_init, +}; +#endif /*************************************PMU ACT8891****************************************/ #if defined (CONFIG_REGULATOR_ACT8891) @@ -1735,6 +1747,7 @@ static struct i2c_board_info __initdata board_i2c1_devices[] = { .type = "rk610_i2c_codec", .addr = 0x60, .flags = 0, + .platform_data = &rk610_codec_pdata, }, #endif -- 2.34.1