26 Apr, 2013

3 commits


17 Apr, 2013

1 commit


16 Apr, 2013

2 commits


04 Apr, 2013

12 commits


07 Mar, 2013

1 commit

  • The current code does not enable all the input channels asked for.
    For example if we want to read continuous data from 3 channels at a
    time, the code only enables one channel.
    Also the step configuration while switching from one shot to continuous,
    configured the 1st input to the rest of the channels as well.
    Hence in continuous mode voltage from 1st channel appears on all
    the remaining channels. Fix the issue by configuring to correct input
    channels.

    Signed-off-by: Patil, Rachna
    Signed-off-by: Vaibhav Hiremath

    Patil, Rachna
     

01 Mar, 2013

9 commits


28 Feb, 2013

2 commits

  • The timer TISTAT register is a read-only register and therefore restoring the
    context is not needed. Furthermore, the context of TISTAT is never saved
    anywhere in the current code. The TISTAT register is read-only for all OMAP
    devices from OMAP1 to OMAP4. OMAP5 timers no longer have this register.

    [akshay.s@ti.com: Observed a crash when adding support for the
    DMTIMER wakeup for standby mode.
    This crash occurred during context restore when restoring values
    to TIOCP_CFG and TISTAT registers in the function
    omap_timer_restore_context().
    This issue was fixed in the mainline. So backporting it to fix the same]

    Signed-off-by: Jon Hunter
    Acked-by: Santosh Shilimkar
    Signed-off-by: ShankarMurthy, Akshay
    Signed-off-by: Satyanarayana Sandhya

    Jon Hunter
     
  • Since hwmod framework now manages sysconfig context save/restore
    there is no more need to touch this register in driver. Hence,
    remove restore of sysconfig register in omap_timer_restore_context.
    This was causing incorrect context restore of sysconfig register.

    [akshay.s@ti.com: Observed a warning when adding support for the
    DMTIMER wakeup for standby mode.

    WARNING: at arch/arm/plat-omap/dmtimer.c:77
    omap_dm_timer_write_reg+0x6c/0x74()

    This issue was fixed in the mainline. So backporting this patch
    to fix the same]

    Signed-off-by: Tarun Kanti DebBarma
    Acked-by: Santosh Shilimkar
    Acked-by: Kevin Hilman
    Signed-off-by: Tony Lindgren
    Signed-off-by: ShankarMurthy, Akshay
    Signed-off-by: Satyanarayana Sandhya

    Tarun Kanti DebBarma
     

22 Feb, 2013

10 commits

  • Wakeup from standby mode is supported via GPIO method where peripherals
    can be configured as gpios while entering standby and wakeup happens
    through gpio interrupt.

    This patch provides an method to handle the same through a debugfs
    approach.

    User should know the IO pads to be configured and the trigger value to
    be written to them. The PAD offset & gpio configuration depends mainly
    on the wake-up source selected.

    Inside /omap_mux/board/ (Directory where these
    features are available)

    standby_gpio_pad_conf

    standby_gpio_pad_conf
    Expected input: pinmux_name=,
    Pin-mux name that is to be setup as gpio during standby
    suspend with gpio interrupt trigger mode as per field
    with value .
    Pin-mux name should be in "mode0_name.mode7_function_name"
    format. Internally the pin-mux offset is calculated from the
    pin-mux names. Invalid pin-mux names and values are ignored.
    Remember,
    - No spaces anywhere in the input.
    - field is a must
    - field is a must and must be one of "rising",
    "falling"

    Example:
    echo uart0_rxd.gpio1_10=0x27,rising > standby_gpio_pad_conf
    sets up uart0_rxd.gpio1_10 for gpio mode with interrupt trigger
    as rising and pin-mux value as 0x27 when entering standby mode.

    During standby, If "standby_gpio_pad_conf" is configured, then the
    respective pin-mux value is saved, the gpio pin-mux mode is selected
    for the pin. Relevant gpio settings & interrupts are configured.
    During resume, the original values saved are restored back.

    User should make sure that the mux mode exists for the selected pin-mux
    and the trigger is proper.

    When here a duplicate header include (linux/io.h> is removed

    Signed-off-by: Hebbar Gururaja

    Hebbar Gururaja
     
  • Keep GPIO0 module enabled during standby to support
    GPIO0 io-pads to wakeup the system from standby mode.

    Signed-off-by: Satyanarayana Sandhya

    Satyanarayana Sandhya
     
  • This patch enables touch screen wakeup from standby by keeping
    TSC module enabled during standby.

    Signed-off-by: Satyanarayana Sandhya

    Satyanarayana Sandhya
     
  • This patch adds support for USB remote wakeup from standby mode.

    This has been tested as below.
    - Connect a USB mouse to EVM.
    - Run the following two commands
    echo enabled > /sys/bus/usb/devices/1-1/power/wakeup
    echo enabled > /sys/bus/usb/devices/usb1/power/wakeup
    - Run "echo standby > /sys/power/state"
    - Click the mouse to resume from standby
    - Also tested for a keyboard key press.

    Suggested-by: Vaibhav Bedia
    Signed-off-by: Satyanarayana Sandhya

    Satyanarayana, Sandhya
     
  • This patch adds basic support for Standby mode
    wherein SDRAM is placed in self-refresh,
    PLLs are put in bypass and MPU is power gated.
    GFX power domain is under user control,
    PER power domain is ON.

    Wakeup happens via MPU_WAKE interrupt to Cortex-M3.

    To enter standby mode, run
    "echo standby > /sys/power/state"

    Wakeup from standby mode is through gpio.

    Signed-off-by: Satyanarayana Sandhya

    Satyanarayana, Sandhya
     
  • The ADC driver did not check for FIFO1 underflow and overrun
    conditions. Add support to handle these conditions.
    TSC/ADC module does not recover from this state by itself,
    a module reset is required.

    Signed-off-by: Patil, Rachna

    Patil, Rachna
     
  • ADC reports few wrong/erroneous data on read in continuous mode.
    Providing an appropriate delay so that ADC has sufficient time to
    sequence data present on the input channel.

    Signed-off-by: Patil, Rachna

    Patil, Rachna
     
  • This patch adds context loss related platform data for mcasp.
    This allows mcasp driver to check for the loss of context depending upon
    the status it will decide whether to restore or not.

    Signed-off-by: ShankarMurthy, Akshay

    ShankarMurthy, Akshay
     
  • Context restore is not required when there is no loss of context which
    is the case with standby.

    This patch adds support to check for loss of context and context restore
    is done if there has been a loss of context.

    This reduces the overall resume latency of Standby.

    Signed-off-by: ShankarMurthy, Akshay

    ShankarMurthy, Akshay
     
  • This patch adds context loss related platform data for lcd.
    This allows lcd driver to check for the loss of context and
    depending upon the status it will decide whether to restore or not.

    Signed-off-by: ShankarMurthy, Akshay

    ShankarMurthy, Akshay