Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
samsung-keypad.c File Reference
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/init.h>
#include <linux/input.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/pm.h>
#include <linux/pm_runtime.h>
#include <linux/slab.h>
#include <linux/of.h>
#include <linux/of_gpio.h>
#include <linux/sched.h>
#include <linux/input/samsung-keypad.h>

Go to the source code of this file.

Data Structures

struct  samsung_keypad
 

Macros

#define SAMSUNG_KEYIFCON   0x00
 
#define SAMSUNG_KEYIFSTSCLR   0x04
 
#define SAMSUNG_KEYIFCOL   0x08
 
#define SAMSUNG_KEYIFROW   0x0c
 
#define SAMSUNG_KEYIFFC   0x10
 
#define SAMSUNG_KEYIFCON_INT_F_EN   (1 << 0)
 
#define SAMSUNG_KEYIFCON_INT_R_EN   (1 << 1)
 
#define SAMSUNG_KEYIFCON_DF_EN   (1 << 2)
 
#define SAMSUNG_KEYIFCON_FC_EN   (1 << 3)
 
#define SAMSUNG_KEYIFCON_WAKEUPEN   (1 << 4)
 
#define SAMSUNG_KEYIFSTSCLR_P_INT_MASK   (0xff << 0)
 
#define SAMSUNG_KEYIFSTSCLR_R_INT_MASK   (0xff << 8)
 
#define SAMSUNG_KEYIFSTSCLR_R_INT_OFFSET   8
 
#define S5PV210_KEYIFSTSCLR_P_INT_MASK   (0x3fff << 0)
 
#define S5PV210_KEYIFSTSCLR_R_INT_MASK   (0x3fff << 16)
 
#define S5PV210_KEYIFSTSCLR_R_INT_OFFSET   16
 
#define SAMSUNG_KEYIFCOL_MASK   (0xff << 0)
 
#define S5PV210_KEYIFCOLEN_MASK   (0xff << 8)
 
#define SAMSUNG_KEYIFROW_MASK   (0xff << 0)
 
#define S5PV210_KEYIFROW_MASK   (0x3fff << 0)
 
#define SAMSUNG_KEYIFFC_MASK   (0x3ff << 0)
 

Enumerations

enum  samsung_keypad_type { KEYPAD_TYPE_SAMSUNG, KEYPAD_TYPE_S5PV210 }
 

Functions

 MODULE_DEVICE_TABLE (platform, samsung_keypad_driver_ids)
 
 module_platform_driver (samsung_keypad_driver)
 
 MODULE_DESCRIPTION ("Samsung keypad driver")
 
 MODULE_AUTHOR ("Joonyoung Shim <[email protected]>")
 
 MODULE_AUTHOR ("Donghwa Lee <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define S5PV210_KEYIFCOLEN_MASK   (0xff << 8)

Definition at line 54 of file samsung-keypad.c.

#define S5PV210_KEYIFROW_MASK   (0x3fff << 0)

Definition at line 58 of file samsung-keypad.c.

#define S5PV210_KEYIFSTSCLR_P_INT_MASK   (0x3fff << 0)

Definition at line 48 of file samsung-keypad.c.

#define S5PV210_KEYIFSTSCLR_R_INT_MASK   (0x3fff << 16)

Definition at line 49 of file samsung-keypad.c.

#define S5PV210_KEYIFSTSCLR_R_INT_OFFSET   16

Definition at line 50 of file samsung-keypad.c.

#define SAMSUNG_KEYIFCOL   0x08

Definition at line 33 of file samsung-keypad.c.

#define SAMSUNG_KEYIFCOL_MASK   (0xff << 0)

Definition at line 53 of file samsung-keypad.c.

#define SAMSUNG_KEYIFCON   0x00

Definition at line 31 of file samsung-keypad.c.

#define SAMSUNG_KEYIFCON_DF_EN   (1 << 2)

Definition at line 40 of file samsung-keypad.c.

#define SAMSUNG_KEYIFCON_FC_EN   (1 << 3)

Definition at line 41 of file samsung-keypad.c.

#define SAMSUNG_KEYIFCON_INT_F_EN   (1 << 0)

Definition at line 38 of file samsung-keypad.c.

#define SAMSUNG_KEYIFCON_INT_R_EN   (1 << 1)

Definition at line 39 of file samsung-keypad.c.

#define SAMSUNG_KEYIFCON_WAKEUPEN   (1 << 4)

Definition at line 42 of file samsung-keypad.c.

#define SAMSUNG_KEYIFFC   0x10

Definition at line 35 of file samsung-keypad.c.

#define SAMSUNG_KEYIFFC_MASK   (0x3ff << 0)

Definition at line 61 of file samsung-keypad.c.

#define SAMSUNG_KEYIFROW   0x0c

Definition at line 34 of file samsung-keypad.c.

#define SAMSUNG_KEYIFROW_MASK   (0xff << 0)

Definition at line 57 of file samsung-keypad.c.

#define SAMSUNG_KEYIFSTSCLR   0x04

Definition at line 32 of file samsung-keypad.c.

#define SAMSUNG_KEYIFSTSCLR_P_INT_MASK   (0xff << 0)

Definition at line 45 of file samsung-keypad.c.

#define SAMSUNG_KEYIFSTSCLR_R_INT_MASK   (0xff << 8)

Definition at line 46 of file samsung-keypad.c.

#define SAMSUNG_KEYIFSTSCLR_R_INT_OFFSET   8

Definition at line 47 of file samsung-keypad.c.

Enumeration Type Documentation

Enumerator:
KEYPAD_TYPE_SAMSUNG 
KEYPAD_TYPE_S5PV210 

Definition at line 63 of file samsung-keypad.c.

Function Documentation

MODULE_AUTHOR ( "Joonyoung Shim <[email protected]>"  )
MODULE_AUTHOR ( "Donghwa Lee <[email protected]>"  )
MODULE_DESCRIPTION ( "Samsung keypad driver )
MODULE_DEVICE_TABLE ( platform  ,
samsung_keypad_driver_ids   
)
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( samsung_keypad_driver  )