diff options
| author | Jiri Kosina <jkosina@suse.cz> | 2011-09-15 15:08:05 +0200 | 
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.cz> | 2011-09-15 15:08:18 +0200 | 
| commit | e060c38434b2caa78efe7cedaff4191040b65a15 (patch) | |
| tree | 407361230bf6733f63d8e788e4b5e6566ee04818 /arch/arm/mach-s3c64xx/include/mach/pm-core.h | |
| parent | 10e4ac572eeffe5317019bd7330b6058a400dfc2 (diff) | |
| parent | cc39c6a9bbdebfcf1a7dee64d83bf302bc38d941 (diff) | |
| download | olio-linux-3.10-e060c38434b2caa78efe7cedaff4191040b65a15.tar.xz olio-linux-3.10-e060c38434b2caa78efe7cedaff4191040b65a15.zip  | |
Merge branch 'master' into for-next
Fast-forward merge with Linus to be able to merge patches
based on more recent version of the tree.
Diffstat (limited to 'arch/arm/mach-s3c64xx/include/mach/pm-core.h')
| -rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/pm-core.h | 19 | 
1 files changed, 18 insertions, 1 deletions
diff --git a/arch/arm/mach-s3c64xx/include/mach/pm-core.h b/arch/arm/mach-s3c64xx/include/mach/pm-core.h index 1e9f20f0bb7..38659bebe4b 100644 --- a/arch/arm/mach-s3c64xx/include/mach/pm-core.h +++ b/arch/arm/mach-s3c64xx/include/mach/pm-core.h @@ -53,7 +53,7 @@ static inline void s3c_pm_arch_show_resume_irqs(void)   * the IRQ wake controls depending on the CPU we are running on */  #define s3c_irqwake_eintallow	((1 << 28) - 1) -#define s3c_irqwake_intallow	(0) +#define s3c_irqwake_intallow	(~0)  static inline void s3c_pm_arch_update_uart(void __iomem *regs,  					   struct pm_uart_save *save) @@ -96,3 +96,20 @@ static inline void s3c_pm_arch_update_uart(void __iomem *regs,  		save->ucon = new_ucon;  	}  } + +static inline void s3c_pm_restored_gpios(void) +{ +	/* ensure sleep mode has been cleared from the system */ + +	__raw_writel(0, S3C64XX_SLPEN); +} + +static inline void s3c_pm_saved_gpios(void) +{ +	/* turn on the sleep mode and keep it there, as it seems that during +	 * suspend the xCON registers get re-set and thus you can end up with +	 * problems between going to sleep and resuming. +	 */ + +	__raw_writel(S3C64XX_SLPEN_USE_xSLP, S3C64XX_SLPEN); +}  |