Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
regs-i2c.h File Reference

Go to the source code of this file.

Macros

#define I2C_CON   (PKUNITY_I2C_BASE + 0x0000)
 
#define I2C_TAR   (PKUNITY_I2C_BASE + 0x0004)
 
#define I2C_DATACMD   (PKUNITY_I2C_BASE + 0x0010)
 
#define I2C_ENABLE   (PKUNITY_I2C_BASE + 0x006C)
 
#define I2C_STATUS   (PKUNITY_I2C_BASE + 0x0070)
 
#define I2C_TXFLR   (PKUNITY_I2C_BASE + 0x0074)
 
#define I2C_RXFLR   (PKUNITY_I2C_BASE + 0x0078)
 
#define I2C_ENSTATUS   (PKUNITY_I2C_BASE + 0x009C)
 
#define I2C_CON_MASTER   FIELD(1, 1, 0)
 
#define I2C_CON_SPEED_STD   FIELD(1, 2, 1)
 
#define I2C_CON_SPEED_FAST   FIELD(2, 2, 1)
 
#define I2C_CON_RESTART   FIELD(1, 1, 5)
 
#define I2C_CON_SLAVEDISABLE   FIELD(1, 1, 6)
 
#define I2C_DATACMD_READ   FIELD(1, 1, 8)
 
#define I2C_DATACMD_WRITE   FIELD(0, 1, 8)
 
#define I2C_DATACMD_DAT_MASK   FMASK(8, 0)
 
#define I2C_DATACMD_DAT(v)   FIELD((v), 8, 0)
 
#define I2C_ENABLE_ENABLE   FIELD(1, 1, 0)
 
#define I2C_ENABLE_DISABLE   FIELD(0, 1, 0)
 
#define I2C_STATUS_RFF   FIELD(1, 1, 4)
 
#define I2C_STATUS_RFNE   FIELD(1, 1, 3)
 
#define I2C_STATUS_TFE   FIELD(1, 1, 2)
 
#define I2C_STATUS_TFNF   FIELD(1, 1, 1)
 
#define I2C_STATUS_ACTIVITY   FIELD(1, 1, 0)
 
#define I2C_ENSTATUS_ENABLE   FIELD(1, 1, 0)
 
#define I2C_TAR_THERMAL   0x4f
 
#define I2C_TAR_SPD   0x50
 
#define I2C_TAR_PWIC   0x55
 
#define I2C_TAR_EEPROM   0x57
 

Macro Definition Documentation

#define I2C_CON   (PKUNITY_I2C_BASE + 0x0000)

Definition at line 8 of file regs-i2c.h.

#define I2C_CON_MASTER   FIELD(1, 1, 0)

Definition at line 38 of file regs-i2c.h.

#define I2C_CON_RESTART   FIELD(1, 1, 5)

Definition at line 41 of file regs-i2c.h.

#define I2C_CON_SLAVEDISABLE   FIELD(1, 1, 6)

Definition at line 42 of file regs-i2c.h.

#define I2C_CON_SPEED_FAST   FIELD(2, 2, 1)

Definition at line 40 of file regs-i2c.h.

#define I2C_CON_SPEED_STD   FIELD(1, 2, 1)

Definition at line 39 of file regs-i2c.h.

#define I2C_DATACMD   (PKUNITY_I2C_BASE + 0x0010)

Definition at line 16 of file regs-i2c.h.

#define I2C_DATACMD_DAT (   v)    FIELD((v), 8, 0)

Definition at line 47 of file regs-i2c.h.

#define I2C_DATACMD_DAT_MASK   FMASK(8, 0)

Definition at line 46 of file regs-i2c.h.

#define I2C_DATACMD_READ   FIELD(1, 1, 8)

Definition at line 44 of file regs-i2c.h.

#define I2C_DATACMD_WRITE   FIELD(0, 1, 8)

Definition at line 45 of file regs-i2c.h.

#define I2C_ENABLE   (PKUNITY_I2C_BASE + 0x006C)

Definition at line 20 of file regs-i2c.h.

#define I2C_ENABLE_DISABLE   FIELD(0, 1, 0)

Definition at line 50 of file regs-i2c.h.

#define I2C_ENABLE_ENABLE   FIELD(1, 1, 0)

Definition at line 49 of file regs-i2c.h.

#define I2C_ENSTATUS   (PKUNITY_I2C_BASE + 0x009C)

Definition at line 36 of file regs-i2c.h.

#define I2C_ENSTATUS_ENABLE   FIELD(1, 1, 0)

Definition at line 58 of file regs-i2c.h.

#define I2C_RXFLR   (PKUNITY_I2C_BASE + 0x0078)

Definition at line 32 of file regs-i2c.h.

#define I2C_STATUS   (PKUNITY_I2C_BASE + 0x0070)

Definition at line 24 of file regs-i2c.h.

#define I2C_STATUS_ACTIVITY   FIELD(1, 1, 0)

Definition at line 56 of file regs-i2c.h.

#define I2C_STATUS_RFF   FIELD(1, 1, 4)

Definition at line 52 of file regs-i2c.h.

#define I2C_STATUS_RFNE   FIELD(1, 1, 3)

Definition at line 53 of file regs-i2c.h.

#define I2C_STATUS_TFE   FIELD(1, 1, 2)

Definition at line 54 of file regs-i2c.h.

#define I2C_STATUS_TFNF   FIELD(1, 1, 1)

Definition at line 55 of file regs-i2c.h.

#define I2C_TAR   (PKUNITY_I2C_BASE + 0x0004)

Definition at line 12 of file regs-i2c.h.

#define I2C_TAR_EEPROM   0x57

Definition at line 63 of file regs-i2c.h.

#define I2C_TAR_PWIC   0x55

Definition at line 62 of file regs-i2c.h.

#define I2C_TAR_SPD   0x50

Definition at line 61 of file regs-i2c.h.

#define I2C_TAR_THERMAL   0x4f

Definition at line 60 of file regs-i2c.h.

#define I2C_TXFLR   (PKUNITY_I2C_BASE + 0x0074)

Definition at line 28 of file regs-i2c.h.