1. 06 Oct, 2008 5 commits
    • David Brownell's avatar
      gpiolib to_irq() feature · e9d6bd63
      David Brownell authored
      Add a new gpiolib mechanism:  gpio_chip instances can provide
      mappings between their (input) GPIOs and any associated IRQs.
      This makes it easier for platforms to support IRQs that are
      provided by board-specific external chips instead of as part
      of their core (such as SOC-integrated GPIOs).
      
      Also update the irq_to_gpio() description, saying to avoid it
      becuase it's not always supported.
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      e9d6bd63
    • David Brownell's avatar
      twl4030-core cleanup · 65900d71
      David Brownell authored
      A variety of twl4030-core cleanups:
      
       - SIH register declarations moved from core.c to twl4030.h, for
         keypad, madc, bci; this decouples from twl4030-madc.h; add
         several omitted register decls; remove a duplicate.
      
       - Use a global "inuse" flag, not a per-slave one;
      
       - Remove pointless SLAVENUM_NUM symbols; just use 0/1/2/3
      
       - Comments:
           * Add comments:  header, register values
           * Add some section delimiters
           * Correct clock init and other comments
      
       - Minor stuff:
           * Group some variables and code with sibling
           * Make clock init a bit simpler
           * List twl5030 in supported i2c chips list
           * Remove needless "return;"
      
      And one IRQ-related bugfix:  if the I2C timeout bug strikes while
      reading PIH interrupt status, force an immediate retry.  Otherwise
      the twl4030 IRQ will never get re-enabled...
      
      Object size shrinks by 180 bytes, w00t!
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      65900d71
    • David Brownell's avatar
      remove <linux/i2c/twl4030-pwrirq.h> · a9246f74
      David Brownell authored
      Get rid of another needless TWL header file:  twl4030-pwrirq.h
      can easily live in twl4030.h; updating its three users.
      
      Also switch to the shared definition of the SIH_CTRL COR bit,
      remove useless-to-non-driver MODULE_ALIAS(), and add a note
      about a bug that will appear if anyone ever removes this code.
      
      No functional changes, just shrinkage.
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      Acked-by: default avatarFelipe Balbi <felipe.balbi@nokia.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      a9246f74
    • David Brownell's avatar
      remove <linux/i2c/twl4030-rtc.h> · 348b24a3
      David Brownell authored
      Remove <linux/i2c/twl4030-rtc.h> by moving all the relevant contents
      into the driver itself, and removing the rest.  Stuff removed included
      many useless bitmasks, and remnants of the platform data hook.
      
      Add markers inside the rtc driver to split sections apart:  first
      data structure declarations, then the RTC driver, then platform bus
      glue for it all.
      
      There's still an issue with the twl4030-pwrirq.h registers ... this
      driver has no business touching them!  This patch at least switches
      away from having private versions of those register definitions, and
      removes some unnecessary accesses to them.
      
      No functional changes, just shrinkage.
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      Acked-by: default avatarFelipe Balbi <felipe.balbi@nokia.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      348b24a3
    • David Brownell's avatar
      rtc-twl4030 header cleanup · fb1df1cc
      David Brownell authored
      Portability fixes (simplifications) for rtc-twl4030:  don't include
      so many needless headers, especially platform-specific ones.
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      fb1df1cc
  2. 03 Oct, 2008 8 commits
  3. 01 Oct, 2008 27 commits