• Paul Walmsley's avatar
    OMAP2+ clock: remove DEFAULT_RATE clksel_rate flag · d74b4949
    Paul Walmsley authored
    The DEFAULT_RATE clksel_rate flag is essentially useless.  It was set
    on some of the lowest divisors, which, when switching to a much
    higher-rate parent, could have potentially resulted in rates that
    exceeded the hardware specifications for downstream clocks in the
    window between the clk_set_parent(), and a subsequent clk_set_rate().
    It seems much safer to just remove the flag and always use the highest
    available divisor (resulting in the lowest possible rate) after the
    switch, and this patch does so.
    
    Ideally, it would be best to first attempt to switch to a divisor that
    matches the clock's rate with the previous parent, if at all possible.
    But that is a project for some other day or some other person.  The
    parent changing code is rarely used.
    Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
    d74b4949
clock2420_data.c 55.9 KB