Skip to content
  • Kumar Gala's avatar
    ppc/85xx: Fix LCRR_CLKDIV defines · 68f9c1e7
    Kumar Gala authored
    
    
    For some reason the CLKDIV field varies between SoC in how it interprets
    the bit values.
    
    All 83xx and early (e500v1) PQ3 devices support:
     clk/2: CLKDIV = 2
     clk/4: CLKDIV = 4
     clk/8: CLKDIV = 8
    
    Newer PQ3 (e500v2) and MPC86xx support:
     clk/4: CLKDIV = 2
     clk/8: CLKDIV = 4
     clk/16: CLKDIV = 8
    
    Ensure that the MPC86xx and MPC85xx still get the same behavior and make
    the defines reflect their logical view (not the value of the field).
    
    Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
    Acked-by: default avatarPeter Tyser <ptyser@xes-inc.com>
    68f9c1e7