firmware: xilinx: Add debugfs interface
authorRajan Vaja <rajanv@xilinx.com>
Wed, 12 Sep 2018 19:38:39 +0000 (12:38 -0700)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 26 Sep 2018 06:47:35 +0000 (08:47 +0200)
commitb321725257c17335b6a8388530366caa2c581084
tree125162c3428deeb7f36069eae10a3f596cc40f46
parentf9627312e20721681ea326bd2b7935bf8034b288
firmware: xilinx: Add debugfs interface

Firmware-debug provides debugfs interface to all APIs.
Debugfs can be used to call firmware APIs with required
parameters.

Usage:
* Calling firmware API through debugfs:
  # echo "<api-name> <arg1> .. <argn>" > /sys/.../zynqmp-firmware/pm

* Read output of last called firmware API:
  # cat /sys/.../zynqmp-firmware/pm

Refer ug1200 for more information on these APIs:
  * https://www.xilinx.com/support/documentation/user_guides/ug1200-eemi-api.pdf

Add basic debugfs file to get API version.

Signed-off-by: Rajan Vaja <rajanv@xilinx.com>
Signed-off-by: Jolly Shah <jollys@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/firmware/xilinx/Kconfig
drivers/firmware/xilinx/Makefile
drivers/firmware/xilinx/zynqmp-debug.c [new file with mode: 0644]
drivers/firmware/xilinx/zynqmp-debug.h [new file with mode: 0644]
drivers/firmware/xilinx/zynqmp.c