Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
asic3.c File Reference
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/irq.h>
#include <linux/gpio.h>
#include <linux/export.h>
#include <linux/io.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/platform_device.h>
#include <linux/mfd/asic3.h>
#include <linux/mfd/core.h>
#include <linux/mfd/ds1wm.h>
#include <linux/mfd/tmio.h>

Go to the source code of this file.

Data Structures

struct  asic3_clk
 
struct  asic3
 

Macros

#define INIT_CDEX(_name, _rate)
 
#define MAX_ASIC_ISR_LOOPS   20
 
#define ASIC3_GPIO_BASE_INCR   (ASIC3_GPIO_B_BASE - ASIC3_GPIO_A_BASE)
 

Enumerations

enum  {
  ASIC3_CLOCK_SPI, ASIC3_CLOCK_OWM, ASIC3_CLOCK_PWM0, ASIC3_CLOCK_PWM1,
  ASIC3_CLOCK_LED0, ASIC3_CLOCK_LED1, ASIC3_CLOCK_LED2, ASIC3_CLOCK_SD_HOST,
  ASIC3_CLOCK_SD_BUS, ASIC3_CLOCK_SMBUS, ASIC3_CLOCK_EX0, ASIC3_CLOCK_EX1
}
 

Functions

void asic3_write_register (struct asic3 *asic, unsigned int reg, u32 value)
 
 EXPORT_SYMBOL_GPL (asic3_write_register)
 
u32 asic3_read_register (struct asic3 *asic, unsigned int reg)
 
 EXPORT_SYMBOL_GPL (asic3_read_register)
 
 subsys_initcall (asic3_init)
 

Macro Definition Documentation

#define ASIC3_GPIO_BASE_INCR   (ASIC3_GPIO_B_BASE - ASIC3_GPIO_A_BASE)

Definition at line 123 of file asic3.c.

#define INIT_CDEX (   _name,
  _rate 
)
Value:
[ASIC3_CLOCK_##_name] = { \
.cdex = CLOCK_CDEX_##_name, \
.rate = _rate, \
}

Definition at line 55 of file asic3.c.

#define MAX_ASIC_ISR_LOOPS   20

Definition at line 122 of file asic3.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
ASIC3_CLOCK_SPI 
ASIC3_CLOCK_OWM 
ASIC3_CLOCK_PWM0 
ASIC3_CLOCK_PWM1 
ASIC3_CLOCK_LED0 
ASIC3_CLOCK_LED1 
ASIC3_CLOCK_LED2 
ASIC3_CLOCK_SD_HOST 
ASIC3_CLOCK_SD_BUS 
ASIC3_CLOCK_SMBUS 
ASIC3_CLOCK_EX0 
ASIC3_CLOCK_EX1 

Definition at line 34 of file asic3.c.

Function Documentation

u32 asic3_read_register ( struct asic3 asic,
unsigned int  reg 
)

Definition at line 99 of file asic3.c.

void asic3_write_register ( struct asic3 asic,
unsigned int  reg,
u32  value 
)

Definition at line 92 of file asic3.c.

EXPORT_SYMBOL_GPL ( asic3_write_register  )
EXPORT_SYMBOL_GPL ( asic3_read_register  )
subsys_initcall ( asic3_init  )