mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-25 05:34:00 +08:00
711be5ccfe
1. introduce a structure pxa_cpu_pm_fns for pxa25x/pxa27x specific operations as follows: struct pxa_cpu_pm_fns { int save_size; void (*save)(unsigned long *); void (*restore)(unsigned long *); int (*valid)(suspend_state_t state); void (*enter)(suspend_state_t state); } 2. processor specific registers saving and restoring are performed by calling the corresponding (*save) and (*restore) 3. pxa_cpu_pm_fns->save_size should be initialized to the required size for processor specific registers saving, the allocated memory address will be passed to (*save) and (*restore) memory allocation happens early in pxa_pm_init(), and save_size should be assigned prior to this (which is usually true, since pxa_pm_init() happens in device_initcall() 4. there're some redundancies for those SLEEP_SAVE_XXX and related macros, will be fixed later, one way possible is for the system devices to handle the specific registers saving and restoring Signed-off-by: eric miao <eric.y.miao@gmail.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> |
||
---|---|---|
.. | ||
akita-ioexp.c | ||
clock.c | ||
corgi_lcd.c | ||
corgi_pm.c | ||
corgi_ssp.c | ||
corgi.c | ||
devices.h | ||
dma.c | ||
generic.c | ||
generic.h | ||
idp.c | ||
irq.c | ||
Kconfig | ||
leds-idp.c | ||
leds-lubbock.c | ||
leds-mainstone.c | ||
leds-trizeps4.c | ||
leds.c | ||
leds.h | ||
lpd270.c | ||
lubbock.c | ||
mainstone.c | ||
Makefile | ||
Makefile.boot | ||
pm.c | ||
poodle.c | ||
pxa25x.c | ||
pxa27x.c | ||
sharpsl_pm.c | ||
sharpsl.h | ||
sleep.S | ||
spitz_pm.c | ||
spitz.c | ||
ssp.c | ||
standby.S | ||
time.c | ||
tosa.c | ||
trizeps4.c |