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

Go to the source code of this file.

Data Structures

struct  tegra_pwm_chip
 

Macros

#define PWM_ENABLE   (1 << 31)
 
#define PWM_DUTY_WIDTH   8
 
#define PWM_DUTY_SHIFT   16
 
#define PWM_SCALE_WIDTH   13
 
#define PWM_SCALE_SHIFT   0
 
#define NUM_PWM   4
 

Functions

 module_platform_driver (tegra_pwm_driver)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("NVIDIA Corporation")
 
 MODULE_ALIAS ("platform:tegra-pwm")
 

Macro Definition Documentation

#define NUM_PWM   4

Definition at line 39 of file pwm-tegra.c.

#define PWM_DUTY_SHIFT   16

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

#define PWM_DUTY_WIDTH   8

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

#define PWM_ENABLE   (1 << 31)

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

#define PWM_SCALE_SHIFT   0

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

#define PWM_SCALE_WIDTH   13

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

Function Documentation

MODULE_ALIAS ( "platform:tegra-pwm )
MODULE_AUTHOR ( "NVIDIA Corporation"  )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( tegra_pwm_driver  )