Commit b599a4d7 authored by Alexander Sverdlin's avatar Alexander Sverdlin Committed by Mark Brown

ASoC: ep93xx: Add OF support

Add the new cirrus,ep9301-ac97 and cirrus,ep9301-i2s compatibles.
Signed-off-by: default avatarAlexander Sverdlin <alexander.sverdlin@gmail.com>
Link: https://lore.kernel.org/r/20230411165951.2335899-2-alexander.sverdlin@gmail.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 13b1b952
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/clk.h> #include <linux/clk.h>
#include <linux/io.h> #include <linux/io.h>
#include <linux/of.h>
#include <sound/core.h> #include <sound/core.h>
#include <sound/dmaengine_pcm.h> #include <sound/dmaengine_pcm.h>
...@@ -514,11 +515,18 @@ static void ep93xx_i2s_remove(struct platform_device *pdev) ...@@ -514,11 +515,18 @@ static void ep93xx_i2s_remove(struct platform_device *pdev)
clk_put(info->mclk); 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 = { static struct platform_driver ep93xx_i2s_driver = {
.probe = ep93xx_i2s_probe, .probe = ep93xx_i2s_probe,
.remove_new = ep93xx_i2s_remove, .remove_new = ep93xx_i2s_remove,
.driver = { .driver = {
.name = "ep93xx-i2s", .name = "ep93xx-i2s",
.of_match_table = ep93xx_i2s_of_ids,
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment