Thread (5 messages) 5 messages, 3 authors, 2015-12-11

[PATCH] clk: ti: omap5+: dpll: implement errata i810

From: Tero Kristo <hidden>
Date: 2015-12-11 08:43:35
Also in: linux-clk, linux-omap

On 12/03/2015 06:48 PM, Tony Lindgren wrote:
* Tero Kristo [off-list ref] [151130 06:44]:
quoted
+	/*
+	 * Errata i810 - DPLL controller can get stuck while transitioning
+	 * to a power saving state. Software must ensure the DPLL can not
+	 * transition to a low power state while changing M/N values.
+	 * Easiest way to accomplish this is to prevent DPLL autoidle
+	 * before doing the M/N re-program.
+	 */
+	errata_i810 = ti_clk_get_features()->flags & TI_CLK_ERRATA_I810;
+
+	if (errata_i810) {
+		ai = omap3_dpll_autoidle_read(clk);
+		if (ai) {
+			omap3_dpll_deny_idle(clk);
+
+			/* OCP barrier */
+			omap3_dpll_autoidle_read(clk);
+		}
+	}
Should we just do this unconditionally? It seems like disabling the
autoidle always before reprogramming is a good idea.
Well, that is a few extra register accesses, but given the DPLL 
re-programming is a slow operation it probably does not matter. Let me 
spin a new version of this patch, it will avoid the need for the errata 
flag also.

-Tero
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help