~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/arm/mach-s3c/pm-core-s3c64xx.h

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 /*
  3  * Copyright 2008 Openmoko, Inc.
  4  * Copyright 2008 Simtec Electronics
  5  *      Ben Dooks <ben@simtec.co.uk>
  6  *      http://armlinux.simtec.co.uk/
  7  *
  8  * S3C64XX - PM core support for arch/arm/plat-s3c/pm.c
  9  */
 10 
 11 #ifndef __MACH_S3C64XX_PM_CORE_H
 12 #define __MACH_S3C64XX_PM_CORE_H __FILE__
 13 
 14 #include <linux/serial_s3c.h>
 15 #include <linux/delay.h>
 16 
 17 #include "regs-gpio.h"
 18 #include "regs-clock.h"
 19 #include "map.h"
 20 
 21 static inline void s3c_pm_debug_init_uart(void)
 22 {
 23 }
 24 
 25 static inline void s3c_pm_arch_prepare_irqs(void)
 26 {
 27         /* VIC should have already been taken care of */
 28 
 29         /* clear any pending EINT0 interrupts */
 30         __raw_writel(__raw_readl(S3C64XX_EINT0PEND), S3C64XX_EINT0PEND);
 31 }
 32 
 33 static inline void s3c_pm_arch_stop_clocks(void)
 34 {
 35 }
 36 
 37 static inline void s3c_pm_arch_show_resume_irqs(void)
 38 {
 39 }
 40 
 41 /* make these defines, we currently do not have any need to change
 42  * the IRQ wake controls depending on the CPU we are running on */
 43 #ifdef CONFIG_PM_SLEEP
 44 #define s3c_irqwake_eintallow   ((1 << 28) - 1)
 45 #define s3c_irqwake_intallow    (~0)
 46 #else
 47 #define s3c_irqwake_eintallow 0
 48 #define s3c_irqwake_intallow  0
 49 #endif
 50 
 51 static inline void s3c_pm_restored_gpios(void)
 52 {
 53         /* ensure sleep mode has been cleared from the system */
 54 
 55         __raw_writel(0, S3C64XX_SLPEN);
 56 }
 57 
 58 static inline void samsung_pm_saved_gpios(void)
 59 {
 60         /* turn on the sleep mode and keep it there, as it seems that during
 61          * suspend the xCON registers get re-set and thus you can end up with
 62          * problems between going to sleep and resuming.
 63          */
 64 
 65         __raw_writel(S3C64XX_SLPEN_USE_xSLP, S3C64XX_SLPEN);
 66 }
 67 #endif /* __MACH_S3C64XX_PM_CORE_H */
 68 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php