Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
leds-renesas-tpu.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/spinlock.h>
#include <linux/printk.h>
#include <linux/ioport.h>
#include <linux/io.h>
#include <linux/clk.h>
#include <linux/leds.h>
#include <linux/platform_data/leds-renesas-tpu.h>
#include <linux/gpio.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/pm_runtime.h>
#include <linux/workqueue.h>

Go to the source code of this file.

Data Structures

struct  r_tpu_priv
 

Macros

#define TSTR   -1 /* Timer start register (shared register) */
 
#define TCR   0 /* Timer control register (+0x00) */
 
#define TMDR   1 /* Timer mode register (+0x04) */
 
#define TIOR   2 /* Timer I/O control register (+0x08) */
 
#define TIER   3 /* Timer interrupt enable register (+0x0c) */
 
#define TSR   4 /* Timer status register (+0x10) */
 
#define TCNT   5 /* Timer counter (+0x14) */
 
#define TGRA   6 /* Timer general register A (+0x18) */
 
#define TGRB   7 /* Timer general register B (+0x1c) */
 
#define TGRC   8 /* Timer general register C (+0x20) */
 
#define TGRD   9 /* Timer general register D (+0x24) */
 

Enumerations

enum  r_tpu_pin { R_TPU_PIN_UNUSED, R_TPU_PIN_GPIO, R_TPU_PIN_GPIO_FN }
 
enum  r_tpu_timer { R_TPU_TIMER_UNUSED, R_TPU_TIMER_ON }
 

Functions

 module_platform_driver (r_tpu_device_driver)
 
 MODULE_AUTHOR ("Magnus Damm")
 
 MODULE_DESCRIPTION ("Renesas TPU LED Driver")
 
 MODULE_LICENSE ("GPL v2")
 

Macro Definition Documentation

#define TCNT   5 /* Timer counter (+0x14) */

Definition at line 60 of file leds-renesas-tpu.c.

#define TCR   0 /* Timer control register (+0x00) */

Definition at line 55 of file leds-renesas-tpu.c.

#define TGRA   6 /* Timer general register A (+0x18) */

Definition at line 61 of file leds-renesas-tpu.c.

#define TGRB   7 /* Timer general register B (+0x1c) */

Definition at line 62 of file leds-renesas-tpu.c.

#define TGRC   8 /* Timer general register C (+0x20) */

Definition at line 63 of file leds-renesas-tpu.c.

#define TGRD   9 /* Timer general register D (+0x24) */

Definition at line 64 of file leds-renesas-tpu.c.

#define TIER   3 /* Timer interrupt enable register (+0x0c) */

Definition at line 58 of file leds-renesas-tpu.c.

#define TIOR   2 /* Timer I/O control register (+0x08) */

Definition at line 57 of file leds-renesas-tpu.c.

#define TMDR   1 /* Timer mode register (+0x04) */

Definition at line 56 of file leds-renesas-tpu.c.

#define TSR   4 /* Timer status register (+0x10) */

Definition at line 59 of file leds-renesas-tpu.c.

#define TSTR   -1 /* Timer start register (shared register) */

Definition at line 54 of file leds-renesas-tpu.c.

Enumeration Type Documentation

enum r_tpu_pin
Enumerator:
R_TPU_PIN_UNUSED 
R_TPU_PIN_GPIO 
R_TPU_PIN_GPIO_FN 

Definition at line 36 of file leds-renesas-tpu.c.

Enumerator:
R_TPU_TIMER_UNUSED 
R_TPU_TIMER_ON 

Definition at line 37 of file leds-renesas-tpu.c.

Function Documentation

MODULE_AUTHOR ( "Magnus Damm"  )
MODULE_DESCRIPTION ( "Renesas TPU LED Driver"  )
MODULE_LICENSE ( "GPL v2 )
module_platform_driver ( r_tpu_device_driver  )