Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
omap4-keypad.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/errno.h>
#include <linux/io.h>
#include <linux/of.h>
#include <linux/input.h>
#include <linux/slab.h>
#include <linux/pm_runtime.h>
#include <linux/platform_data/omap4-keypad.h>

Go to the source code of this file.

Data Structures

struct  omap4_keypad
 

Macros

#define OMAP4_KBD_REVISION   0x00
 
#define OMAP4_KBD_SYSCONFIG   0x10
 
#define OMAP4_KBD_SYSSTATUS   0x14
 
#define OMAP4_KBD_IRQSTATUS   0x18
 
#define OMAP4_KBD_IRQENABLE   0x1C
 
#define OMAP4_KBD_WAKEUPENABLE   0x20
 
#define OMAP4_KBD_PENDING   0x24
 
#define OMAP4_KBD_CTRL   0x28
 
#define OMAP4_KBD_DEBOUNCINGTIME   0x2C
 
#define OMAP4_KBD_LONGKEYTIME   0x30
 
#define OMAP4_KBD_TIMEOUT   0x34
 
#define OMAP4_KBD_STATEMACHINE   0x38
 
#define OMAP4_KBD_ROWINPUTS   0x3C
 
#define OMAP4_KBD_COLUMNOUTPUTS   0x40
 
#define OMAP4_KBD_FULLCODE31_0   0x44
 
#define OMAP4_KBD_FULLCODE63_32   0x48
 
#define OMAP4_DEF_IRQENABLE_EVENTEN   (1 << 0)
 
#define OMAP4_DEF_IRQENABLE_LONGKEY   (1 << 1)
 
#define OMAP4_DEF_IRQENABLE_TIMEOUTEN   (1 << 2)
 
#define OMAP4_DEF_WUP_EVENT_ENA   (1 << 0)
 
#define OMAP4_DEF_WUP_LONG_KEY_ENA   (1 << 1)
 
#define OMAP4_DEF_CTRL_NOSOFTMODE   (1 << 1)
 
#define OMAP4_DEF_CTRLPTVVALUE   (1 << 2)
 
#define OMAP4_DEF_CTRLPTV   (1 << 1)
 
#define OMAP4_VAL_IRQDISABLE   0x00
 
#define OMAP4_VAL_DEBOUNCINGTIME   0x07
 
#define OMAP4_VAL_FUNCTIONALCFG   0x1E
 
#define OMAP4_MASK_IRQSTATUSDISABLE   0xFFFF
 

Enumerations

enum  { KBD_REVISION_OMAP4 = 0, KBD_REVISION_OMAP5 }
 

Functions

 module_platform_driver (omap4_keypad_driver)
 
 MODULE_AUTHOR ("Texas Instruments")
 
 MODULE_DESCRIPTION ("OMAP4 Keypad Driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:omap4-keypad")
 

Macro Definition Documentation

#define OMAP4_DEF_CTRL_NOSOFTMODE   (1 << 1)

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

#define OMAP4_DEF_CTRLPTV   (1 << 1)

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

#define OMAP4_DEF_CTRLPTVVALUE   (1 << 2)

Definition at line 62 of file omap4-keypad.c.

#define OMAP4_DEF_IRQENABLE_EVENTEN   (1 << 0)

Definition at line 56 of file omap4-keypad.c.

#define OMAP4_DEF_IRQENABLE_LONGKEY   (1 << 1)

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

#define OMAP4_DEF_IRQENABLE_TIMEOUTEN   (1 << 2)

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

#define OMAP4_DEF_WUP_EVENT_ENA   (1 << 0)

Definition at line 59 of file omap4-keypad.c.

#define OMAP4_DEF_WUP_LONG_KEY_ENA   (1 << 1)

Definition at line 60 of file omap4-keypad.c.

#define OMAP4_KBD_COLUMNOUTPUTS   0x40

Definition at line 51 of file omap4-keypad.c.

#define OMAP4_KBD_CTRL   0x28

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

#define OMAP4_KBD_DEBOUNCINGTIME   0x2C

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

#define OMAP4_KBD_FULLCODE31_0   0x44

Definition at line 52 of file omap4-keypad.c.

#define OMAP4_KBD_FULLCODE63_32   0x48

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

#define OMAP4_KBD_IRQENABLE   0x1C

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

#define OMAP4_KBD_IRQSTATUS   0x18

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

#define OMAP4_KBD_LONGKEYTIME   0x30

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

#define OMAP4_KBD_PENDING   0x24

Definition at line 44 of file omap4-keypad.c.

#define OMAP4_KBD_REVISION   0x00

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

#define OMAP4_KBD_ROWINPUTS   0x3C

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

#define OMAP4_KBD_STATEMACHINE   0x38

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

#define OMAP4_KBD_SYSCONFIG   0x10

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

#define OMAP4_KBD_SYSSTATUS   0x14

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

#define OMAP4_KBD_TIMEOUT   0x34

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

#define OMAP4_KBD_WAKEUPENABLE   0x20

Definition at line 43 of file omap4-keypad.c.

#define OMAP4_MASK_IRQSTATUSDISABLE   0xFFFF

Definition at line 70 of file omap4-keypad.c.

#define OMAP4_VAL_DEBOUNCINGTIME   0x07

Definition at line 67 of file omap4-keypad.c.

#define OMAP4_VAL_FUNCTIONALCFG   0x1E

Definition at line 68 of file omap4-keypad.c.

#define OMAP4_VAL_IRQDISABLE   0x00

Definition at line 66 of file omap4-keypad.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
KBD_REVISION_OMAP4 
KBD_REVISION_OMAP5 

Definition at line 72 of file omap4-keypad.c.

Function Documentation

MODULE_ALIAS ( "platform:omap4-keypad"  )
MODULE_AUTHOR ( "Texas Instruments"  )
MODULE_DESCRIPTION ( "OMAP4 Keypad Driver"  )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( omap4_keypad_driver  )