xref: /openbmc/linux/drivers/soc/imx/imx93-src.c (revision 3bf90eca)
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Copyright 2022 NXP
4  */
5 
6 #include <linux/module.h>
7 #include <linux/of_platform.h>
8 #include <linux/platform_device.h>
9 
10 static int imx93_src_probe(struct platform_device *pdev)
11 {
12 	return devm_of_platform_populate(&pdev->dev);
13 }
14 
15 static const struct of_device_id imx93_src_ids[] = {
16 	{ .compatible = "fsl,imx93-src" },
17 	{ }
18 };
19 MODULE_DEVICE_TABLE(of, imx93_src_ids);
20 
21 static struct platform_driver imx93_src_driver = {
22 	.driver = {
23 		.name	= "imx93_src",
24 		.owner	= THIS_MODULE,
25 		.of_match_table = imx93_src_ids,
26 	},
27 	.probe = imx93_src_probe,
28 };
29 module_platform_driver(imx93_src_driver);
30 
31 MODULE_AUTHOR("Peng Fan <peng.fan@nxp.com>");
32 MODULE_DESCRIPTION("NXP i.MX93 src driver");
33 MODULE_LICENSE("GPL");
34