1. 06 Oct, 2008 4 commits
    • 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
  4. 30 Sep, 2008 1 commit
    • Tony Lindgren's avatar
      ARM: OMAP: Get rid of controller vs slot confusion, initialize MMC devices dynamically, v2 · 81d2c7d8
      Tony Lindgren authored
      Big MMC init clean up:
      
      - Remove enabled field from slots. It is really intended to mean enabled controller,
        not enabled slot. Some controllers can have multiple multiplexed slots connected
        to the first controller, such as H4 and N8X0.
      
      - Initialize MMC devices dynamically as suggested by Russell King
      
      - Fix omap1 and omap2 mmc clock instance numbers
      
      - Also attempt to fix massive omap1 MMC breakage caused by patch
        138ab9f8. Remove obviously broken
        MMC configurations for now. MMC is still not working for any
        omap1 boards.
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      81d2c7d8