Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

firmware: xilinx: add macros of node ids for error event

Add macros for the Node-Id of Error events.

Move supported api callback ids from zynqmp-power to zynqmp-firmware.

Acked-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Signed-off-by: Abhyuday Godhasara <abhyuday.godhasara@xilinx.com>
Link: https://lore.kernel.org/r/20211026042525.26612-3-abhyuday.godhasara@xilinx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Abhyuday Godhasara and committed by
Greg Kroah-Hartman
fbce9f14 1881eadb

+14 -6
-6
drivers/soc/xilinx/zynqmp_power.c
··· 46 46 47 47 static enum pm_suspend_mode suspend_mode = PM_SUSPEND_MODE_STD; 48 48 49 - enum pm_api_cb_id { 50 - PM_INIT_SUSPEND_CB = 30, 51 - PM_ACKNOWLEDGE_CB, 52 - PM_NOTIFY_CB, 53 - }; 54 - 55 49 static void zynqmp_pm_get_callback_data(u32 *buf) 56 50 { 57 51 zynqmp_pm_invoke_fn(GET_CALLBACK_DATA, 0, 0, 0, 0, buf);
+14
include/linux/firmware/xlnx-zynqmp.h
··· 64 64 #define XILINX_ZYNQMP_PM_FPGA_FULL 0x0U 65 65 #define XILINX_ZYNQMP_PM_FPGA_PARTIAL BIT(0) 66 66 67 + /* 68 + * Node IDs for the Error Events. 69 + */ 70 + #define EVENT_ERROR_PMC_ERR1 (0x28100000U) 71 + #define EVENT_ERROR_PMC_ERR2 (0x28104000U) 72 + #define EVENT_ERROR_PSM_ERR1 (0x28108000U) 73 + #define EVENT_ERROR_PSM_ERR2 (0x2810C000U) 74 + 75 + enum pm_api_cb_id { 76 + PM_INIT_SUSPEND_CB = 30, 77 + PM_ACKNOWLEDGE_CB = 31, 78 + PM_NOTIFY_CB = 32, 79 + }; 80 + 67 81 enum pm_api_id { 68 82 PM_GET_API_VERSION = 1, 69 83 PM_REGISTER_NOTIFIER = 5,