drm/omap: Implement workaround for DRA7 errata ID:i932
Subsystems (3)
PATCH 1/1 drm/omap: Implement workaround for DRA7 errata ID:i932
From: Venkateswara Rao Mandela <[email protected]>
Description of DRA7 Errata i932:
In rare circumstances DPLL_VIDEO1 and DPLL_VIDEO2 PLL's may not lock on the first attempt during DSS initialization. When this occurs, a subsequent attempt to relock the PLL will result in PLL successfully locking.
This patch does the following as per the errata recommendation:
- retries locking the PLL upto 20 times.
- The time to wait for a PLL lock set to 1000 REFCLK cycles. We use usleep_range to wait for 1000 REFCLK cycles in the us range. This tight constraint is imposed as a lock later than 1000 REFCLK cycles may have high jitter.
- Criteria for PLL lock is extended from check on just the PLL_LOCK bit to check on 6 PLL_STATUS bits.
Silicon Versions Impacted:
DRA71, DRA72, DRA74, DRA76 - All silicon revisions AM57x - All silicon revisions
OMAP4/5 are not impacted by this errata
--- drivers/gpu/drm/omapdrm/dss/dss.h | 3 + drivers/gpu/drm/omapdrm/dss/pll.c | 73 +++++++++++++++++++++---- drivers/gpu/drm/omapdrm/dss/video-pll.c | 1 + 3 files changed, 67 insertions(+), 10 deletions(-)
drivers/gpu/drm/omapdrm/dss/dss.h +3 -0
@@ -180,6 +180,9 @@ struct dss_pll_hw {/* DRA7 errata i886: use high N & M to avoid jitter */ bool errata_i886; + +/* DRA7 errata i932: retry pll lock on failure */ +bool errata_i932; };struct dss_pll {
drivers/gpu/drm/omapdrm/dss/pll.c +63 -10
93 lines not on this page · raw message
drivers/gpu/drm/omapdrm/dss/video-pll.c +1 -0
@@ -134,6 +134,7 @@ static const struct dss_pll_hw dss_dra7_video_pll_hw = { .has_refsel = true, .errata_i886 = true, + .errata_i932 = true, }; struct dss_pll *dss_video_pll_init(struct dss_device *dss,
Signature · 7 lines
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel