diff options
author | Alexander Sverdlin <alexander.sverdlin@gmail.com> | 2023-04-11 18:59:51 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-04-12 13:54:23 +0200 |
commit | b599a4d7d905a8e8cf5c36ccae0b3dd97c956075 (patch) | |
tree | a1b7617d65d56c6790a0fa9f192858097343a0c9 /sound/soc/cirrus | |
parent | ASoC: ep93xx: Add I2S description (diff) | |
download | linux-b599a4d7d905a8e8cf5c36ccae0b3dd97c956075.tar.xz linux-b599a4d7d905a8e8cf5c36ccae0b3dd97c956075.zip |
ASoC: ep93xx: Add OF support
Add the new cirrus,ep9301-ac97 and cirrus,ep9301-i2s compatibles.
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Link: https://lore.kernel.org/r/20230411165951.2335899-2-alexander.sverdlin@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/cirrus')
-rw-r--r-- | sound/soc/cirrus/ep93xx-i2s.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/soc/cirrus/ep93xx-i2s.c b/sound/soc/cirrus/ep93xx-i2s.c index 2abd1bce2290..afc6b5b570ea 100644 --- a/sound/soc/cirrus/ep93xx-i2s.c +++ b/sound/soc/cirrus/ep93xx-i2s.c @@ -15,6 +15,7 @@ #include <linux/slab.h> #include <linux/clk.h> #include <linux/io.h> +#include <linux/of.h> #include <sound/core.h> #include <sound/dmaengine_pcm.h> @@ -514,11 +515,18 @@ static void ep93xx_i2s_remove(struct platform_device *pdev) clk_put(info->mclk); } +static const struct of_device_id ep93xx_i2s_of_ids[] = { + { .compatible = "cirrus,ep9301-i2s" }, + {} +}; +MODULE_DEVICE_TABLE(of, ep93xx_i2s_of_ids); + static struct platform_driver ep93xx_i2s_driver = { .probe = ep93xx_i2s_probe, .remove_new = ep93xx_i2s_remove, .driver = { .name = "ep93xx-i2s", + .of_match_table = ep93xx_i2s_of_ids, }, }; |