09 Jan, 2012

1 commit

  • TWL family of PMICs, used in master mode, have a power off
    functionality. The resulting power off sequence shuts down all the SoC
    supplies, LDOs, etc. The sequence is described in the datasheets
    chapter "Power-Off Sequence".
    Note, that board must be wired correctly for the power off to work as
    expected.

    Signed-off-by: Igor Grinberg
    Signed-off-by: Samuel Ortiz

    Igor Grinberg
     

27 May, 2011

3 commits


11 May, 2011

1 commit


29 Oct, 2010

1 commit


08 Mar, 2010

2 commits

  • New function twl4030_remove_script(u8 flags) takes a script type as
    defined in twl.h and prevents any script already loaded in that position
    from running. This is accomplished by programming SEQ_ADD_* to 0x3f,
    the END_OF_SCRIPT value, where SEQ_ADD_* is determined by flags.

    (Future) users of this function include OMAP board files for machines
    facing a race condition between sleep and warm reset.

    Signed-off-by: Mike Turquette
    Signed-off-by: Samuel Ortiz

    Mike Turquette
     
  • Variable remap was incorrectly referencing remap_off for the remap_sleep
    case when configuring TWL4030 power scripts.

    Signed-off-by: Mike Turquette
    Signed-off-by: Samuel Ortiz

    Mike Turquette
     

14 Dec, 2009

7 commits

  • This patch renames function names like twl4030_i2c_write_u8,
    twl4030_i2c_read_u8 to twl_i2c_write_u8, twl_i2c_read_u8
    and also common variable in twl-core.c

    Signed-off-by: Rajendra Nayak
    Signed-off-by: Balaji T K
    Signed-off-by: Santosh Shilimkar
    Acked-by: Kevin Hilman
    Signed-off-by: Samuel Ortiz

    Balaji T K
     
  • The upcoming TWL6030 is companion chip for OMAP4 like the current TWL4030
    for OMAP3. The common modules like RTC, Regulator creates opportunity
    to re-use the most of the code from twl4030.

    This patch renames few common drivers twl4030* files to twl* to enable
    the code re-use.

    Signed-off-by: Rajendra Nayak
    Signed-off-by: Balaji T K
    Signed-off-by: Santosh Shilimkar
    Acked-by: Kevin Hilman
    Signed-off-by: Samuel Ortiz

    Santosh Shilimkar
     
  • Based on Aaro's previous fix, this needs to be fixed for the newly added
    remap_off and remap_sleep resources as well.

    The code tries to skip values initialized with -1, but since the values
    are unsigned the comparison is always true.

    The patch eliminates the following compiler warnings:

    drivers/mfd/twl4030-power.c: In function 'twl4030_configure_resource':
    drivers/mfd/twl4030-power.c:338: warning: comparison is always true due to
    limited range of data type

    Signed-off-by: Amit Kucheria
    Signed-off-by: Samuel Ortiz

    Amit Kucheria
     
  • The code tries to skip values initialized with -1, but since the values
    are unsigned the comparison is always true.

    The patch eliminates the following compiler warnings:

    drivers/mfd/twl4030-power.c: In function 'twl4030_configure_resource':
    drivers/mfd/twl4030-power.c:338: warning: comparison is always true due to
    limited range of data type
    drivers/mfd/twl4030-power.c:358: warning: comparison is always true due to
    limited range of data type
    drivers/mfd/twl4030-power.c:363: warning: comparison is always true due to
    limited range of data type

    Signed-off-by: Aaro Koskinen
    Signed-off-by: Samuel Ortiz

    Aaro Koskinen
     
  • The _REMAP register allows configuration of the in case
    of a sleep or off transition.

    Allow this property of resources to be configured (through twl4030_resconfig)
    and add code to parse these values to program the registers accordingly.

    Signed-off-by: Amit Kucheria
    Cc: linux-omap@vger.kernel.org
    Signed-off-by: Samuel Ortiz

    Amit Kucheria
     
  • Describe how the resource registers are laid out and the various bit-fields in
    them.

    Signed-off-by: Amit Kucheria
    Cc: linux-omap@vger.kernel.org
    Signed-off-by: Samuel Ortiz

    Amit Kucheria
     
  • Stick to the names used in the reference manual

    Signed-off-by: Amit Kucheria
    Cc: linux-omap@vger.kernel.org
    Signed-off-by: Samuel Ortiz

    Amit Kucheria
     

17 Sep, 2009

3 commits

  • KEY_1 and KEY_2 definitions conflicts with include/linux/input.h

    Signed-off-by: Samuel Ortiz

    Samuel Ortiz
     
  • When the sleep script is loaded before the wakeup script, there is a
    chance that the system might go to sleep before the wakeup script
    loading is completed. This will lead to a system that does not wakeup
    and has been observed to cause non-booting boards.

    Various options were considered to solve this problem, including
    modification of the core twl4030 power code to be smart enough to
    reorder the loading of the scripts. But it felt too over-engineered.

    Hence this patch just warns the DPS script developer so that they may be
    reordered in the board-code itself.

    Signed-off-by: Amit Kucheria
    Signed-off-by: Samuel Ortiz

    Amit Kucheria
     
  • The TWL4030/5030 family of multifunction devices allows board-specific
    control of the the various regulators, clock and reset lines through
    'scripts' that are loaded into its memory. This allows for Dynamic Power
    Switching (DPS).

    Implement board-independent core support for DPS that is then used by
    board-specific code to load custom DPS scripts.

    Signed-off-by: Amit Kucheria
    Signed-off-by: Samuel Ortiz

    Amit Kucheria