diff options
author | Ranjani Vaidyanathan <ranjani.vaidyanathan@nxp.com> | 2022-02-11 13:30:50 -0600 |
---|---|---|
committer | Philippe Schenker <philippe.schenker@toradex.com> | 2022-05-18 16:41:40 +0200 |
commit | ce6ce4777cd1f7ff185fcd399385a35333de007b (patch) | |
tree | f32f9fa9c84b70f49c81223979d21e825c8e7dbb | |
parent | 82359c9fef42c549eae16d50de9f0e1cc33a8891 (diff) |
MLK-25649-6 remoteproc: imx_proc: Add support for identifying SCU wakeup sou rce from sysfs
Consolidate SCU wakeup defines in the header file.
Signed-off-by: Ranjani Vaidyanathan <ranjani.vaidyanathan@nxp.com>
(cherry picked from commit 012932b938d28eb47d05a505705fad3735b53d5d)
-rw-r--r-- | drivers/remoteproc/imx_rproc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index 8537eccfd73a..4a4324fb5975 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -1274,7 +1274,7 @@ static int imx_rproc_probe(struct platform_device *pdev) &priv->mub_partition)) priv->mub_partition = 3; - ret = imx_scu_irq_group_enable(5, BIT(priv->mub_partition), + ret = imx_scu_irq_group_enable(IMX_SC_IRQ_GROUP_REBOOTED, BIT(priv->mub_partition), true); if (ret) { dev_warn(dev, "Enable irq failed.\n"); @@ -1283,7 +1283,7 @@ static int imx_rproc_probe(struct platform_device *pdev) ret = imx_scu_irq_register_notifier(&priv->proc_nb); if (ret) { - imx_scu_irq_group_enable(5, BIT(priv->mub_partition), + imx_scu_irq_group_enable(IMX_SC_IRQ_GROUP_REBOOTED, BIT(priv->mub_partition), false); dev_warn(dev, "reqister scu notifier failed.\n"); goto err_put_clk; |