diff options
author | Herve Codina | 2023-12-05 16:21:03 +0100 |
---|---|---|
committer | Herve Codina | 2023-12-12 10:29:20 +0100 |
commit | ba3b7e4753c5ad80b3670277a2104aeb421e0d7d (patch) | |
tree | 43be3fcdbb2f9eeed43a76a264ec095601ec0740 /include/soc | |
parent | 48490dc36742b616f846368f300ebedfe9323da1 (diff) |
soc: fsl: cpm1: qmc: Add support for child devices
QMC child devices support is needed to avoid orphan DT nodes that use a
simple DT phandle to reference a QMC channel.
Allow to instantiate child devices and also extend the API to get the
qmc_chan using a child device.
Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Link: https://lore.kernel.org/r/20231205152116.122512-7-herve.codina@bootlin.com
Diffstat (limited to 'include/soc')
-rw-r--r-- | include/soc/fsl/qe/qmc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/soc/fsl/qe/qmc.h b/include/soc/fsl/qe/qmc.h index 6f1d6cebc9fe..166484bb4294 100644 --- a/include/soc/fsl/qe/qmc.h +++ b/include/soc/fsl/qe/qmc.h @@ -17,9 +17,11 @@ struct device; struct qmc_chan; struct qmc_chan *qmc_chan_get_byphandle(struct device_node *np, const char *phandle_name); +struct qmc_chan *qmc_chan_get_bychild(struct device_node *np); void qmc_chan_put(struct qmc_chan *chan); struct qmc_chan *devm_qmc_chan_get_byphandle(struct device *dev, struct device_node *np, const char *phandle_name); +struct qmc_chan *devm_qmc_chan_get_bychild(struct device *dev, struct device_node *np); enum qmc_mode { QMC_TRANSPARENT, |