Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
pm-gpio.c File Reference
#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/gpio.h>
#include <plat/gpio-core.h>
#include <plat/pm.h>

Go to the source code of this file.

Macros

#define OFFS_CON   (0x00)
 
#define OFFS_DAT   (0x04)
 
#define OFFS_UP   (0x08)
 

Functions

void samsung_pm_save_gpios (void)
 
void samsung_pm_restore_gpios (void)
 

Variables

struct samsung_gpio_pm samsung_gpio_pm_1bit
 
struct samsung_gpio_pm samsung_gpio_pm_2bit
 

Macro Definition Documentation

#define OFFS_CON   (0x00)

Definition at line 27 of file pm-gpio.c.

#define OFFS_DAT   (0x04)

Definition at line 28 of file pm-gpio.c.

#define OFFS_UP   (0x08)

Definition at line 29 of file pm-gpio.c.

Function Documentation

void samsung_pm_restore_gpios ( void  )

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.

Definition at line 367 of file pm-gpio.c.

void samsung_pm_save_gpios ( void  )

samsung_pm_save_gpios() - Save the state of the GPIO banks.

For all the GPIO banks, save the state of each one ready for going into a suspend mode.

Definition at line 327 of file pm-gpio.c.

Variable Documentation

struct samsung_gpio_pm samsung_gpio_pm_1bit
Initial value:
= {
.save = samsung_gpio_pm_1bit_save,
.resume = samsung_gpio_pm_1bit_resume,
}

Definition at line 63 of file pm-gpio.c.

struct samsung_gpio_pm samsung_gpio_pm_2bit
Initial value:
= {
.save = samsung_gpio_pm_2bit_save,
.resume = samsung_gpio_pm_2bit_resume,
}

Definition at line 190 of file pm-gpio.c.