Commit eeec0a13 authored by Sonic Zhang's avatar Sonic Zhang Committed by Bob Liu

bf548: ssm2602: Add ssm2602 platform data into bf548 ezkit board file.

Signed-off-by: default avatarSonic Zhang <sonic.zhang@analog.com>
Signed-off-by: default avatarBob Liu <lliubbo@gmail.com>
parent ce6da7cd
...@@ -1295,6 +1295,11 @@ static struct platform_device i2c_bfin_twi1_device = { ...@@ -1295,6 +1295,11 @@ static struct platform_device i2c_bfin_twi1_device = {
#endif #endif
static struct i2c_board_info __initdata bfin_i2c_board_info0[] = { static struct i2c_board_info __initdata bfin_i2c_board_info0[] = {
#if defined(CONFIG_SND_SOC_SSM2602) || defined(CONFIG_SND_SOC_SSM2602_MODULE)
{
I2C_BOARD_INFO("ssm2602", 0x1b),
},
#endif
}; };
#if !defined(CONFIG_BF542) /* The BF542 only has 1 TWI */ #if !defined(CONFIG_BF542) /* The BF542 only has 1 TWI */
...@@ -1387,6 +1392,8 @@ static struct platform_device bfin_dpmc = { ...@@ -1387,6 +1392,8 @@ static struct platform_device bfin_dpmc = {
static const u16 bfin_snd_pin[][7] = { static const u16 bfin_snd_pin[][7] = {
SPORT_REQ(0), SPORT_REQ(0),
SPORT_REQ(1), SPORT_REQ(1),
SPORT_REQ(2),
SPORT_REQ(3),
}; };
static struct bfin_snd_platform_data bfin_snd_data[] = { static struct bfin_snd_platform_data bfin_snd_data[] = {
...@@ -1396,6 +1403,12 @@ static struct bfin_snd_platform_data bfin_snd_data[] = { ...@@ -1396,6 +1403,12 @@ static struct bfin_snd_platform_data bfin_snd_data[] = {
{ {
.pin_req = &bfin_snd_pin[1][0], .pin_req = &bfin_snd_pin[1][0],
}, },
{
.pin_req = &bfin_snd_pin[2][0],
},
{
.pin_req = &bfin_snd_pin[3][0],
},
}; };
#define BFIN_SND_RES(x) \ #define BFIN_SND_RES(x) \
...@@ -1425,10 +1438,28 @@ static struct bfin_snd_platform_data bfin_snd_data[] = { ...@@ -1425,10 +1438,28 @@ static struct bfin_snd_platform_data bfin_snd_data[] = {
static struct resource bfin_snd_resources[][4] = { static struct resource bfin_snd_resources[][4] = {
BFIN_SND_RES(0), BFIN_SND_RES(0),
BFIN_SND_RES(1), BFIN_SND_RES(1),
BFIN_SND_RES(2),
BFIN_SND_RES(3),
}; };
#endif
static struct platform_device bfin_pcm = { #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE)
.name = "bfin-pcm-audio", static struct platform_device bfin_i2s_pcm = {
.name = "bfin-i2s-pcm-audio",
.id = -1,
};
#endif
#if defined(CONFIG_SND_BF5XX_TDM) || defined(CONFIG_SND_BF5XX_TDM_MODULE)
static struct platform_device bfin_tdm_pcm = {
.name = "bfin-tdm-pcm-audio",
.id = -1,
};
#endif
#if defined(CONFIG_SND_BF5XX_AC97) || defined(CONFIG_SND_BF5XX_AC97_MODULE)
static struct platform_device bfin_ac97_pcm = {
.name = "bfin-ac97-pcm-audio",
.id = -1, .id = -1,
}; };
#endif #endif
...@@ -1601,10 +1632,14 @@ static struct platform_device *ezkit_devices[] __initdata = { ...@@ -1601,10 +1632,14 @@ static struct platform_device *ezkit_devices[] __initdata = {
&ezkit_flash_device, &ezkit_flash_device,
#endif #endif
#if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) || \ #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE)
defined(CONFIG_SND_BF5XX_TDM) || defined(CONFIG_SND_BF5XX_TDM_MODULE) || \ &bfin_i2s_pcm,
defined(CONFIG_SND_BF5XX_AC97) || defined(CONFIG_SND_BF5XX_AC97_MODULE) #endif
&bfin_pcm, #if defined(CONFIG_SND_BF5XX_TDM) || defined(CONFIG_SND_BF5XX_TDM_MODULE)
&bfin_tdm_pcm,
#endif
#if defined(CONFIG_SND_BF5XX_AC97) || defined(CONFIG_SND_BF5XX_AC97_MODULE)
&bfin_ac97_pcm,
#endif #endif
#if defined(CONFIG_SND_BF5XX_SOC_AD1980) || defined(CONFIG_SND_BF5XX_SOC_AD1980_MODULE) #if defined(CONFIG_SND_BF5XX_SOC_AD1980) || defined(CONFIG_SND_BF5XX_SOC_AD1980_MODULE)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment