Use direct function call instead of eemi ops for clock_getstate.
Showing the changes to include/linux (1 of 4 files). Show all
Unified · Split
| @@ -296,7 +296,6 @@ struct zynqmp_pm_query_data { · 295 unmodified lines | |||
| 296 | struct zynqmp_eemi_ops { | 296 | struct zynqmp_eemi_ops { |
| 297 | int (*fpga_load)(const u64 address, const u32 size, const u32 flags); | 297 | int (*fpga_load)(const u64 address, const u32 size, const u32 flags); |
| 298 | int (*fpga_get_status)(u32 *value); | 298 | int (*fpga_get_status)(u32 *value); |
| 299 | int (*clock_getstate)(u32 clock_id, u32 *state); | ||
| 300 | int (*clock_setdivider)(u32 clock_id, u32 divider); | 299 | int (*clock_setdivider)(u32 clock_id, u32 divider); |
| 301 | int (*clock_getdivider)(u32 clock_id, u32 *divider); | 300 | int (*clock_getdivider)(u32 clock_id, u32 *divider); |
| 302 | int (*clock_setrate)(u32 clock_id, u64 rate); | 301 | int (*clock_setrate)(u32 clock_id, u64 rate); |
| @@ -331,6 +330,7 @@ int zynqmp_pm_get_chipid(u32 *idcode, u32 *version); · 28 unmodified lines | |||
| 331 | int zynqmp_pm_query_data(struct zynqmp_pm_query_data qdata, u32 *out); | 330 | int zynqmp_pm_query_data(struct zynqmp_pm_query_data qdata, u32 *out); |
| 332 | int zynqmp_pm_clock_enable(u32 clock_id); | 331 | int zynqmp_pm_clock_enable(u32 clock_id); |
| 333 | int zynqmp_pm_clock_disable(u32 clock_id); | 332 | int zynqmp_pm_clock_disable(u32 clock_id); |
| 333 | int zynqmp_pm_clock_getstate(u32 clock_id, u32 *state); | ||
| 334 | #else | 334 | #else |
| 335 | static inline struct zynqmp_eemi_ops *zynqmp_pm_get_eemi_ops(void) | 335 | static inline struct zynqmp_eemi_ops *zynqmp_pm_get_eemi_ops(void) |
| 336 | { | 336 | { |
| @@ -357,6 +357,10 @@ static inline int zynqmp_pm_clock_disable(u32 clock_id) · 20 unmodified lines | |||
| 357 | { | 357 | { |
| 358 | return -ENODEV; | 358 | return -ENODEV; |
| 359 | } | 359 | } |
| 360 | static inline int zynqmp_pm_clock_getstate(u32 clock_id, u32 *state) | ||
| 361 | { | ||
| 362 | return -ENODEV; | ||
| 363 | } | ||
| 360 | #endif | 364 | #endif |
| 361 | 365 | ||
| 362 | #endif /* __FIRMWARE_ZYNQMP_H__ */ | 366 | #endif /* __FIRMWARE_ZYNQMP_H__ */ |