History

firmware: xilinx: Add system shutdown API interface

Add system shutdown API interface which asks firmware to perform system shutdown/restart.

Rajan Vaja committed 6 years ago

Commit fdd2ed81 parent ae5c9612 files · +19 −0Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/firmware/xlnx-zynqmp.h+6−0
@@ -64,6 +64,7 @@ · 63 unmodified lines
6464
6565 enum pm_api_id {
6666 PM_GET_API_VERSION = 1,
67+ PM_SYSTEM_SHUTDOWN = 12,
6768 PM_REQUEST_NODE = 13,
6869 PM_RELEASE_NODE,
6970 PM_SET_REQUIREMENT,
@@ -340,6 +341,7 @@ int zynqmp_pm_write_ggs(u32 index, u32 value); · 270 unmodified lines
340341 int zynqmp_pm_read_ggs(u32 index, u32 *value);
341342 int zynqmp_pm_write_pggs(u32 index, u32 value);
342343 int zynqmp_pm_read_pggs(u32 index, u32 *value);
344+int zynqmp_pm_system_shutdown(const u32 type, const u32 subtype);
343345 #else
344346 static inline struct zynqmp_eemi_ops *zynqmp_pm_get_eemi_ops(void)
345347 {
@@ -482,6 +484,10 @@ static inline int zynqmp_pm_read_pggs(u32 index, u32 *value) · 136 unmodified lines
482484 {
483485 return -ENODEV;
484486 }
487+static inline int zynqmp_pm_system_shutdown(const u32 type, const u32 subtype)
488+{
489+ return -ENODEV;
490+}
485491 #endif
486492
487493 #endif /* __FIRMWARE_ZYNQMP_H__ */