aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2024-02-19 13:22:39 +0800
committerJassi Brar <jassisinghbrar@gmail.com>2024-03-10 19:05:24 -0500
commit2a0ac450128bc4a8562e0606bb4b9f8eff11911f (patch)
tree6f3c16496ddc693e55f6118a6c62f3ca2f0568a7
parentmailbox: imx: get RR/TR registers num from Parameter register (diff)
downloadwireguard-linux-2a0ac450128bc4a8562e0606bb4b9f8eff11911f.tar.xz
wireguard-linux-2a0ac450128bc4a8562e0606bb4b9f8eff11911f.zip
mailbox: imx: populate sub-nodes
Some MUs such as i.MX95 MU, have internal SRAM which could be used for SCMI shared memory, so populate the sub-nodes to use the SRAM. Signed-off-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
-rw-r--r--drivers/mailbox/imx-mailbox.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mailbox/imx-mailbox.c b/drivers/mailbox/imx-mailbox.c
index 306af1880415..b36267591db2 100644
--- a/drivers/mailbox/imx-mailbox.c
+++ b/drivers/mailbox/imx-mailbox.c
@@ -16,6 +16,7 @@
#include <linux/mailbox_controller.h>
#include <linux/module.h>
#include <linux/of.h>
+#include <linux/of_platform.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#include <linux/suspend.h>
@@ -920,6 +921,8 @@ static int imx_mu_probe(struct platform_device *pdev)
if (ret)
goto disable_clk;
+ of_platform_populate(dev->of_node, NULL, NULL, dev);
+
pm_runtime_enable(dev);
ret = pm_runtime_resume_and_get(dev);