• Sekhar Nori's avatar
    davinci: add power management support · efc1bb8a
    Sekhar Nori authored
    This patch adds core power management (suspend-to-RAM)
    support for DaVinci SoCs.
    
    The code depends on the the "deepsleep" feature to suspend
    the SoC and saves power by gating the input clock.
    
    The wakeup can be based on an external event as supported
    by the SoC.
    
    Assembly code (in sleep.S) is added to aid gating DDR2
    clocks. Code doing this work should not be accessing DDR2.
    The assembly code is relocated to SRAM by the code in pm.c
    
    The support has been validated on DA850/OMAP-L138 only
    though the code is (hopefully) generic enough that other
    SoCs supporting deepsleep feature simply requires SoC
    specific code to start using this driver.
    
    Note that all the device drivers don't support suspend/resume
    still and are being worked on.
    Signed-off-by: default avatarSekhar Nori <nsekhar@ti.com>
    Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
    efc1bb8a
pm.c 3.78 KB