1. Apr 28, 2009
    • Mark A. Greer's avatar
      davinci: PSC: Clear bits in MDCTL reg before setting new bits · fe277d9b
      Mark A. Greer authored
      
      
      Clear any set bits in the 'NEXT' field of the MDCTL register in the
      Power and Sleep Controller (PSC) before setting any new bits.
      This also allows some minor cleanup by removing some no longer
      needed lines of code.
      
      Signed-off-by: default avatarMark A. Greer <mgreer@mvista.com>
      Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
      fe277d9b
    • David Brownell's avatar
      davinci: gpio bugfixes · 474dad54
      David Brownell authored
      
      
      Update the DaVinci GPIO code to work better on non-dm6446 parts,
      notably the dm355:
      
       - Only handle the number of GPIOs the chip actually has.  So
         for example on dm6467, GPIO-42 is the last GPIO, and trying
         to use GPIO-43 now fails cleanly; or GPIO-72 on dm6446.
      
       - Enable GPIO interrupts on each 16-bit GPIO-irq bank ...
         previously, only the first five were enabled, so GPIO-80
         and above (on dm355) wouldn't trigger IRQs.
      
       - Use the right IRQ for each GPIO bank.  The wrong values were
         used for dm355 chips, so GPIO IRQs got routed incorrectly.
      
       - Handle up to four pairs of 16-bit GPIO banks ... previously
         only three were handled, so accessing GPIO-96 and up (e.g. on
         dm355) would oops.
      
       - Update several comments that were dm6446-specific.
      
      Verified by receiving GPIO-1 (dm9000) and GPIO-5 (msp430) IRQs
      on the DM355 EVM.
      
      One thing this doesn't do is handle the way some of the GPIO
      numbers on dm6467 are reserved but aren't valid as GPIOs.  Some
      bitmap logic could fix that if needed.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
      474dad54
    • Kevin Hilman's avatar
      davinci: add EDMA driver · a4768d22
      Kevin Hilman authored
      
      
      Original code for 2.6.10 and 2.6.28 series done by Texas Instruments
      and MontaVista, but major updates and rework done by Troy Kisky and
      David Brownell.
      
      Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
      Cc: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
      Cc: Troy Kisky <troy.kisky@boundarydevices.com>
      Cc: David Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
      a4768d22
    • Kevin Hilman's avatar
      davinci: timers: use clk_get_rate() · e6099002
      Kevin Hilman authored
      
      
      Use clock framework instead of hard-coded CLOCK_TICK_RATE for
      determining timer tick frequencies.
      
      Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
      e6099002
  2. Apr 24, 2009
  3. Apr 22, 2009