summaryrefslogtreecommitdiff
path: root/drivers/net/ipa/ipa_clock.h
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2020-11-19 16:40:39 -0600
committerJakub Kicinski <kuba@kernel.org>2020-11-20 18:44:59 -0800
commitdfccb8b13c0ce32666c596fbb712c60c7c0ab325 (patch)
tree65f8113804505091c3e50dbe72057e4255fb678b /drivers/net/ipa/ipa_clock.h
parent0a12ad5929556195fbdf1c58a14ec8e5b01b006c (diff)
net: ipa: define clock and interconnect data
Define a new type of configuration data, used to initialize the IPA core clock and interconnects. This is the first of three patches, and defines the data types and interface but doesn't yet use them. Switch the return value if there is no matching configuration data to ENODEV instead of ENOTSUPP (to avoid using the nonstandard errno). Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ipa/ipa_clock.h')
-rw-r--r--drivers/net/ipa/ipa_clock.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/ipa/ipa_clock.h b/drivers/net/ipa/ipa_clock.h
index 1d70f1de3875..1fe634760e59 100644
--- a/drivers/net/ipa/ipa_clock.h
+++ b/drivers/net/ipa/ipa_clock.h
@@ -9,6 +9,7 @@
struct device;
struct ipa;
+struct ipa_clock_data;
/**
* ipa_clock_rate() - Return the current IPA core clock rate
@@ -21,10 +22,12 @@ u32 ipa_clock_rate(struct ipa *ipa);
/**
* ipa_clock_init() - Initialize IPA clocking
* @dev: IPA device
+ * @data: Clock configuration data
*
* Return: A pointer to an ipa_clock structure, or a pointer-coded error
*/
-struct ipa_clock *ipa_clock_init(struct device *dev);
+struct ipa_clock *ipa_clock_init(struct device *dev,
+ const struct ipa_clock_data *data);
/**
* ipa_clock_exit() - Inverse of ipa_clock_init()