1. 25 10月, 2011 1 次提交
    • M
      ARM: i.MX28: shift frac value in _CLK_SET_RATE · 590842f9
      Matt Burtch 提交于
      Noticed when setting SSP0 in clk_set_rate, _CLK_SET_RATE attempts to
      reset the clock divider for the SSP0 parent clock, in this case
      IO0FRAC. Bits 24-29 of HW_CLKCTRL_FRAC0 are cleared correctly, but
      when the new frac value is written the value isn't shifted up to write
      the correct bit-field.  This results in IO0FRAC being set to 0 and
      CPUFRAC being corrupted.
      
      This should occur when writing IO1FRAC, EMIFRAC in HW_CLKCTRL_FRAC0
      and GPMIFRAC, HSADCFRAC in HW_CLKCTRL_FRAC1.
      
      Tested on custom i.MX28 board with SSP0 SPI driver.
      Signed-off-by: NMatt Burtch <matt@grid-net.com>
      Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
      590842f9
  2. 13 10月, 2011 1 次提交
  3. 23 8月, 2011 2 次提交
  4. 12 4月, 2011 1 次提交
    • U
      ARM: mxs/clock-mx28: fix up name##_set_rate · f61b9fc2
      Uwe Kleine-König 提交于
      For the lcdif clock get_rate looks as follows:
      
      	read div from HW_CLKCTRL_DIS_LCDIF.DIV
      	return clk_get_rate(clk->parent) / div
      
      with clk->parent being ref_pix_clk on my system.
      
      ref_pix_clk's rate depends on HW_CLKCTRL_FRAC1.PIXFRAC.
      
      The set_rate function for lcdif does:
      
      	parent_rate = clk_get_rate(clk->parent);
      	based on that calculate frac and div such that
      	  parent_rate * 18 / frac / div is near the requested rate.
      	HW_CLKCTRL_FRAC1.PIXFRAC is updated with frac
      	HW_CLKCTRL_DIS_LCDIF.DIV is updated with div
      
      For this calculation to be correct parent_rate needs to be
      initialized not with the clock rate of lcdif's parent (i.e. ref_pix) but
      that of its grandparent (i.e. ref_pix' parent == pll0_clk).
      
      The obvious downside of this patch is that now set_rate(lcdif) changes
      its parent's rate, too.  Still this is better than a wrong rate.
      Acked-by: NShawn Guo <shawn.guo@freescale.com>
      LAKML-Reference: 20110225084950.GA13684@S2101-09.ap.freescale.net
      Signed-off-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
      f61b9fc2
  5. 25 3月, 2011 1 次提交
  6. 10 3月, 2011 1 次提交
  7. 08 3月, 2011 2 次提交
  8. 01 3月, 2011 1 次提交
  9. 03 2月, 2011 1 次提交
  10. 01 2月, 2011 2 次提交
  11. 25 1月, 2011 1 次提交
  12. 24 1月, 2011 2 次提交
  13. 14 1月, 2011 1 次提交
  14. 12 1月, 2011 1 次提交
  15. 11 1月, 2011 1 次提交
  16. 21 12月, 2010 1 次提交