summaryrefslogtreecommitdiffstats
path: root/drivers/soc/fsl/dpio/dpio.h
diff options
context:
space:
mode:
authorRoy Pledge <roy.pledge@nxp.com>2018-12-10 16:50:17 +0000
committerLi Yang <leoyang.li@nxp.com>2019-01-11 15:06:54 -0600
commit11c8bac9b3877fb8d8b4674f4744c1b5937956ba (patch)
tree356decf725fffb72f8f58a8de624b49a55254ac7 /drivers/soc/fsl/dpio/dpio.h
parent991e873223e9bcfaf10a0074eec1507c1ddfb6ab (diff)
downloadlinux-stable-11c8bac9b3877fb8d8b4674f4744c1b5937956ba.tar.gz
linux-stable-11c8bac9b3877fb8d8b4674f4744c1b5937956ba.tar.bz2
linux-stable-11c8bac9b3877fb8d8b4674f4744c1b5937956ba.zip
soc: fsl: dpio: perform DPIO Reset on Probe
Invoke a DPIO reset command when a DPIO device is probed. This will ensure the QBMan portal is in the state the driver expects. Signed-off-by: Roy Pledge <roy.pledge@nxp.com> Signed-off-by: Li Yang <leoyang.li@nxp.com>
Diffstat (limited to 'drivers/soc/fsl/dpio/dpio.h')
-rw-r--r--drivers/soc/fsl/dpio/dpio.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/soc/fsl/dpio/dpio.h b/drivers/soc/fsl/dpio/dpio.h
index 49194c8e45f1..b2ac4ba4fb8e 100644
--- a/drivers/soc/fsl/dpio/dpio.h
+++ b/drivers/soc/fsl/dpio/dpio.h
@@ -80,4 +80,8 @@ int dpio_get_api_version(struct fsl_mc_io *mc_io,
u16 *major_ver,
u16 *minor_ver);
+int dpio_reset(struct fsl_mc_io *mc_io,
+ u32 cmd_flags,
+ u16 token);
+
#endif /* __FSL_DPIO_H */