mirror of
https://github.com/brain-hackers/linux-brain.git
synced 2024-06-09 15:26:21 +09:00
arm: imx: rename the compatible node of lpm mu driver
Because that the mailbox MU driver is used in i.MX RPMSG implementation. There is a confliction between this MU driver and the mailbox MU driver. To back-compaible with LPM of iMX6SX, iMX7D and iMX7ULP. Rename the compatible node of this MU driver. Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
This commit is contained in:
parent
8edeb92188
commit
4a8eb0f594
|
@ -334,24 +334,24 @@ static int imx_mu_probe(struct platform_device *pdev)
|
|||
struct device_node *np;
|
||||
struct device *dev = &pdev->dev;
|
||||
|
||||
np = of_find_compatible_node(NULL, NULL, "fsl,imx6sx-mu");
|
||||
np = of_find_compatible_node(NULL, NULL, "fsl,imx6sx-mu-lp");
|
||||
mu_base = of_iomap(np, 0);
|
||||
WARN_ON(!mu_base);
|
||||
|
||||
ret = of_device_is_compatible(np, "fsl,imx7ulp-mu");
|
||||
ret = of_device_is_compatible(np, "fsl,imx7ulp-mu-lp");
|
||||
if (ret)
|
||||
irq = platform_get_irq(pdev, 1);
|
||||
else
|
||||
irq = platform_get_irq(pdev, 0);
|
||||
ret = request_irq(irq, imx_mu_isr,
|
||||
IRQF_EARLY_RESUME | IRQF_SHARED, "imx-mu", dev);
|
||||
IRQF_NO_SUSPEND | IRQF_SHARED, "imx-mu-lp", dev);
|
||||
if (ret) {
|
||||
pr_err("%s: register interrupt %d failed, rc %d\n",
|
||||
__func__, irq, ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
ret = of_device_is_compatible(np, "fsl,imx7d-mu");
|
||||
ret = of_device_is_compatible(np, "fsl,imx7d-mu-lp");
|
||||
if (ret) {
|
||||
clk = devm_clk_get(&pdev->dev, "mu");
|
||||
if (IS_ERR(clk)) {
|
||||
|
@ -390,9 +390,9 @@ static int imx_mu_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
static const struct of_device_id imx_mu_ids[] = {
|
||||
{ .compatible = "fsl,imx6sx-mu" },
|
||||
{ .compatible = "fsl,imx7d-mu" },
|
||||
{ .compatible = "fsl,imx7ulp-mu" },
|
||||
{ .compatible = "fsl,imx6sx-mu-lp" },
|
||||
{ .compatible = "fsl,imx7d-mu-lp" },
|
||||
{ .compatible = "fsl,imx7ulp-mu-lp" },
|
||||
{ }
|
||||
};
|
||||
|
||||
|
@ -419,7 +419,7 @@ static const struct dev_pm_ops mu_pm_ops = {
|
|||
|
||||
static struct platform_driver imx_mu_driver = {
|
||||
.driver = {
|
||||
.name = "imx-mu",
|
||||
.name = "imx-mu-lp",
|
||||
.owner = THIS_MODULE,
|
||||
.pm = &mu_pm_ops,
|
||||
.of_match_table = imx_mu_ids,
|
||||
|
|
Loading…
Reference in New Issue
Block a user