b321725257
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>
25 lines
647 B
C
25 lines
647 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Xilinx Zynq MPSoC Firmware layer
|
|
*
|
|
* Copyright (C) 2014-2018 Xilinx
|
|
*
|
|
* Michal Simek <michal.simek@xilinx.com>
|
|
* Davorin Mista <davorin.mista@aggios.com>
|
|
* Jolly Shah <jollys@xilinx.com>
|
|
* Rajan Vaja <rajanv@xilinx.com>
|
|
*/
|
|
|
|
#ifndef __FIRMWARE_ZYNQMP_DEBUG_H__
|
|
#define __FIRMWARE_ZYNQMP_DEBUG_H__
|
|
|
|
#if IS_REACHABLE(CONFIG_ZYNQMP_FIRMWARE_DEBUG)
|
|
void zynqmp_pm_api_debugfs_init(void);
|
|
void zynqmp_pm_api_debugfs_exit(void);
|
|
#else
|
|
static inline void zynqmp_pm_api_debugfs_init(void) { }
|
|
static inline void zynqmp_pm_api_debugfs_exit(void) { }
|
|
#endif
|
|
|
|
#endif /* __FIRMWARE_ZYNQMP_DEBUG_H__ */
|