summaryrefslogtreecommitdiffstats
path: root/include/soc
diff options
context:
space:
mode:
authorIoana Ciornei <ioana.ciornei@nxp.com>2021-10-15 11:01:23 +0200
committerDavid S. Miller <davem@davemloft.net>2021-10-15 15:32:40 +0200
commit2cf0b6fe9bd3c05b499b26ba871651d7860c10f4 (patch)
tree2c3e95f602bc3cea04b03db31544e60643a1966c /include/soc
parentMerge branch 'L4S-style-ce_threshold_ect1-marking' (diff)
downloadlinux-2cf0b6fe9bd3c05b499b26ba871651d7860c10f4.tar.xz
linux-2cf0b6fe9bd3c05b499b26ba871651d7860c10f4.zip
soc: fsl: dpio: extract the QBMAN clock frequency from the attributes
Through the dpio_get_attributes() firmware call the dpio driver has access to the QBMAN clock frequency. Extend the structure which holds the firmware's response so that we can have access to this information. This will be needed in the next patches which also add support for interrupt coalescing which needs to be configured based on the frequency. Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/soc')
-rw-r--r--include/soc/fsl/dpaa2-io.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/soc/fsl/dpaa2-io.h b/include/soc/fsl/dpaa2-io.h
index c9d849924f89..041ebf7d804c 100644
--- a/include/soc/fsl/dpaa2-io.h
+++ b/include/soc/fsl/dpaa2-io.h
@@ -44,6 +44,7 @@ struct device;
* @regs_cinh: The cache inhibited regs
* @dpio_id: The dpio index
* @qman_version: The qman version
+ * @qman_clk: The qman clock frequency in Hz
*
* Describes the attributes and features of the DPIO object.
*/
@@ -55,6 +56,7 @@ struct dpaa2_io_desc {
void __iomem *regs_cinh;
int dpio_id;
u32 qman_version;
+ u32 qman_clk;
};
struct dpaa2_io *dpaa2_io_create(const struct dpaa2_io_desc *desc,