• Paul Walmsley's avatar
    omap2 clock: fix clksel divisor bug · eb589a09
    Paul Walmsley authored
    For clksel clocks, omap2_clk_set_rate() incorrectly divides the parent
    clock's rate by the actual bits of the register field, rather than the
    translated divisor value.  This happens to work for most clksel
    clocks, since the register bit fields are equal to the divisor values.
    But for some clocks, such as sys_clkout, the code gets the resulting
    rate wrong.
    Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
    Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
    eb589a09
clock.c 29.4 KB