diff options
-rw-r--r-- | sound/soc/blackfin/Kconfig | 85 | ||||
-rw-r--r-- | sound/soc/blackfin/Makefile | 20 |
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 @@ | |||
1 | config 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 | |||
10 | config 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 | |||
20 | config 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 | |||
34 | config 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 | |||
42 | config SND_BF5XX_SOC_SPORT | ||
43 | tristate | ||
44 | |||
45 | config SND_BF5XX_SOC_I2S | ||
46 | tristate | ||
47 | select SND_BF5XX_SOC_SPORT | ||
48 | |||
49 | config SND_BF5XX_SOC_AC97 | ||
50 | tristate | ||
51 | select AC97_BUS | ||
52 | select SND_SOC_AC97_BUS | ||
53 | select SND_BF5XX_SOC_SPORT | ||
54 | |||
55 | config 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 | |||
63 | config 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 | |||
72 | config 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 | |||
78 | config 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 | ||
2 | snd-bf5xx-ac97-objs := bf5xx-ac97-pcm.o | ||
3 | snd-bf5xx-i2s-objs := bf5xx-i2s-pcm.o | ||
4 | snd-soc-bf5xx-sport-objs := bf5xx-sport.o | ||
5 | snd-soc-bf5xx-ac97-objs := bf5xx-ac97.o | ||
6 | snd-soc-bf5xx-i2s-objs := bf5xx-i2s.o | ||
7 | |||
8 | obj-$(CONFIG_SND_BF5XX_AC97) += snd-bf5xx-ac97.o | ||
9 | obj-$(CONFIG_SND_BF5XX_I2S) += snd-bf5xx-i2s.o | ||
10 | obj-$(CONFIG_SND_BF5XX_SOC_SPORT) += snd-soc-bf5xx-sport.o | ||
11 | obj-$(CONFIG_SND_BF5XX_SOC_AC97) += snd-soc-bf5xx-ac97.o | ||
12 | obj-$(CONFIG_SND_BF5XX_SOC_I2S) += snd-soc-bf5xx-i2s.o | ||
13 | |||
14 | # Blackfin Machine Support | ||
15 | snd-ad1980-objs := bf5xx-ad1980.o | ||
16 | snd-ssm2602-objs := bf5xx-ssm2602.o | ||
17 | |||
18 | |||
19 | obj-$(CONFIG_SND_BF5XX_SOC_AD1980) += snd-ad1980.o | ||
20 | obj-$(CONFIG_SND_BF5XX_SOC_SSM2602) += snd-ssm2602.o | ||