Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
pwm-tiecap.c File Reference
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/err.h>
#include <linux/clk.h>
#include <linux/pm_runtime.h>
#include <linux/pwm.h>

Go to the source code of this file.

Data Structures

struct  ecap_pwm_chip
 

Macros

#define CAP1   0x08
 
#define CAP2   0x0C
 
#define CAP3   0x10
 
#define CAP4   0x14
 
#define ECCTL2   0x2A
 
#define ECCTL2_APWM_POL_LOW   BIT(10)
 
#define ECCTL2_APWM_MODE   BIT(9)
 
#define ECCTL2_SYNC_SEL_DISA   (BIT(7) | BIT(6))
 
#define ECCTL2_TSCTR_FREERUN   BIT(4)
 

Functions

 module_platform_driver (ecap_pwm_driver)
 
 MODULE_DESCRIPTION ("ECAP PWM driver")
 
 MODULE_AUTHOR ("Texas Instruments")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define CAP1   0x08

Definition at line 30 of file pwm-tiecap.c.

#define CAP2   0x0C

Definition at line 31 of file pwm-tiecap.c.

#define CAP3   0x10

Definition at line 32 of file pwm-tiecap.c.

#define CAP4   0x14

Definition at line 33 of file pwm-tiecap.c.

#define ECCTL2   0x2A

Definition at line 34 of file pwm-tiecap.c.

#define ECCTL2_APWM_MODE   BIT(9)

Definition at line 36 of file pwm-tiecap.c.

#define ECCTL2_APWM_POL_LOW   BIT(10)

Definition at line 35 of file pwm-tiecap.c.

#define ECCTL2_SYNC_SEL_DISA   (BIT(7) | BIT(6))

Definition at line 37 of file pwm-tiecap.c.

#define ECCTL2_TSCTR_FREERUN   BIT(4)

Definition at line 38 of file pwm-tiecap.c.

Function Documentation

MODULE_AUTHOR ( "Texas Instruments"  )
MODULE_DESCRIPTION ( "ECAP PWM driver )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( ecap_pwm_driver  )