cregit-Linux how code gets into the kernel

Release 4.11 arch/arm/plat-samsung/include/plat/pm.h

/* arch/arm/plat-samsung/include/plat/pm.h
 *
 * Copyright (c) 2004 Simtec Electronics
 *      http://armlinux.simtec.co.uk/
 *      Written by Ben Dooks, <ben@simtec.co.uk>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
*/

/* s3c_pm_init
 *
 * called from board at initialisation time to setup the power
 * management
*/

#include <plat/pm-common.h>

struct device;

#ifdef CONFIG_SAMSUNG_PM

extern __init int s3c_pm_init(void);
extern __init int s3c64xx_pm_init(void);

#else


static inline int s3c_pm_init(void) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Ben Dooks758.33%266.67%
Mark Brown541.67%133.33%
Total12100.00%3100.00%


static inline int s3c64xx_pm_init(void) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Mark Brown758.33%150.00%
Ben Dooks541.67%150.00%
Total12100.00%2100.00%

#endif /* configuration for the IRQ mask over sleep */ extern unsigned long s3c_irqwake_intmask; extern unsigned long s3c_irqwake_eintmask; /* per-cpu sleep functions */ extern void (*pm_cpu_prep)(void); extern int (*pm_cpu_sleep)(unsigned long); /* Flags for PM Control */ extern unsigned long s3c_pm_flags; /* from sleep.S */ extern int s3c2410_cpu_suspend(unsigned long); #ifdef CONFIG_PM_SLEEP extern int s3c_irq_wake(struct irq_data *data, unsigned int state); extern void s3c_cpu_resume(void); #else #define s3c_irq_wake NULL #define s3c_cpu_resume NULL #endif #ifdef CONFIG_SAMSUNG_PM extern int s3c_irqext_wake(struct irq_data *data, unsigned int state); #else #define s3c_irqext_wake NULL #endif #ifdef CONFIG_S3C_PM_DEBUG_LED_SMDK /** * s3c_pm_debug_smdkled() - Debug PM suspend/resume via SMDK Board LEDs * @set: set bits for the state of the LEDs * @clear: clear bits for the state of the LEDs. */ extern void s3c_pm_debug_smdkled(u32 set, u32 clear); #else
static inline void s3c_pm_debug_smdkled(u32 set, u32 clear) { }

Contributors

PersonTokensPropCommitsCommitProp
Ben Dooks12100.00%1100.00%
Total12100.00%1100.00%

#endif /* CONFIG_S3C_PM_DEBUG_LED_SMDK */ /** * s3c_pm_configure_extint() - ensure pins are correctly set for IRQ * * Setup all the necessary GPIO pins for waking the system on external * interrupt. */ extern void s3c_pm_configure_extint(void); #ifdef CONFIG_GPIO_SAMSUNG /** * samsung_pm_restore_gpios() - restore the state of the gpios after sleep. * * Restore the state of the GPIO pins after sleep, which may involve ensuring * that we do not glitch the state of the pins from that the bootloader's * resume code has done. */ extern void samsung_pm_restore_gpios(void); /** * samsung_pm_save_gpios() - save the state of the GPIOs for restoring after sleep. * * Save the GPIO states for resotration on resume. See samsung_pm_restore_gpios(). */ extern void samsung_pm_save_gpios(void); #else
static inline void samsung_pm_restore_gpios(void) {}

Contributors

PersonTokensPropCommitsCommitProp
Tomasz Figa8100.00%1100.00%
Total8100.00%1100.00%


static inline void samsung_pm_save_gpios(void) {}

Contributors

PersonTokensPropCommitsCommitProp
Tomasz Figa8100.00%1100.00%
Total8100.00%1100.00%

#endif extern void s3c_pm_save_core(void); extern void s3c_pm_restore_core(void);

Overall Contributors

PersonTokensPropCommitsCommitProp
Ben Dooks14757.20%1043.48%
Mark Brown249.34%313.04%
Arnd Bergmann249.34%28.70%
Tomasz Figa249.34%28.70%
Inderpal Singh176.61%14.35%
Amit Daniel Kachhap103.89%14.35%
Russell King62.33%28.70%
Kukjin Kim41.56%14.35%
Kay Sievers10.39%14.35%
Total257100.00%23100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.