aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin
diff options
context:
space:
mode:
authorBob Liu <lliubbo@gmail.com>2012-01-27 08:36:21 -0500
committerBob Liu <lliubbo@gmail.com>2012-03-20 23:00:07 -0400
commit3268968ddc978f12a4b72c8ebe8eafba68c26aa1 (patch)
treeaa038ec2ed1c08b64873096d4cec380ff3f97981 /arch/blackfin
parent57084ede395bb3c9da7905701d34a3b7d33c9356 (diff)
bfin: add bfin_ad73311_machine platform device
we can pass sport enable pin through platform data if customer board has reset pin, add it in ad73311_gpio array and modify id to 2 Signed-off-by: Scott Jiang <scott.jiang.linux@gmail.com> Signed-off-by: Bob Liu <lliubbo@gmail.com>
Diffstat (limited to 'arch/blackfin')
-rw-r--r--arch/blackfin/mach-bf537/boards/stamp.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c
index 58e17c275dc8..f2c0629f22c2 100644
--- a/arch/blackfin/mach-bf537/boards/stamp.c
+++ b/arch/blackfin/mach-bf537/boards/stamp.c
@@ -2593,6 +2593,21 @@ static struct platform_device bfin_ac97_pcm = {
2593}; 2593};
2594#endif 2594#endif
2595 2595
2596#if defined(CONFIG_SND_BF5XX_SOC_AD73311) || \
2597 defined(CONFIG_SND_BF5XX_SOC_AD73311_MODULE)
2598static const unsigned ad73311_gpio[] = {
2599 GPIO_PF4,
2600};
2601
2602static struct platform_device bfin_ad73311_machine = {
2603 .name = "bfin-snd-ad73311",
2604 .id = 1,
2605 .dev = {
2606 .platform_data = (void *)ad73311_gpio,
2607 },
2608};
2609#endif
2610
2596#if defined(CONFIG_SND_SOC_AD73311) || defined(CONFIG_SND_SOC_AD73311_MODULE) 2611#if defined(CONFIG_SND_SOC_AD73311) || defined(CONFIG_SND_SOC_AD73311_MODULE)
2597static struct platform_device bfin_ad73311_codec_device = { 2612static struct platform_device bfin_ad73311_codec_device = {
2598 .name = "ad73311", 2613 .name = "ad73311",
@@ -2862,6 +2877,11 @@ static struct platform_device *stamp_devices[] __initdata = {
2862 &bfin_ac97_pcm, 2877 &bfin_ac97_pcm,
2863#endif 2878#endif
2864 2879
2880#if defined(CONFIG_SND_BF5XX_SOC_AD73311) || \
2881 defined(CONFIG_SND_BF5XX_SOC_AD73311_MODULE)
2882 &bfin_ad73311_machine,
2883#endif
2884
2865#if defined(CONFIG_SND_SOC_AD73311) || defined(CONFIG_SND_SOC_AD73311_MODULE) 2885#if defined(CONFIG_SND_SOC_AD73311) || defined(CONFIG_SND_SOC_AD73311_MODULE)
2866 &bfin_ad73311_codec_device, 2886 &bfin_ad73311_codec_device,
2867#endif 2887#endif