• Mythri P K's avatar
    OMAPDSS: HDMI: Add M2 divider while calculating clkout · dd2116a3
    Mythri P K authored
    While calculating regm and regmf value add using M2 divider in
    the equation.
    Formula for calculating:
    Output clock on digital core domain:
    	CLKOUT = (M / (N+1))*CLKINP*(1/M2)
    Internal oscillator output clock on internal LDO domain:
    	CLKDCOLDO = (M / (N+1))*CLKINP
    The current code when allows variable M2 values as input
    ignores using M2 divider values in calculation of regm and regmf.
    so fix it by using M2 in calculation although the default value for
    M2 is 1.
    Signed-off-by: default avatarMythri P K <mythripk@ti.com>
    Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
    dd2116a3
hdmi.c 23.6 KB