25 May, 2011

1 commit


26 Feb, 2010

1 commit


30 Oct, 2009

6 commits

  • Add R-standby specific bits to the SuperH Mobile sleep code.

    Signed-off-by: Magnus Damm
    Signed-off-by: Paul Mundt

    Magnus Damm
     
  • Add MMU and cache handling functionality to the SuperH Mobile
    sleep code. The MMU and cache registers are saved and restored.
    The MMU is disabled and the cache is flushed and disabled before
    entering sleep modes if the SUSP_SH_MMU flag is set. This flag
    should be set in the case of R-standby and most likely for future
    U-standby support as well.

    Signed-off-by: Magnus Damm
    Signed-off-by: Paul Mundt

    Magnus Damm
     
  • Add code to keep track of supported sleep modes. This to
    only export cpuidle modes that are backed by board support
    code. Also, do not allow suspend-to-ram if sdram board code
    is missing.

    Signed-off-by: Magnus Damm
    Signed-off-by: Paul Mundt

    Magnus Damm
     
  • Rework the SuperH Mobile sleep code from including
    board specific code to allowing each board to provide
    pre/post code snippets. These snippets should contain
    sdram management code to enter and leave self-refresh.

    Signed-off-by: Magnus Damm
    Signed-off-by: Paul Mundt

    Magnus Damm
     
  • Add code to allow boards registering self-contained
    functions for going to/from self-refresh. At this
    point the board code is unused. When all supported
    boards have been converted then the new sleep code
    will make use of these functions.

    Signed-off-by: Magnus Damm
    Signed-off-by: Paul Mundt

    Magnus Damm
     
  • This patch adds atomic notifier chains for pre/post
    sleep events. Useful for cpu code and boards that
    need to save and restore register state before and
    after entering a sleep mode.

    Signed-off-by: Magnus Damm
    Signed-off-by: Paul Mundt

    Magnus Damm
     

04 Jul, 2009

1 commit

  • This patch adds cpuidle support for SuperH Mobile.

    The sleep mode selected by cpuidle is compared with
    the mode selected by the hwblk sleep code and the
    best allowed mode is entered.

    At this point "Sleep mode" and "Sleep mode + SF" are
    supported. This code can easily be extended to support
    "Software suspend mode", but the assembly code must
    first be updated to avoid loosing interrupts.

    Also, update the code to only copy the assembly snippet
    into internal memory once at bootup.

    Signed-off-by: Magnus Damm
    Signed-off-by: Paul Mundt

    Magnus Damm
     

16 Mar, 2009

1 commit

  • This patch contains CONFIG_SUSPEND support to the SuperH
    architecture. If enabled, SuperH Mobile processors will
    register their suspend callbacks during boot.

    To suspend, use "echo mem > /sys/power/state". To allow
    wakeup, make sure "/sys/device/platform/../power/wakeup"
    contains "enabled". Additional per-device driver patches
    are most likely needed.

    Signed-off-by: Magnus Damm
    Signed-off-by: Paul Mundt

    Magnus Damm
     

10 Mar, 2009

1 commit

  • Add Suspend-to-disk / swsusp / CONFIG_HIBERNATION support
    to the SuperH architecture.

    To suspend, use "swapon /dev/sda2; echo disk > /sys/power/state"
    To resume, pass "resume=/dev/sda2" on the kernel command line.

    The patch "pm: rework includes, remove arch ifdefs V2" is
    needed to allow the generic swsusp code to build properly.

    Hibernation is not enabled with this patch though, a patch
    setting ARCH_HIBERNATION_POSSIBLE will be submitted later.

    Signed-off-by: Magnus Damm
    Signed-off-by: Paul Mundt

    Magnus Damm