xref: /openbmc/linux/sound/soc/sof/imx/Kconfig (revision c6acb1e7)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
2
3config SND_SOC_SOF_IMX_TOPLEVEL
4	bool "SOF support for NXP i.MX audio DSPs"
5	depends on ARM64|| COMPILE_TEST
6	depends on SND_SOC_SOF_OF
7	help
8	  This adds support for Sound Open Firmware for NXP i.MX platforms.
9	  Say Y if you have such a device.
10	  If unsure select "N".
11
12if SND_SOC_SOF_IMX_TOPLEVEL
13
14config SND_SOC_SOF_IMX_OF
15	def_tristate SND_SOC_SOF_OF
16	select SND_SOC_SOF_IMX8 if SND_SOC_SOF_IMX8_SUPPORT
17	select SND_SOC_SOF_IMX8M if SND_SOC_SOF_IMX8M_SUPPORT
18	help
19	  This option is not user-selectable but automagically handled by
20	  'select' statements at a higher level.
21
22config SND_SOC_SOF_IMX_COMMON
23	tristate
24	help
25	  This option is not user-selectable but automagically handled by
26	  'select' statements at a higher level.
27
28config SND_SOC_SOF_IMX8_SUPPORT
29	bool "SOF support for i.MX8"
30	depends on IMX_SCU=y || IMX_SCU=SND_SOC_SOF_IMX_OF
31	depends on IMX_DSP=y || IMX_DSP=SND_SOC_SOF_IMX_OF
32	help
33	  This adds support for Sound Open Firmware for NXP i.MX8 platforms.
34	  Say Y if you have such a device.
35	  If unsure select "N".
36
37config SND_SOC_SOF_IMX8
38	tristate
39	select SND_SOC_SOF_IMX_COMMON
40	select SND_SOC_SOF_XTENSA
41	select SND_SOC_SOF_COMPRESS
42	help
43	  This option is not user-selectable but automagically handled by
44	  'select' statements at a higher level.
45
46config SND_SOC_SOF_IMX8M_SUPPORT
47	bool "SOF support for i.MX8M"
48	depends on IMX_DSP=y || IMX_DSP=SND_SOC_SOF_OF
49	help
50	  This adds support for Sound Open Firmware for NXP i.MX8M platforms.
51	  Say Y if you have such a device.
52	  If unsure select "N".
53
54config SND_SOC_SOF_IMX8M
55	tristate
56	select SND_SOC_SOF_IMX_COMMON
57	select SND_SOC_SOF_XTENSA
58	select SND_SOC_SOF_COMPRESS
59	help
60	  This option is not user-selectable but automagically handled by
61	  'select' statements at a higher level.
62
63endif ## SND_SOC_SOF_IMX_IMX_TOPLEVEL
64