Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions | Variables
pm.h File Reference
#include <linux/clk.h>

Go to the source code of this file.

Macros

#define CLKGEN_REG_ASM_BASE   OMAP1_IO_ADDRESS(0xfffece00)
 
#define ARM_IDLECT1_ASM_OFFSET   0x04
 
#define ARM_IDLECT2_ASM_OFFSET   0x08
 
#define TCMIF_ASM_BASE   OMAP1_IO_ADDRESS(0xfffecc00)
 
#define EMIFS_CONFIG_ASM_OFFSET   0x0c
 
#define EMIFF_SDRAM_CONFIG_ASM_OFFSET   0x20
 
#define IDLE_WAIT_CYCLES   0x00000fff
 
#define PERIPHERAL_ENABLE   0x2
 
#define SELF_REFRESH_MODE   0x0c000001
 
#define IDLE_EMIFS_REQUEST   0xc
 
#define MODEM_32K_EN   0x1
 
#define PER_EN   0x1
 
#define CPU_SUSPEND_SIZE   200
 
#define ULPD_LOW_PWR_EN   0x0001
 
#define ULPD_DEEP_SLEEP_TRANSITION_EN   0x0010
 
#define ULPD_SETUP_ANALOG_CELL_3_VAL   0
 
#define ULPD_POWER_CTRL_REG_VAL   0x0219
 
#define DSP_IDLE_DELAY   10
 
#define DSP_IDLE   0x0040
 
#define DSP_RST   0x0004
 
#define DSP_ENABLE   0x0002
 
#define SUFFICIENT_DSP_RESET_TIME   1000
 
#define DEFAULT_MPUI_CONFIG   0x05cf
 
#define ENABLE_XORCLK   0x2
 
#define DSP_CLOCK_ENABLE   0x2000
 
#define DSP_IDLE_MODE   0x2
 
#define TC_IDLE_REQUEST   (0x0000000c)
 
#define IRQ_LEVEL2   (1<<0)
 
#define IRQ_KEYBOARD   (1<<1)
 
#define IRQ_UART2   (1<<15)
 
#define PDE_BIT   0x08
 
#define PWD_EN_BIT   0x04
 
#define EN_PERCK_BIT   0x04
 
#define OMAP1510_DEEP_SLEEP_REQUEST   0x0ec7
 
#define OMAP1510_BIG_SLEEP_REQUEST   0x0cc5
 
#define OMAP1510_IDLE_LOOP_REQUEST   0x0c00
 
#define OMAP1510_IDLE_CLOCK_DOMAINS   0x2
 
#define OMAP1610_IDLECT1_SLEEP_VAL   0x13c7
 
#define OMAP1610_IDLECT2_SLEEP_VAL   0x09c7
 
#define OMAP1610_IDLECT3_VAL   0x3f
 
#define OMAP1610_IDLECT3_SLEEP_ORMASK   0x2c
 
#define OMAP1610_IDLECT3   0xfffece24
 
#define OMAP1610_IDLE_LOOP_REQUEST   0x0400
 
#define OMAP7XX_IDLECT1_SLEEP_VAL   0x16c7
 
#define OMAP7XX_IDLECT2_SLEEP_VAL   0x09c7
 
#define OMAP7XX_IDLECT3_VAL   0x3f
 
#define OMAP7XX_IDLECT3   0xfffece24
 
#define OMAP7XX_IDLE_LOOP_REQUEST   0x0C00
 
#define omap_serial_wakeup_init()   {}
 
#define omap_serial_wake_trigger(x)   {}
 
#define ARM_SAVE(x)   arm_sleep_save[ARM_SLEEP_SAVE_##x] = omap_readl(x)
 
#define ARM_RESTORE(x)   omap_writel((arm_sleep_save[ARM_SLEEP_SAVE_##x]), (x))
 
#define ARM_SHOW(x)   arm_sleep_save[ARM_SLEEP_SAVE_##x]
 
#define DSP_SAVE(x)   dsp_sleep_save[DSP_SLEEP_SAVE_##x] = __raw_readw(x)
 
#define DSP_RESTORE(x)   __raw_writew((dsp_sleep_save[DSP_SLEEP_SAVE_##x]), (x))
 
#define DSP_SHOW(x)   dsp_sleep_save[DSP_SLEEP_SAVE_##x]
 
#define ULPD_SAVE(x)   ulpd_sleep_save[ULPD_SLEEP_SAVE_##x] = omap_readw(x)
 
#define ULPD_RESTORE(x)   omap_writew((ulpd_sleep_save[ULPD_SLEEP_SAVE_##x]), (x))
 
#define ULPD_SHOW(x)   ulpd_sleep_save[ULPD_SLEEP_SAVE_##x]
 
#define MPUI7XX_SAVE(x)   mpui7xx_sleep_save[MPUI7XX_SLEEP_SAVE_##x] = omap_readl(x)
 
#define MPUI7XX_RESTORE(x)   omap_writel((mpui7xx_sleep_save[MPUI7XX_SLEEP_SAVE_##x]), (x))
 
#define MPUI7XX_SHOW(x)   mpui7xx_sleep_save[MPUI7XX_SLEEP_SAVE_##x]
 
#define MPUI1510_SAVE(x)   mpui1510_sleep_save[MPUI1510_SLEEP_SAVE_##x] = omap_readl(x)
 
#define MPUI1510_RESTORE(x)   omap_writel((mpui1510_sleep_save[MPUI1510_SLEEP_SAVE_##x]), (x))
 
#define MPUI1510_SHOW(x)   mpui1510_sleep_save[MPUI1510_SLEEP_SAVE_##x]
 
#define MPUI1610_SAVE(x)   mpui1610_sleep_save[MPUI1610_SLEEP_SAVE_##x] = omap_readl(x)
 
#define MPUI1610_RESTORE(x)   omap_writel((mpui1610_sleep_save[MPUI1610_SLEEP_SAVE_##x]), (x))
 
#define MPUI1610_SHOW(x)   mpui1610_sleep_save[MPUI1610_SLEEP_SAVE_##x]
 

Enumerations

enum  arm_save_state {
  ARM_SLEEP_SAVE_START = 0, ARM_SLEEP_SAVE_ARM_CKCTL, ARM_SLEEP_SAVE_ARM_IDLECT1, ARM_SLEEP_SAVE_ARM_IDLECT2,
  ARM_SLEEP_SAVE_ARM_IDLECT3, ARM_SLEEP_SAVE_ARM_EWUPCT, ARM_SLEEP_SAVE_ARM_RSTCT1, ARM_SLEEP_SAVE_ARM_RSTCT2,
  ARM_SLEEP_SAVE_ARM_SYSST, ARM_SLEEP_SAVE_SIZE
}
 
enum  dsp_save_state { DSP_SLEEP_SAVE_START = 0, DSP_SLEEP_SAVE_DSP_IDLECT2, DSP_SLEEP_SAVE_SIZE }
 
enum  ulpd_save_state {
  ULPD_SLEEP_SAVE_START = 0, ULPD_SLEEP_SAVE_ULPD_IT_STATUS, ULPD_SLEEP_SAVE_ULPD_CLOCK_CTRL, ULPD_SLEEP_SAVE_ULPD_SOFT_REQ,
  ULPD_SLEEP_SAVE_ULPD_STATUS_REQ, ULPD_SLEEP_SAVE_ULPD_DPLL_CTRL, ULPD_SLEEP_SAVE_ULPD_POWER_CTRL, ULPD_SLEEP_SAVE_SIZE
}
 
enum  mpui1510_save_state {
  MPUI1510_SLEEP_SAVE_START = 0, MPUI1510_SLEEP_SAVE_MPUI_CTRL, MPUI1510_SLEEP_SAVE_MPUI_DSP_BOOT_CONFIG, MPUI1510_SLEEP_SAVE_MPUI_DSP_API_CONFIG,
  MPUI1510_SLEEP_SAVE_MPUI_DSP_STATUS, MPUI1510_SLEEP_SAVE_EMIFF_SDRAM_CONFIG, MPUI1510_SLEEP_SAVE_EMIFS_CONFIG, MPUI1510_SLEEP_SAVE_OMAP_IH1_MIR,
  MPUI1510_SLEEP_SAVE_OMAP_IH2_MIR, MPUI1510_SLEEP_SAVE_SIZE = 0
}
 
enum  mpui7xx_save_state {
  MPUI7XX_SLEEP_SAVE_START = 0, MPUI7XX_SLEEP_SAVE_MPUI_CTRL, MPUI7XX_SLEEP_SAVE_MPUI_DSP_BOOT_CONFIG, MPUI7XX_SLEEP_SAVE_MPUI_DSP_API_CONFIG,
  MPUI7XX_SLEEP_SAVE_MPUI_DSP_STATUS, MPUI7XX_SLEEP_SAVE_EMIFF_SDRAM_CONFIG, MPUI7XX_SLEEP_SAVE_EMIFS_CONFIG, MPUI7XX_SLEEP_SAVE_OMAP_IH1_MIR,
  MPUI7XX_SLEEP_SAVE_OMAP_IH2_0_MIR, MPUI7XX_SLEEP_SAVE_OMAP_IH2_1_MIR, MPUI7XX_SLEEP_SAVE_SIZE = 0
}
 
enum  mpui1610_save_state {
  MPUI1610_SLEEP_SAVE_START = 0, MPUI1610_SLEEP_SAVE_MPUI_CTRL, MPUI1610_SLEEP_SAVE_MPUI_DSP_BOOT_CONFIG, MPUI1610_SLEEP_SAVE_MPUI_DSP_API_CONFIG,
  MPUI1610_SLEEP_SAVE_MPUI_DSP_STATUS, MPUI1610_SLEEP_SAVE_EMIFF_SDRAM_CONFIG, MPUI1610_SLEEP_SAVE_EMIFS_CONFIG, MPUI1610_SLEEP_SAVE_OMAP_IH1_MIR,
  MPUI1610_SLEEP_SAVE_OMAP_IH2_0_MIR, MPUI1610_SLEEP_SAVE_OMAP_IH2_1_MIR, MPUI1610_SLEEP_SAVE_OMAP_IH2_2_MIR, MPUI1610_SLEEP_SAVE_OMAP_IH2_3_MIR,
  MPUI1610_SLEEP_SAVE_SIZE = 0
}
 

Functions

void prevent_idle_sleep (void)
 
void allow_idle_sleep (void)
 
void omap1_pm_idle (void)
 
void omap1_pm_suspend (void)
 
void omap7xx_cpu_suspend (unsigned long, unsigned long)
 
void omap1510_cpu_suspend (unsigned long, unsigned long)
 
void omap1610_cpu_suspend (unsigned long, unsigned long)
 
void omap7xx_idle_loop_suspend (void)
 
void omap1510_idle_loop_suspend (void)
 
void omap1610_idle_loop_suspend (void)
 

Variables

struct kset power_subsys
 
unsigned int omap7xx_cpu_suspend_sz
 
unsigned int omap1510_cpu_suspend_sz
 
unsigned int omap1610_cpu_suspend_sz
 
unsigned int omap7xx_idle_loop_suspend_sz
 
unsigned int omap1510_idle_loop_suspend_sz
 
unsigned int omap1610_idle_loop_suspend_sz
 

Macro Definition Documentation

#define ARM_IDLECT1_ASM_OFFSET   0x04

Definition at line 43 of file pm.h.

#define ARM_IDLECT2_ASM_OFFSET   0x08

Definition at line 44 of file pm.h.

#define ARM_RESTORE (   x)    omap_writel((arm_sleep_save[ARM_SLEEP_SAVE_##x]), (x))

Definition at line 148 of file pm.h.

#define ARM_SAVE (   x)    arm_sleep_save[ARM_SLEEP_SAVE_##x] = omap_readl(x)

Definition at line 147 of file pm.h.

#define ARM_SHOW (   x)    arm_sleep_save[ARM_SLEEP_SAVE_##x]

Definition at line 149 of file pm.h.

#define CLKGEN_REG_ASM_BASE   OMAP1_IO_ADDRESS(0xfffece00)

Definition at line 42 of file pm.h.

#define CPU_SUSPEND_SIZE   200

Definition at line 63 of file pm.h.

#define DEFAULT_MPUI_CONFIG   0x05cf

Definition at line 74 of file pm.h.

#define DSP_CLOCK_ENABLE   0x2000

Definition at line 76 of file pm.h.

#define DSP_ENABLE   0x0002

Definition at line 72 of file pm.h.

#define DSP_IDLE   0x0040

Definition at line 70 of file pm.h.

#define DSP_IDLE_DELAY   10

Definition at line 69 of file pm.h.

#define DSP_IDLE_MODE   0x2

Definition at line 77 of file pm.h.

#define DSP_RESTORE (   x)    __raw_writew((dsp_sleep_save[DSP_SLEEP_SAVE_##x]), (x))

Definition at line 152 of file pm.h.

#define DSP_RST   0x0004

Definition at line 71 of file pm.h.

#define DSP_SAVE (   x)    dsp_sleep_save[DSP_SLEEP_SAVE_##x] = __raw_readw(x)

Definition at line 151 of file pm.h.

#define DSP_SHOW (   x)    dsp_sleep_save[DSP_SLEEP_SAVE_##x]

Definition at line 153 of file pm.h.

#define EMIFF_SDRAM_CONFIG_ASM_OFFSET   0x20

Definition at line 48 of file pm.h.

#define EMIFS_CONFIG_ASM_OFFSET   0x0c

Definition at line 47 of file pm.h.

#define EN_PERCK_BIT   0x04

Definition at line 86 of file pm.h.

#define ENABLE_XORCLK   0x2

Definition at line 75 of file pm.h.

#define IDLE_EMIFS_REQUEST   0xc

Definition at line 59 of file pm.h.

#define IDLE_WAIT_CYCLES   0x00000fff

Definition at line 55 of file pm.h.

#define IRQ_KEYBOARD   (1<<1)

Definition at line 81 of file pm.h.

#define IRQ_LEVEL2   (1<<0)

Definition at line 80 of file pm.h.

#define IRQ_UART2   (1<<15)

Definition at line 82 of file pm.h.

#define MODEM_32K_EN   0x1

Definition at line 60 of file pm.h.

#define MPUI1510_RESTORE (   x)    omap_writel((mpui1510_sleep_save[MPUI1510_SLEEP_SAVE_##x]), (x))

Definition at line 164 of file pm.h.

#define MPUI1510_SAVE (   x)    mpui1510_sleep_save[MPUI1510_SLEEP_SAVE_##x] = omap_readl(x)

Definition at line 163 of file pm.h.

#define MPUI1510_SHOW (   x)    mpui1510_sleep_save[MPUI1510_SLEEP_SAVE_##x]

Definition at line 165 of file pm.h.

#define MPUI1610_RESTORE (   x)    omap_writel((mpui1610_sleep_save[MPUI1610_SLEEP_SAVE_##x]), (x))

Definition at line 168 of file pm.h.

#define MPUI1610_SAVE (   x)    mpui1610_sleep_save[MPUI1610_SLEEP_SAVE_##x] = omap_readl(x)

Definition at line 167 of file pm.h.

#define MPUI1610_SHOW (   x)    mpui1610_sleep_save[MPUI1610_SLEEP_SAVE_##x]

Definition at line 169 of file pm.h.

#define MPUI7XX_RESTORE (   x)    omap_writel((mpui7xx_sleep_save[MPUI7XX_SLEEP_SAVE_##x]), (x))

Definition at line 160 of file pm.h.

#define MPUI7XX_SAVE (   x)    mpui7xx_sleep_save[MPUI7XX_SLEEP_SAVE_##x] = omap_readl(x)

Definition at line 159 of file pm.h.

#define MPUI7XX_SHOW (   x)    mpui7xx_sleep_save[MPUI7XX_SLEEP_SAVE_##x]

Definition at line 161 of file pm.h.

#define OMAP1510_BIG_SLEEP_REQUEST   0x0cc5

Definition at line 89 of file pm.h.

#define OMAP1510_DEEP_SLEEP_REQUEST   0x0ec7

Definition at line 88 of file pm.h.

#define OMAP1510_IDLE_CLOCK_DOMAINS   0x2

Definition at line 91 of file pm.h.

#define OMAP1510_IDLE_LOOP_REQUEST   0x0c00

Definition at line 90 of file pm.h.

#define OMAP1610_IDLE_LOOP_REQUEST   0x0400

Definition at line 99 of file pm.h.

#define OMAP1610_IDLECT1_SLEEP_VAL   0x13c7

Definition at line 94 of file pm.h.

#define OMAP1610_IDLECT2_SLEEP_VAL   0x09c7

Definition at line 95 of file pm.h.

#define OMAP1610_IDLECT3   0xfffece24

Definition at line 98 of file pm.h.

#define OMAP1610_IDLECT3_SLEEP_ORMASK   0x2c

Definition at line 97 of file pm.h.

#define OMAP1610_IDLECT3_VAL   0x3f

Definition at line 96 of file pm.h.

#define OMAP7XX_IDLE_LOOP_REQUEST   0x0C00

Definition at line 105 of file pm.h.

#define OMAP7XX_IDLECT1_SLEEP_VAL   0x16c7

Definition at line 101 of file pm.h.

#define OMAP7XX_IDLECT2_SLEEP_VAL   0x09c7

Definition at line 102 of file pm.h.

#define OMAP7XX_IDLECT3   0xfffece24

Definition at line 104 of file pm.h.

#define OMAP7XX_IDLECT3_VAL   0x3f

Definition at line 103 of file pm.h.

#define omap_serial_wake_trigger (   x)    {}

Definition at line 144 of file pm.h.

#define omap_serial_wakeup_init (   void)    {}

Definition at line 143 of file pm.h.

#define PDE_BIT   0x08

Definition at line 84 of file pm.h.

#define PER_EN   0x1

Definition at line 61 of file pm.h.

#define PERIPHERAL_ENABLE   0x2

Definition at line 56 of file pm.h.

#define PWD_EN_BIT   0x04

Definition at line 85 of file pm.h.

#define SELF_REFRESH_MODE   0x0c000001

Definition at line 58 of file pm.h.

#define SUFFICIENT_DSP_RESET_TIME   1000

Definition at line 73 of file pm.h.

#define TC_IDLE_REQUEST   (0x0000000c)

Definition at line 78 of file pm.h.

#define TCMIF_ASM_BASE   OMAP1_IO_ADDRESS(0xfffecc00)

Definition at line 46 of file pm.h.

#define ULPD_DEEP_SLEEP_TRANSITION_EN   0x0010

Definition at line 65 of file pm.h.

#define ULPD_LOW_PWR_EN   0x0001

Definition at line 64 of file pm.h.

#define ULPD_POWER_CTRL_REG_VAL   0x0219

Definition at line 67 of file pm.h.

#define ULPD_RESTORE (   x)    omap_writew((ulpd_sleep_save[ULPD_SLEEP_SAVE_##x]), (x))

Definition at line 156 of file pm.h.

#define ULPD_SAVE (   x)    ulpd_sleep_save[ULPD_SLEEP_SAVE_##x] = omap_readw(x)

Definition at line 155 of file pm.h.

#define ULPD_SETUP_ANALOG_CELL_3_VAL   0

Definition at line 66 of file pm.h.

#define ULPD_SHOW (   x)    ulpd_sleep_save[ULPD_SLEEP_SAVE_##x]

Definition at line 157 of file pm.h.

Enumeration Type Documentation

Enumerator:
ARM_SLEEP_SAVE_START 
ARM_SLEEP_SAVE_ARM_CKCTL 
ARM_SLEEP_SAVE_ARM_IDLECT1 
ARM_SLEEP_SAVE_ARM_IDLECT2 
ARM_SLEEP_SAVE_ARM_IDLECT3 
ARM_SLEEP_SAVE_ARM_EWUPCT 
ARM_SLEEP_SAVE_ARM_RSTCT1 
ARM_SLEEP_SAVE_ARM_RSTCT2 
ARM_SLEEP_SAVE_ARM_SYSST 
ARM_SLEEP_SAVE_SIZE 

Definition at line 177 of file pm.h.

Enumerator:
DSP_SLEEP_SAVE_START 
DSP_SLEEP_SAVE_DSP_IDLECT2 
DSP_SLEEP_SAVE_SIZE 

Definition at line 193 of file pm.h.

Enumerator:
MPUI1510_SLEEP_SAVE_START 
MPUI1510_SLEEP_SAVE_MPUI_CTRL 
MPUI1510_SLEEP_SAVE_MPUI_DSP_BOOT_CONFIG 
MPUI1510_SLEEP_SAVE_MPUI_DSP_API_CONFIG 
MPUI1510_SLEEP_SAVE_MPUI_DSP_STATUS 
MPUI1510_SLEEP_SAVE_EMIFF_SDRAM_CONFIG 
MPUI1510_SLEEP_SAVE_EMIFS_CONFIG 
MPUI1510_SLEEP_SAVE_OMAP_IH1_MIR 
MPUI1510_SLEEP_SAVE_OMAP_IH2_MIR 
MPUI1510_SLEEP_SAVE_SIZE 

Definition at line 216 of file pm.h.

Enumerator:
MPUI1610_SLEEP_SAVE_START 
MPUI1610_SLEEP_SAVE_MPUI_CTRL 
MPUI1610_SLEEP_SAVE_MPUI_DSP_BOOT_CONFIG 
MPUI1610_SLEEP_SAVE_MPUI_DSP_API_CONFIG 
MPUI1610_SLEEP_SAVE_MPUI_DSP_STATUS 
MPUI1610_SLEEP_SAVE_EMIFF_SDRAM_CONFIG 
MPUI1610_SLEEP_SAVE_EMIFS_CONFIG 
MPUI1610_SLEEP_SAVE_OMAP_IH1_MIR 
MPUI1610_SLEEP_SAVE_OMAP_IH2_0_MIR 
MPUI1610_SLEEP_SAVE_OMAP_IH2_1_MIR 
MPUI1610_SLEEP_SAVE_OMAP_IH2_2_MIR 
MPUI1610_SLEEP_SAVE_OMAP_IH2_3_MIR 
MPUI1610_SLEEP_SAVE_SIZE 

Definition at line 257 of file pm.h.

Enumerator:
MPUI7XX_SLEEP_SAVE_START 
MPUI7XX_SLEEP_SAVE_MPUI_CTRL 
MPUI7XX_SLEEP_SAVE_MPUI_DSP_BOOT_CONFIG 
MPUI7XX_SLEEP_SAVE_MPUI_DSP_API_CONFIG 
MPUI7XX_SLEEP_SAVE_MPUI_DSP_STATUS 
MPUI7XX_SLEEP_SAVE_EMIFF_SDRAM_CONFIG 
MPUI7XX_SLEEP_SAVE_EMIFS_CONFIG 
MPUI7XX_SLEEP_SAVE_OMAP_IH1_MIR 
MPUI7XX_SLEEP_SAVE_OMAP_IH2_0_MIR 
MPUI7XX_SLEEP_SAVE_OMAP_IH2_1_MIR 
MPUI7XX_SLEEP_SAVE_SIZE 

Definition at line 236 of file pm.h.

Enumerator:
ULPD_SLEEP_SAVE_START 
ULPD_SLEEP_SAVE_ULPD_IT_STATUS 
ULPD_SLEEP_SAVE_ULPD_CLOCK_CTRL 
ULPD_SLEEP_SAVE_ULPD_SOFT_REQ 
ULPD_SLEEP_SAVE_ULPD_STATUS_REQ 
ULPD_SLEEP_SAVE_ULPD_DPLL_CTRL 
ULPD_SLEEP_SAVE_ULPD_POWER_CTRL 
ULPD_SLEEP_SAVE_SIZE 

Definition at line 202 of file pm.h.

Function Documentation

void allow_idle_sleep ( void  )
void omap1510_cpu_suspend ( unsigned  long,
unsigned  long 
)
void omap1510_idle_loop_suspend ( void  )
void omap1610_cpu_suspend ( unsigned  long,
unsigned  long 
)
void omap1610_idle_loop_suspend ( void  )
void omap1_pm_idle ( void  )

Definition at line 108 of file pm.c.

void omap1_pm_suspend ( void  )

Definition at line 221 of file pm.c.

void omap7xx_cpu_suspend ( unsigned  long,
unsigned  long 
)
void omap7xx_idle_loop_suspend ( void  )
void prevent_idle_sleep ( void  )

Variable Documentation

unsigned int omap1510_cpu_suspend_sz
unsigned int omap1510_idle_loop_suspend_sz
unsigned int omap1610_cpu_suspend_sz
unsigned int omap1610_idle_loop_suspend_sz
unsigned int omap7xx_cpu_suspend_sz
unsigned int omap7xx_idle_loop_suspend_sz
struct kset power_subsys