diff options
author | Anson Huang | 2020-06-26 05:14:07 +0800 |
---|---|---|
committer | Shawn Guo | 2020-07-13 10:02:00 +0800 |
commit | a24015fa8b89e4605a9c6581d56b48d991e2b66b (patch) | |
tree | 5c74a2f0ccd9253bfe6b6f6669ac6a895961eecf /drivers/firmware/imx/imx-scu.c | |
parent | cfda066aa86227840faac7673bbdd9ae1c1d259d (diff) |
firmware: imx: Move i.MX SCU soc driver into imx firmware folder
The i.MX SCU soc driver depends on SCU firmware driver, so it has to
use platform driver model for proper defer probe operation, since
it has no device binding in DT file, a simple platform device is
created together inside the platform driver. To make it more clean,
we can just move the entire SCU soc driver into imx firmware folder
and initialized by i.MX SCU firmware driver.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'drivers/firmware/imx/imx-scu.c')
-rw-r--r-- | drivers/firmware/imx/imx-scu.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/firmware/imx/imx-scu.c b/drivers/firmware/imx/imx-scu.c index 2ab048222fe9..dca79caccd01 100644 --- a/drivers/firmware/imx/imx-scu.c +++ b/drivers/firmware/imx/imx-scu.c @@ -328,6 +328,10 @@ static int imx_scu_probe(struct platform_device *pdev) imx_sc_ipc_handle = sc_ipc; + ret = imx_scu_soc_init(dev); + if (ret) + dev_warn(dev, "failed to initialize SoC info: %d\n", ret); + ret = imx_scu_enable_general_irq_channel(dev); if (ret) dev_warn(dev, |