Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
pwm-samsung.c File Reference
#include <linux/export.h>
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/err.h>
#include <linux/clk.h>
#include <linux/io.h>
#include <linux/pwm.h>
#include <mach/map.h>
#include <plat/regs-timer.h>

Go to the source code of this file.

Data Structures

struct  s3c_chip
 

Macros

#define pr_fmt(fmt)   "pwm-samsung: " fmt
 
#define to_s3c_chip(chip)   container_of(chip, struct s3c_chip, chip)
 
#define pwm_dbg(_pwm, msg...)   dev_dbg(&(_pwm)->pdev->dev, msg)
 
#define pwm_tcon_start(pwm)   (1 << (pwm->tcon_base + 0))
 
#define pwm_tcon_invert(pwm)   (1 << (pwm->tcon_base + 2))
 
#define pwm_tcon_autoreload(pwm)   (1 << (pwm->tcon_base + 3))
 
#define pwm_tcon_manulupdate(pwm)   (1 << (pwm->tcon_base + 1))
 
#define NS_IN_HZ   (1000000000UL)
 
#define s3c_pwm_suspend   NULL
 
#define s3c_pwm_resume   NULL
 

Functions

 arch_initcall (pwm_init)
 

Macro Definition Documentation

#define NS_IN_HZ   (1000000000UL)

Definition at line 108 of file pwm-samsung.c.

#define pr_fmt (   fmt)    "pwm-samsung: " fmt

Definition at line 14 of file pwm-samsung.c.

#define pwm_dbg (   _pwm,
  msg... 
)    dev_dbg(&(_pwm)->pdev->dev, msg)

Definition at line 46 of file pwm-samsung.c.

#define pwm_tcon_autoreload (   pwm)    (1 << (pwm->tcon_base + 3))

Definition at line 57 of file pwm-samsung.c.

#define pwm_tcon_invert (   pwm)    (1 << (pwm->tcon_base + 2))

Definition at line 56 of file pwm-samsung.c.

#define pwm_tcon_manulupdate (   pwm)    (1 << (pwm->tcon_base + 1))

Definition at line 58 of file pwm-samsung.c.

#define pwm_tcon_start (   pwm)    (1 << (pwm->tcon_base + 0))

Definition at line 55 of file pwm-samsung.c.

#define s3c_pwm_resume   NULL

Definition at line 321 of file pwm-samsung.c.

#define s3c_pwm_suspend   NULL

Definition at line 320 of file pwm-samsung.c.

#define to_s3c_chip (   chip)    container_of(chip, struct s3c_chip, chip)

Definition at line 44 of file pwm-samsung.c.

Function Documentation

arch_initcall ( pwm_init  )