aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorCliff Cai <cliff.cai@analog.com>2008-09-05 06:21:42 -0400
committerJaroslav Kysela <perex@perex.cz>2008-09-09 03:11:25 -0400
commit579e8eac46d80f586cd6390013115f9a012a17db (patch)
tree8bccf9b3b6aa36c3382bc7225dc6aeb93918323a /sound/soc
parenta7e7f54f984a5c048c328216089e6cb8a9ca39bd (diff)
sound: ASoC: Blackfin: add Blackfin arch ASoC Kconfig and Makefile
Signed-off-by: Cliff Cai <cliff.cai@analog.com> Signed-off-by: Bryan Wu <cooloney@kernel.org> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/blackfin/Kconfig85
-rw-r--r--sound/soc/blackfin/Makefile20
2 files changed, 105 insertions, 0 deletions
diff --git a/sound/soc/blackfin/Kconfig b/sound/soc/blackfin/Kconfig
new file mode 100644
index 000000000000..f98331d099e7
--- /dev/null
+++ b/sound/soc/blackfin/Kconfig
@@ -0,0 +1,85 @@
1config SND_BF5XX_I2S
2 tristate "SoC I2S Audio for the ADI BF5xx chip"
3 depends on BLACKFIN && SND_SOC
4 help
5 Say Y or M if you want to add support for codecs attached to
6 the Blackfin SPORT (synchronous serial ports) interface in I2S
7 mode (supports single stereo In/Out).
8 You will also need to select the audio interfaces to support below.
9
10config SND_BF5XX_SOC_SSM2602
11 tristate "SoC SSM2602 Audio support for BF52x ezkit"
12 depends on SND_BF5XX_I2S
13 select SND_BF5XX_SOC_I2S
14 select SND_SOC_SSM2602
15 select I2C
16 select I2C_BLACKFIN_TWI
17 help
18 Say Y if you want to add support for SoC audio on BF527-EZKIT.
19
20config SND_BF5XX_AC97
21 tristate "SoC AC97 Audio for the ADI BF5xx chip"
22 depends on BLACKFIN && SND_SOC
23 help
24 Say Y or M if you want to add support for codecs attached to
25 the Blackfin SPORT (synchronous serial ports) interface in slot 16
26 mode (pseudo AC97 interface).
27 You will also need to select the audio interfaces to support below.
28
29 Note:
30 AC97 codecs which do not implment the slot-16 mode will not function
31 properly with this driver. This driver is known to work with the
32 Analog Devices line of AC97 codecs.
33
34config SND_MMAP_SUPPORT
35 bool "Enable MMAP Support"
36 depends on SND_BF5XX_AC97
37 default y
38 help
39 Say y if you want AC97 driver to support mmap mode.
40 We introduce an intermediate buffer to simulate mmap.
41
42config SND_BF5XX_SOC_SPORT
43 tristate
44
45config SND_BF5XX_SOC_I2S
46 tristate
47 select SND_BF5XX_SOC_SPORT
48
49config SND_BF5XX_SOC_AC97
50 tristate
51 select AC97_BUS
52 select SND_SOC_AC97_BUS
53 select SND_BF5XX_SOC_SPORT
54
55config SND_BF5XX_SOC_AD1980
56 tristate "SoC AD1980/1 Audio support for BF5xx"
57 depends on SND_BF5XX_AC97
58 select SND_BF5XX_SOC_AC97
59 select SND_SOC_AD1980
60 help
61 Say Y if you want to add support for SoC audio on BF5xx STAMP/EZKIT.
62
63config SND_BF5XX_SPORT_NUM
64 int "Set a SPORT for Sound chip"
65 depends on (SND_BF5XX_I2S || SND_BF5XX_AC97)
66 range 0 3 if BF54x
67 range 0 1 if (BF53x || BF561)
68 default 0
69 help
70 Set the correct SPORT for sound chip.
71
72config SND_BF5XX_HAVE_COLD_RESET
73 bool "BOARD has COLD Reset GPIO"
74 depends on SND_BF5XX_AC97
75 default y if BFIN548_EZKIT
76 default n if !BFIN548_EZKIT
77
78config SND_BF5XX_RESET_GPIO_NUM
79 int "Set a GPIO for cold reset"
80 depends on SND_BF5XX_HAVE_COLD_RESET
81 range 0 159
82 default 19 if BFIN548_EZKIT
83 default 5 if BFIN537_STAMP
84 help
85 Set the correct GPIO for RESET the sound chip.
diff --git a/sound/soc/blackfin/Makefile b/sound/soc/blackfin/Makefile
new file mode 100644
index 000000000000..9ea8bd9e0ba3
--- /dev/null
+++ b/sound/soc/blackfin/Makefile
@@ -0,0 +1,20 @@
1# Blackfin Platform Support
2snd-bf5xx-ac97-objs := bf5xx-ac97-pcm.o
3snd-bf5xx-i2s-objs := bf5xx-i2s-pcm.o
4snd-soc-bf5xx-sport-objs := bf5xx-sport.o
5snd-soc-bf5xx-ac97-objs := bf5xx-ac97.o
6snd-soc-bf5xx-i2s-objs := bf5xx-i2s.o
7
8obj-$(CONFIG_SND_BF5XX_AC97) += snd-bf5xx-ac97.o
9obj-$(CONFIG_SND_BF5XX_I2S) += snd-bf5xx-i2s.o
10obj-$(CONFIG_SND_BF5XX_SOC_SPORT) += snd-soc-bf5xx-sport.o
11obj-$(CONFIG_SND_BF5XX_SOC_AC97) += snd-soc-bf5xx-ac97.o
12obj-$(CONFIG_SND_BF5XX_SOC_I2S) += snd-soc-bf5xx-i2s.o
13
14# Blackfin Machine Support
15snd-ad1980-objs := bf5xx-ad1980.o
16snd-ssm2602-objs := bf5xx-ssm2602.o
17
18
19obj-$(CONFIG_SND_BF5XX_SOC_AD1980) += snd-ad1980.o
20obj-$(CONFIG_SND_BF5XX_SOC_SSM2602) += snd-ssm2602.o