sync : rk2928 add phonepad support

commit:72d981d8fde265a5b3768be98f4ee1ed1778b19d
This commit is contained in:
xkd
2013-03-28 19:28:44 +08:00
parent ee90a398c3
commit d8d182aa52
4 changed files with 73 additions and 0 deletions

View File

@@ -55,6 +55,10 @@
#include "../../../drivers/spi/rk29_spim.h"
#endif
#ifdef CONFIG_SND_SOC_RK2928
#include "../../../sound/soc/codecs/rk2928_codec.h"
#endif
#include "board-rk2928-sdk-camera.c"
#include "board-rk2928-sdk-key.c"
@@ -809,6 +813,17 @@ struct rk29_sdmmc_platform_data default_sdmmc1_data = {
#ifdef CONFIG_SND_SOC_RK2928
static int hpctl_io_init(void)
{
int ret = 0;
return ret;
}
struct rk2928_codec_pdata rk2928_codec_pdata_info={
.hpctl = INVALID_GPIO,
.hpctl_io_init = hpctl_io_init,
};
static struct resource resources_acodec[] = {
{
.start = RK2928_ACODEC_PHYS,
@@ -827,6 +842,9 @@ static struct platform_device device_acodec = {
.id = -1,
.num_resources = ARRAY_SIZE(resources_acodec),
.resource = resources_acodec,
.dev = {
.platform_data = &rk2928_codec_pdata_info,
}
};
#endif

View File

@@ -55,6 +55,10 @@
#include "../../../drivers/spi/rk29_spim.h"
#endif
#ifdef CONFIG_SND_SOC_RK2928
#include "../../../sound/soc/codecs/rk2928_codec.h"
#endif
#include "board-rk2928-a720-camera.c"
#include "board-rk2928-a720-key.c"
@@ -584,6 +588,17 @@ struct rk29_sdmmc_platform_data default_sdmmc0_data = {
#endif // CONFIG_SDMMC0_RK29
#ifdef CONFIG_SND_SOC_RK2928
static int hpctl_io_init(void)
{
int ret=0;
return ret;
}
struct rk2928_codec_pdata rk2928_codec_pdata_info={
.hpctl = INVALID_GPIO,
.hpctl_io_init = hpctl_io_init,
};
static struct resource resources_acodec[] = {
{
.start = RK2928_ACODEC_PHYS,
@@ -602,6 +617,9 @@ static struct platform_device device_acodec = {
.id = -1,
.num_resources = ARRAY_SIZE(resources_acodec),
.resource = resources_acodec,
.dev = {
.platform_data = &rk2928_codec_pdata_info,
}
};
#endif

View File

@@ -55,6 +55,10 @@
#include "../../../drivers/spi/rk29_spim.h"
#endif
#ifdef CONFIG_SND_SOC_RK2928
#include "../../../sound/soc/codecs/rk2928_codec.h"
#endif
#include "board-rk2928-sdk-camera.c"
#include "board-rk2928-sdk-key.c"
@@ -822,6 +826,17 @@ static struct platform_device device_mt6622 = {
#endif
#ifdef CONFIG_SND_SOC_RK2928
static int hpctl_io_init(void)
{
int ret = 0;
return ret;
}
struct rk2928_codec_pdata rk2928_codec_pdata_info={
.hpctl = INVALID_GPIO,
.hpctl_io_init = hpctl_io_init,
};
static struct resource resources_acodec[] = {
{
.start = RK2928_ACODEC_PHYS,
@@ -840,6 +855,9 @@ static struct platform_device device_acodec = {
.id = -1,
.num_resources = ARRAY_SIZE(resources_acodec),
.resource = resources_acodec,
.dev = {
.platform_data = &rk2928_codec_pdata_info,
}
};
#endif

View File

@@ -53,6 +53,11 @@
#if defined(CONFIG_SPIM_RK29)
#include "../../../drivers/spi/rk29_spim.h"
#endif
#ifdef CONFIG_SND_SOC_RK2928
#include "../../../sound/soc/codecs/rk2928_codec.h"
#endif
#if defined(CONFIG_GPS_RK)
#include "../../../drivers/misc/gps/rk_gps/rk_gps.h"
#endif
@@ -685,6 +690,17 @@ static struct platform_device device_rfkill_rk = {
#endif
#ifdef CONFIG_SND_SOC_RK2928
static int hpctl_io_init(void)
{
int ret=0;
return ret;
}
struct rk2928_codec_pdata rk2928_codec_pdata_info={
.hpctl = INVALID_GPIO,
.hpctl_io_init = hpctl_io_init,
};
static struct resource resources_acodec[] = {
{
.start = RK2928_ACODEC_PHYS,
@@ -708,6 +724,9 @@ static struct platform_device device_acodec = {
.id = -1,
.num_resources = ARRAY_SIZE(resources_acodec),
.resource = resources_acodec,
.dev = {
.platform_data = &rk2928_codec_pdata_info,
}
};
#endif