From 78b348f3f15bc0c84bd3559be59266a54f313f64 Mon Sep 17 00:00:00 2001 From: Alex Elder Date: Fri, 3 Jul 2020 16:23:34 -0500 Subject: net: ipa: introduce ipa_clock_rate() Create a new function that returns the current rate of the IPA core clock. Signed-off-by: Alex Elder Signed-off-by: David S. Miller --- drivers/net/ipa/ipa_clock.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'drivers/net/ipa/ipa_clock.h') diff --git a/drivers/net/ipa/ipa_clock.h b/drivers/net/ipa/ipa_clock.h index bc52b35e6bb2..0f4e2877a6df 100644 --- a/drivers/net/ipa/ipa_clock.h +++ b/drivers/net/ipa/ipa_clock.h @@ -10,6 +10,14 @@ struct device; struct ipa; +/** + * ipa_clock_rate() - Return the current IPA core clock rate + * @ipa: IPA structure + * + * Return: The current clock rate (in Hz), or 0. + */ +u32 ipa_clock_rate(struct ipa *ipa); + /** * ipa_clock_init() - Initialize IPA clocking * @dev: IPA device -- cgit v1.2.3-59-g8ed1b