firmware: xilinx: Add sysfs and API to set boot health status
authorRajan Vaja <rajan.vaja@xilinx.com>
Fri, 24 Apr 2020 20:58:07 +0000 (13:58 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Apr 2020 13:46:54 +0000 (15:46 +0200)
commita2cc220a9a9227b2c5c9b39f57340bce64f040fd
treeff7b808bcc9c008c75a69a25853959889f139dac
parentb3ae24c44848c6403fb2333d7cbe494565058352
firmware: xilinx: Add sysfs and API to set boot health status

Add sysfs interface to set boot health status from user space.
Add API used by this interface to communicate with firmware.

If PMUFW is compiled with CHECK_HEALTHY_BOOT, it will check the
healthy bit on FPD WDT expiration. If healthy bit is set by a user
application running in Linux, PMUFW will do APU only restart. If
healthy bit is not set during FPD WDT expiration, PMUFW will do
system restart.

Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Tejas Patel <tejas.patel@xilinx.com>
Signed-off-by: Jolly Shah <jolly.shah@xilinx.com>
Link: https://lore.kernel.org/r/1587761887-4279-26-git-send-email-jolly.shah@xilinx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/stable/sysfs-driver-firmware-zynqmp
drivers/firmware/xilinx/zynqmp.c
include/linux/firmware/xlnx-zynqmp.h