Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cs5535-clockevt.c File Reference
#include <linux/kernel.h>
#include <linux/irq.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/cs5535.h>
#include <linux/clockchips.h>

Go to the source code of this file.

Macros

#define DRV_NAME   "cs5535-clockevt"
 
#define MFGPT_DIVISOR   16
 
#define MFGPT_SCALE   4 /* divisor = 2^(scale) */
 
#define MFGPT_HZ   (32768 / MFGPT_DIVISOR)
 
#define MFGPT_PERIODIC   (MFGPT_HZ / HZ)
 

Functions

 module_param_named (irq, timer_irq, int, 0644)
 
 MODULE_PARM_DESC (irq,"Which IRQ to use for the clock source MFGPT ticks.")
 
 module_init (cs5535_mfgpt_init)
 
 MODULE_AUTHOR ("Andres Salomon <[email protected]>")
 
 MODULE_DESCRIPTION ("CS5535/CS5536 MFGPT clock event driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define DRV_NAME   "cs5535-clockevt"

Definition at line 22 of file cs5535-clockevt.c.

#define MFGPT_DIVISOR   16

Definition at line 50 of file cs5535-clockevt.c.

#define MFGPT_HZ   (32768 / MFGPT_DIVISOR)

Definition at line 52 of file cs5535-clockevt.c.

#define MFGPT_PERIODIC   (MFGPT_HZ / HZ)

Definition at line 53 of file cs5535-clockevt.c.

#define MFGPT_SCALE   4 /* divisor = 2^(scale) */

Definition at line 51 of file cs5535-clockevt.c.

Function Documentation

MODULE_AUTHOR ( "Andres Salomon <[email protected]>"  )
MODULE_DESCRIPTION ( "CS5535/CS5536 MFGPT clock event driver )
module_init ( cs5535_mfgpt_init  )
MODULE_LICENSE ( "GPL"  )
module_param_named ( irq  ,
timer_irq  ,
int  ,
0644   
)
MODULE_PARM_DESC ( irq  ,
"Which IRQ to use for the clock source MFGPT ticks."   
)