diff options
author | Ioana Ciornei <ioana.ciornei@nxp.com> | 2021-10-15 12:01:23 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-15 16:32:40 +0300 |
commit | 2cf0b6fe9bd3c05b499b26ba871651d7860c10f4 (patch) | |
tree | 2c3e95f602bc3cea04b03db31544e60643a1966c /drivers/soc/fsl/dpio/dpio-driver.c | |
parent | f3fafbcbe873cb4bf45d62623bf39897ab5f46b4 (diff) | |
download | linux-2cf0b6fe9bd3c05b499b26ba871651d7860c10f4.tar.xz |
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 'drivers/soc/fsl/dpio/dpio-driver.c')
-rw-r--r-- | drivers/soc/fsl/dpio/dpio-driver.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/soc/fsl/dpio/dpio-driver.c b/drivers/soc/fsl/dpio/dpio-driver.c index 7f397b4ad878..dd948889eeab 100644 --- a/drivers/soc/fsl/dpio/dpio-driver.c +++ b/drivers/soc/fsl/dpio/dpio-driver.c @@ -162,6 +162,7 @@ static int dpaa2_dpio_probe(struct fsl_mc_device *dpio_dev) goto err_get_attr; } desc.qman_version = dpio_attrs.qbman_version; + desc.qman_clk = dpio_attrs.clk; err = dpio_enable(dpio_dev->mc_io, 0, dpio_dev->mc_handle); if (err) { |