Commit a8b10c64 authored by Davorin Mista's avatar Davorin Mista Committed by Michal Simek
Browse files

zynqmp: pm: update error codes to match Linux and PMU Firmware



All EEMI error codes start with value 2000.

Note: Legacy error codes ARGS (=1) and NOTSUPPORTED (=4) returned by
current ATF code have been left in place.
Signed-off-by: default avatarDavorin Mista <davorin.mista@aggios.com>
Acked-by: default avatarWill Wong <WILLW@xilinx.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
Change-Id: I939afa85957cac88025d82a80f9f6dd49be993b6
parent c23cf053
...@@ -215,26 +215,29 @@ enum pm_opchar_type { ...@@ -215,26 +215,29 @@ enum pm_opchar_type {
/** /**
* @PM_RET_SUCCESS: success * @PM_RET_SUCCESS: success
* @PM_RET_ERROR_ARGS: illegal arguments provided * @PM_RET_ERROR_ARGS: illegal arguments provided (deprecated)
* @PM_RET_ERROR_NOTSUPPORTED: feature not supported (deprecated)
* @PM_RET_ERROR_INTERNAL: internal error
* @PM_RET_ERROR_CONFLICT: conflict
* @PM_RET_ERROR_ACCESS: access rights violation * @PM_RET_ERROR_ACCESS: access rights violation
* @PM_RET_ERROR_INVALID_NODE: invalid node
* @PM_RET_ERROR_DOUBLE_REQ: duplicate request for same node
* @PM_RET_ERROR_ABORT_SUSPEND: suspend procedure has been aborted
* @PM_RET_ERROR_TIMEOUT: timeout in communication with PMU * @PM_RET_ERROR_TIMEOUT: timeout in communication with PMU
* @PM_RET_ERROR_NOTSUPPORTED: feature not supported * @PM_RET_ERROR_NODE_USED: node is already in use
* @PM_RET_ERROR_PROC: node is not a processor node
* @PM_RET_ERROR_API_ID: illegal API ID
* @PM_RET_ERROR_OTHER: other error
*/ */
enum pm_ret_status { enum pm_ret_status {
PM_RET_SUCCESS, PM_RET_SUCCESS,
PM_RET_ERROR_ARGS, PM_RET_ERROR_ARGS = 1,
PM_RET_ERROR_ACCESS, PM_RET_ERROR_NOTSUPPORTED = 4,
PM_RET_ERROR_TIMEOUT, PM_RET_ERROR_INTERNAL = 2000,
PM_RET_ERROR_NOTSUPPORTED, PM_RET_ERROR_CONFLICT = 2001,
PM_RET_ERROR_PROC, PM_RET_ERROR_ACCESS = 2002,
PM_RET_ERROR_API_ID, PM_RET_ERROR_INVALID_NODE = 2003,
PM_RET_ERROR_FAILURE, PM_RET_ERROR_DOUBLE_REQ = 2004,
PM_RET_ERROR_COMMUNIC, PM_RET_ERROR_ABORT_SUSPEND = 2005,
PM_RET_ERROR_DOUBLEREQ, PM_RET_ERROR_TIMEOUT = 2006,
PM_RET_ERROR_OTHER, PM_RET_ERROR_NODE_USED = 2007
}; };
/** /**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment