]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
ARM64: zynqmp: PM: Migrate to new shutdown interface
authorSoren Brinkmann <soren.brinkmann@xilinx.com>
Thu, 29 Sep 2016 17:32:07 +0000 (10:32 -0700)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 13 Oct 2016 12:09:03 +0000 (14:09 +0200)
Adjust to the revised firmware interface.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/soc/xilinx/zynqmp/pm.c
include/linux/soc/xilinx/zynqmp/pm.h

index 67f0507cde2345dd3ea5389e8be0d7cc39371123..c532eae52e25ed8026cffebda4e7c50c6111b2af 100644 (file)
@@ -361,9 +361,9 @@ EXPORT_SYMBOL_GPL(zynqmp_pm_set_wakeup_source);
  *
  * Return:     Returns status, either success or error+reason
  */
-int zynqmp_pm_system_shutdown(const u32 restart)
+int zynqmp_pm_system_shutdown(const u32 type, const u32 subtype)
 {
-       return invoke_pm_fn(SYSTEM_SHUTDOWN, restart, 0, 0, 0, NULL);
+       return invoke_pm_fn(SYSTEM_SHUTDOWN, type, subtype, 0, 0, NULL);
 }
 EXPORT_SYMBOL_GPL(zynqmp_pm_system_shutdown);
 
@@ -794,7 +794,7 @@ static ssize_t zynqmp_pm_debugfs_api_write(struct file *file,
                                        pm_api_arg[1], pm_api_arg[2]);
                break;
        case SYSTEM_SHUTDOWN:
-               ret = zynqmp_pm_system_shutdown(pm_api_arg[0]);
+               ret = zynqmp_pm_system_shutdown(pm_api_arg[0], pm_api_arg[1]);
                break;
        case REQUEST_NODE:
                ret = zynqmp_pm_request_node(pm_api_arg[0],
index 891a896461b3744d9a266271d2dffd00b8d97aca..394dc8fb0a1bee5163f3afc885b77442460d99f9 100644 (file)
@@ -209,7 +209,7 @@ int zynqmp_pm_request_wakeup(const u32 node,
 int zynqmp_pm_set_wakeup_source(const u32 target,
                                        const u32 wakeup_node,
                                        const u32 enable);
-int zynqmp_pm_system_shutdown(const u32 restart);
+int zynqmp_pm_system_shutdown(const u32 type, const u32 subtype);
 
 /* API for suspending of RPU */
 int zynqmp_pm_force_powerdown(const u32 target,