Skip to content

Commit b2bd0a8

Browse files
bentheredonethatmathieupoirier
authored andcommitted
firmware: xilinx: Add ZynqMP firmware ioctl enums for RPU configuration.
Add ZynqMP firmware ioctl enums for RPU configuration and TCM Nodes for later use via request_node and release_node Signed-off-by: Ben Levinsky <[email protected]> Signed-off-by: Tanmay Shah <[email protected]> Acked-by: Michal Simek <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mathieu Poirier <[email protected]>
1 parent 400f6af commit b2bd0a8

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

include/linux/firmware/xlnx-zynqmp.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ enum pm_ret_status {
135135
};
136136

137137
enum pm_ioctl_id {
138+
IOCTL_GET_RPU_OPER_MODE = 0,
139+
IOCTL_SET_RPU_OPER_MODE = 1,
140+
IOCTL_RPU_BOOT_ADDR_CONFIG = 2,
141+
IOCTL_TCM_COMB_CONFIG = 3,
138142
IOCTL_SD_DLL_RESET = 6,
139143
IOCTL_SET_SD_TAPDELAY = 7,
140144
IOCTL_SET_PLL_FRAC_MODE = 8,
@@ -175,6 +179,21 @@ enum pm_query_id {
175179
PM_QID_CLOCK_GET_MAX_DIVISOR = 13,
176180
};
177181

182+
enum rpu_oper_mode {
183+
PM_RPU_MODE_LOCKSTEP = 0,
184+
PM_RPU_MODE_SPLIT = 1,
185+
};
186+
187+
enum rpu_boot_mem {
188+
PM_RPU_BOOTMEM_LOVEC = 0,
189+
PM_RPU_BOOTMEM_HIVEC = 1,
190+
};
191+
192+
enum rpu_tcm_comb {
193+
PM_RPU_TCM_SPLIT = 0,
194+
PM_RPU_TCM_COMB = 1,
195+
};
196+
178197
enum zynqmp_pm_reset_action {
179198
PM_RESET_ACTION_RELEASE = 0,
180199
PM_RESET_ACTION_ASSERT = 1,

0 commit comments

Comments
 (0)