diff options
author | Sonic Zhang <sonic.zhang@analog.com> | 2012-03-16 00:52:34 -0400 |
---|---|---|
committer | Bob Liu <lliubbo@gmail.com> | 2012-03-20 23:00:10 -0400 |
commit | eeec0a13e5d360fe11d8354098b915f0e464b7d3 (patch) | |
tree | ea9d683f0a57f767435df2212e80dc8fe58d40c8 /arch/blackfin/mach-bf548 | |
parent | ce6da7cd896b38a68ef0e93e2cdf46a2a7c3762b (diff) |
bf548: ssm2602: Add ssm2602 platform data into bf548 ezkit board file.
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
Diffstat (limited to 'arch/blackfin/mach-bf548')
-rw-r--r-- | arch/blackfin/mach-bf548/boards/ezkit.c | 47 |
1 files changed, 41 insertions, 6 deletions
diff --git a/arch/blackfin/mach-bf548/boards/ezkit.c b/arch/blackfin/mach-bf548/boards/ezkit.c index 4595a4009554..4cadaf8d0b56 100644 --- a/arch/blackfin/mach-bf548/boards/ezkit.c +++ b/arch/blackfin/mach-bf548/boards/ezkit.c | |||
@@ -1295,6 +1295,11 @@ static struct platform_device i2c_bfin_twi1_device = { | |||
1295 | #endif | 1295 | #endif |
1296 | 1296 | ||
1297 | static struct i2c_board_info __initdata bfin_i2c_board_info0[] = { | 1297 | static struct i2c_board_info __initdata bfin_i2c_board_info0[] = { |
1298 | #if defined(CONFIG_SND_SOC_SSM2602) || defined(CONFIG_SND_SOC_SSM2602_MODULE) | ||
1299 | { | ||
1300 | I2C_BOARD_INFO("ssm2602", 0x1b), | ||
1301 | }, | ||
1302 | #endif | ||
1298 | }; | 1303 | }; |
1299 | 1304 | ||
1300 | #if !defined(CONFIG_BF542) /* The BF542 only has 1 TWI */ | 1305 | #if !defined(CONFIG_BF542) /* The BF542 only has 1 TWI */ |
@@ -1387,6 +1392,8 @@ static struct platform_device bfin_dpmc = { | |||
1387 | static const u16 bfin_snd_pin[][7] = { | 1392 | static const u16 bfin_snd_pin[][7] = { |
1388 | SPORT_REQ(0), | 1393 | SPORT_REQ(0), |
1389 | SPORT_REQ(1), | 1394 | SPORT_REQ(1), |
1395 | SPORT_REQ(2), | ||
1396 | SPORT_REQ(3), | ||
1390 | }; | 1397 | }; |
1391 | 1398 | ||
1392 | static struct bfin_snd_platform_data bfin_snd_data[] = { | 1399 | static struct bfin_snd_platform_data bfin_snd_data[] = { |
@@ -1396,6 +1403,12 @@ static struct bfin_snd_platform_data bfin_snd_data[] = { | |||
1396 | { | 1403 | { |
1397 | .pin_req = &bfin_snd_pin[1][0], | 1404 | .pin_req = &bfin_snd_pin[1][0], |
1398 | }, | 1405 | }, |
1406 | { | ||
1407 | .pin_req = &bfin_snd_pin[2][0], | ||
1408 | }, | ||
1409 | { | ||
1410 | .pin_req = &bfin_snd_pin[3][0], | ||
1411 | }, | ||
1399 | }; | 1412 | }; |
1400 | 1413 | ||
1401 | #define BFIN_SND_RES(x) \ | 1414 | #define BFIN_SND_RES(x) \ |
@@ -1425,10 +1438,28 @@ static struct bfin_snd_platform_data bfin_snd_data[] = { | |||
1425 | static struct resource bfin_snd_resources[][4] = { | 1438 | static struct resource bfin_snd_resources[][4] = { |
1426 | BFIN_SND_RES(0), | 1439 | BFIN_SND_RES(0), |
1427 | BFIN_SND_RES(1), | 1440 | BFIN_SND_RES(1), |
1441 | BFIN_SND_RES(2), | ||
1442 | BFIN_SND_RES(3), | ||
1428 | }; | 1443 | }; |
1444 | #endif | ||
1429 | 1445 | ||
1430 | static struct platform_device bfin_pcm = { | 1446 | #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) |
1431 | .name = "bfin-pcm-audio", | 1447 | static struct platform_device bfin_i2s_pcm = { |
1448 | .name = "bfin-i2s-pcm-audio", | ||
1449 | .id = -1, | ||
1450 | }; | ||
1451 | #endif | ||
1452 | |||
1453 | #if defined(CONFIG_SND_BF5XX_TDM) || defined(CONFIG_SND_BF5XX_TDM_MODULE) | ||
1454 | static struct platform_device bfin_tdm_pcm = { | ||
1455 | .name = "bfin-tdm-pcm-audio", | ||
1456 | .id = -1, | ||
1457 | }; | ||
1458 | #endif | ||
1459 | |||
1460 | #if defined(CONFIG_SND_BF5XX_AC97) || defined(CONFIG_SND_BF5XX_AC97_MODULE) | ||
1461 | static struct platform_device bfin_ac97_pcm = { | ||
1462 | .name = "bfin-ac97-pcm-audio", | ||
1432 | .id = -1, | 1463 | .id = -1, |
1433 | }; | 1464 | }; |
1434 | #endif | 1465 | #endif |
@@ -1601,10 +1632,14 @@ static struct platform_device *ezkit_devices[] __initdata = { | |||
1601 | &ezkit_flash_device, | 1632 | &ezkit_flash_device, |
1602 | #endif | 1633 | #endif |
1603 | 1634 | ||
1604 | #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) || \ | 1635 | #if defined(CONFIG_SND_BF5XX_I2S) || defined(CONFIG_SND_BF5XX_I2S_MODULE) |
1605 | defined(CONFIG_SND_BF5XX_TDM) || defined(CONFIG_SND_BF5XX_TDM_MODULE) || \ | 1636 | &bfin_i2s_pcm, |
1606 | defined(CONFIG_SND_BF5XX_AC97) || defined(CONFIG_SND_BF5XX_AC97_MODULE) | 1637 | #endif |
1607 | &bfin_pcm, | 1638 | #if defined(CONFIG_SND_BF5XX_TDM) || defined(CONFIG_SND_BF5XX_TDM_MODULE) |
1639 | &bfin_tdm_pcm, | ||
1640 | #endif | ||
1641 | #if defined(CONFIG_SND_BF5XX_AC97) || defined(CONFIG_SND_BF5XX_AC97_MODULE) | ||
1642 | &bfin_ac97_pcm, | ||
1608 | #endif | 1643 | #endif |
1609 | 1644 | ||
1610 | #if defined(CONFIG_SND_BF5XX_SOC_AD1980) || defined(CONFIG_SND_BF5XX_SOC_AD1980_MODULE) | 1645 | #if defined(CONFIG_SND_BF5XX_SOC_AD1980) || defined(CONFIG_SND_BF5XX_SOC_AD1980_MODULE) |