History

firmware: xilinx: Remove eemi ops for clock_enable

Use direct function call for clock_enable instead of eemi ops.

Rajan Vaja committed 6 years ago

Commit 3637e841 parent 6366c1b4 files · +9 −6Browse files

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

Unified · Split

include/linux/firmware/xlnx-zynqmp.h+5−1
@@ -296,7 +296,6 @@ struct zynqmp_pm_query_data { · 295 unmodified lines
296296 struct zynqmp_eemi_ops {
297297 int (*fpga_load)(const u64 address, const u32 size, const u32 flags);
298298 int (*fpga_get_status)(u32 *value);
299− int (*clock_enable)(u32 clock_id);
300299 int (*clock_disable)(u32 clock_id);
301300 int (*clock_getstate)(u32 clock_id, u32 *state);
302301 int (*clock_setdivider)(u32 clock_id, u32 divider);
@@ -331,6 +330,7 @@ const struct zynqmp_eemi_ops *zynqmp_pm_get_eemi_ops(void); · 28 unmodified lines
331330 int zynqmp_pm_get_api_version(u32 *version);
332331 int zynqmp_pm_get_chipid(u32 *idcode, u32 *version);
333332 int zynqmp_pm_query_data(struct zynqmp_pm_query_data qdata, u32 *out);
333+int zynqmp_pm_clock_enable(u32 clock_id);
334334 #else
335335 static inline struct zynqmp_eemi_ops *zynqmp_pm_get_eemi_ops(void)
336336 {
@@ -349,6 +349,10 @@ static inline int zynqmp_pm_query_data(struct zynqmp_pm_query_data qdata, · 12 unmodified lines
349349 {
350350 return -ENODEV;
351351 }
352+static inline int zynqmp_pm_clock_enable(u32 clock_id)
353+{
354+ return -ENODEV;
355+}
352356 #endif
353357
354358 #endif /* __FIRMWARE_ZYNQMP_H__ */