~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to arch/arm/mach-omap2/pm.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
extern int omap3_can_sleep(void);
22
22
extern int omap_set_pwrdm_state(struct powerdomain *pwrdm, u32 state);
23
23
extern int omap3_idle_init(void);
 
24
extern int omap4_idle_init(void);
 
25
extern void omap4_trigger_ioctrl(void);
24
26
 
25
27
#if defined(CONFIG_PM_OPP)
26
28
extern int omap3_opp_init(void);
36
38
}
37
39
#endif
38
40
 
 
41
/*
 
42
 * cpuidle mach specific parameters
 
43
 *
 
44
 * The board code can override the default C-states definition using
 
45
 * omap3_pm_init_cpuidle
 
46
 */
39
47
struct cpuidle_params {
40
 
        u8  valid;
41
 
        u32 sleep_latency;
42
 
        u32 wake_latency;
43
 
        u32 threshold;
 
48
        u32 exit_latency;       /* exit_latency = sleep + wake-up latencies */
 
49
        u32 target_residency;
 
50
        u8 valid;               /* validates the C-state */
44
51
};
45
52
 
46
53
#if defined(CONFIG_PM) && defined(CONFIG_CPU_IDLE)
73
80
#define sleep_while_idle 0
74
81
#endif
75
82
 
76
 
#if defined(CONFIG_CPU_IDLE)
77
 
extern void omap3_cpuidle_update_states(u32, u32);
78
 
#endif
79
 
 
80
83
#if defined(CONFIG_PM_DEBUG) && defined(CONFIG_DEBUG_FS)
81
84
extern void pm_dbg_update_time(struct powerdomain *pwrdm, int prev);
82
85
extern int pm_dbg_regset_save(int reg_set);