summaryrefslogtreecommitdiffstats
path: root/include/fsl_usb.h
diff options
context:
space:
mode:
authorNikhil Badola <nikhil.badola@freescale.com>2014-10-17 09:12:07 +0530
committerYork Sun <yorksun@freescale.com>2014-11-24 09:27:04 -0800
commitf3dff695e155469c2c62edb7f3d571df8b3b20ad (patch)
treeb956e0036e6a2e63df7a6b0dc7e9327cdc5b0834 /include/fsl_usb.h
parentc26c80a1a4e2e2e7e4c9806e9123bf027c02f711 (diff)
downloadblackbird-obmc-uboot-f3dff695e155469c2c62edb7f3d571df8b3b20ad.tar.gz
blackbird-obmc-uboot-f3dff695e155469c2c62edb7f3d571df8b3b20ad.zip
drivers : usb: fsl: Implement usb Erratum A007798 workaround
Set TXFIFOTHRESH to adjust ddr pipeline delay for successful large usb writes Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'include/fsl_usb.h')
-rw-r--r--include/fsl_usb.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/fsl_usb.h b/include/fsl_usb.h
index 66f8934588..e4902aac96 100644
--- a/include/fsl_usb.h
+++ b/include/fsl_usb.h
@@ -139,6 +139,12 @@ static inline bool has_erratum_a007075(void)
}
return false;
}
+
+static inline bool has_erratum_a007798(void)
+{
+ return SVR_SOC_VER(get_svr()) == SVR_T4240 &&
+ IS_SVR_REV(get_svr(), 2, 0);
+}
#else
static inline bool has_erratum_a006261(void)
{
@@ -150,5 +156,10 @@ static inline bool has_erratum_a007075(void)
return false;
}
+static inline bool has_erratum_a007798(void)
+{
+ return false;
+}
+
#endif
#endif /*_ASM_FSL_USB_H_ */
OpenPOWER on IntegriCloud