History

firmware: xilinx: Remove eemi ops for get_api_version

Use direct function calls instead of using eemi ops. So remove eemi ops for get_api_version and use direct function call.

Rajan Vaja committed 6 years ago

Commit b9b3a8b1 parent 7536ad84 files · +10 −6Browse files

Showing the changes to include/linux (1 of 4 files). Show all

Unified · Split

include/linux/firmware/xlnx-zynqmp.h+5−1
@@ -294,7 +294,6 @@ struct zynqmp_pm_query_data { · 293 unmodified lines
294};294};
295 295
296struct zynqmp_eemi_ops {296struct zynqmp_eemi_ops {
297 int (*get_api_version)(u32 *version);
298 int (*get_chipid)(u32 *idcode, u32 *version);297 int (*get_chipid)(u32 *idcode, u32 *version);
299 int (*fpga_load)(const u64 address, const u32 size, const u32 flags);298 int (*fpga_load)(const u64 address, const u32 size, const u32 flags);
300 int (*fpga_get_status)(u32 *value);299 int (*fpga_get_status)(u32 *value);
@@ -331,11 +330,16 @@ int zynqmp_pm_invoke_fn(u32 pm_api_id, u32 arg0, u32 arg1, · 30 unmodified lines
331 330
332#if IS_REACHABLE(CONFIG_ZYNQMP_FIRMWARE)331#if IS_REACHABLE(CONFIG_ZYNQMP_FIRMWARE)
333const struct zynqmp_eemi_ops *zynqmp_pm_get_eemi_ops(void);332const struct zynqmp_eemi_ops *zynqmp_pm_get_eemi_ops(void);
333int zynqmp_pm_get_api_version(u32 *version);
334#else334#else
335static inline struct zynqmp_eemi_ops *zynqmp_pm_get_eemi_ops(void)335static inline struct zynqmp_eemi_ops *zynqmp_pm_get_eemi_ops(void)
336{336{
337 return ERR_PTR(-ENODEV);337 return ERR_PTR(-ENODEV);
338}338}
339static inline int zynqmp_pm_get_api_version(u32 *version)
340{
341 return -ENODEV;
342}
339#endif343#endif
340 344
341#endif /* __FIRMWARE_ZYNQMP_H__ */345#endif /* __FIRMWARE_ZYNQMP_H__ */