diff options
author | Rajan Vaja <rajan.vaja@xilinx.com> | 2018-10-08 11:21:44 -0700 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2018-10-09 13:26:21 +0200 |
commit | 3b0296b8c893adb17b422179b9e779e4c32aa347 (patch) | |
tree | 81fe6d6d0ff3a833097c5cfe11442a4037bf7b07 /include/linux/firmware | |
parent | 8cc7bc8ee21f539ffabf4ff7f30a0c6be9ac5ba9 (diff) | |
download | linux-3b0296b8c893adb17b422179b9e779e4c32aa347.tar.gz linux-3b0296b8c893adb17b422179b9e779e4c32aa347.tar.bz2 linux-3b0296b8c893adb17b422179b9e779e4c32aa347.zip |
firmware: xilinx: Add zynqmp IOCTL API for device control
Add ZynqMP firmware IOCTL API to control and configure
devices like PLLs, SD, Gem, etc.
Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Signed-off-by: Jolly Shah <jollys@xilinx.com>
Acked-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'include/linux/firmware')
-rw-r--r-- | include/linux/firmware/xlnx-zynqmp.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/firmware/xlnx-zynqmp.h b/include/linux/firmware/xlnx-zynqmp.h index 015e130431e6..7a9db0861803 100644 --- a/include/linux/firmware/xlnx-zynqmp.h +++ b/include/linux/firmware/xlnx-zynqmp.h @@ -34,7 +34,8 @@ enum pm_api_id { PM_GET_API_VERSION = 1, - PM_QUERY_DATA = 35, + PM_IOCTL = 34, + PM_QUERY_DATA, PM_CLOCK_ENABLE, PM_CLOCK_DISABLE, PM_CLOCK_GETSTATE, @@ -99,6 +100,7 @@ struct zynqmp_eemi_ops { int (*clock_getrate)(u32 clock_id, u64 *rate); int (*clock_setparent)(u32 clock_id, u32 parent_id); int (*clock_getparent)(u32 clock_id, u32 *parent_id); + int (*ioctl)(u32 node_id, u32 ioctl_id, u32 arg1, u32 arg2, u32 *out); }; #if IS_REACHABLE(CONFIG_ARCH_ZYNQMP) |