diff options
author | Nava kishore Manne <nava.manne@xilinx.com> | 2019-02-06 14:07:19 +0300 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2019-02-05 15:22:58 +0300 |
commit | fe6f42cf6eb3183ebd6ab6b0b7dcbee2600c2baa (patch) | |
tree | 3e9094480e5d3a6308400f378de48048353a501f /include | |
parent | 62f0d7dc3bae9f7ce2701d6c8cfd3d93130017af (diff) | |
download | linux-fe6f42cf6eb3183ebd6ab6b0b7dcbee2600c2baa.tar.xz |
firmware: xilinx: Add zynqmp_pm_get_chipid() API
This patch adds a new API to provide access to the
hardware related data like soc revision, IDCODE... etc.
Signed-off-by: Nava kishore Manne <nava.manne@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/firmware/xlnx-zynqmp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/firmware/xlnx-zynqmp.h b/include/linux/firmware/xlnx-zynqmp.h index 07c587a0b06e..5a1f19848100 100644 --- a/include/linux/firmware/xlnx-zynqmp.h +++ b/include/linux/firmware/xlnx-zynqmp.h @@ -36,6 +36,7 @@ enum pm_api_id { PM_GET_API_VERSION = 1, PM_RESET_ASSERT = 17, PM_RESET_GET_STATUS, + PM_GET_CHIPID = 24, PM_IOCTL = 34, PM_QUERY_DATA, PM_CLOCK_ENABLE, @@ -224,6 +225,7 @@ struct zynqmp_pm_query_data { struct zynqmp_eemi_ops { int (*get_api_version)(u32 *version); + int (*get_chipid)(u32 *idcode, u32 *version); int (*query_data)(struct zynqmp_pm_query_data qdata, u32 *out); int (*clock_enable)(u32 clock_id); int (*clock_disable)(u32 clock_id); |