| .. | .. |
|---|
| 46 | 46 | }; |
|---|
| 47 | 47 | |
|---|
| 48 | 48 | struct am33xx_pm_platform_data { |
|---|
| 49 | | - int (*init)(void); |
|---|
| 49 | + int (*init)(int (*idle)(u32 wfi_flags)); |
|---|
| 50 | + int (*deinit)(void); |
|---|
| 50 | 51 | int (*soc_suspend)(unsigned int state, int (*fn)(unsigned long), |
|---|
| 51 | 52 | unsigned long args); |
|---|
| 53 | + int (*cpu_suspend)(int (*fn)(unsigned long), unsigned long args); |
|---|
| 54 | + void (*begin_suspend)(void); |
|---|
| 55 | + void (*finish_suspend)(void); |
|---|
| 52 | 56 | struct am33xx_pm_sram_addr *(*get_sram_addrs)(void); |
|---|
| 53 | | - void __iomem *(*get_rtc_base_addr)(void); |
|---|
| 57 | + void (*save_context)(void); |
|---|
| 58 | + void (*restore_context)(void); |
|---|
| 59 | + int (*check_off_mode_enable)(void); |
|---|
| 54 | 60 | }; |
|---|
| 55 | 61 | |
|---|
| 56 | 62 | struct am33xx_pm_sram_data { |
|---|