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

Go to the source code of this file.

Macros

#define SOFIA_MAX_LIGHT_VAL   0x2B
 
#define SOFIA_I2C_ADDR   0x32
 
#define SOFIA_POWER1_REG   0x03
 
#define SOFIA_USB_POWER   0x01
 
#define SOFIA_MMC_POWER   0x04
 
#define SOFIA_BLUETOOTH_POWER   0x08
 
#define SOFIA_MMILIGHT_POWER   0x20
 
#define SOFIA_POWER2_REG   0x04
 
#define SOFIA_BACKLIGHT_REG   0x06
 
#define SOFIA_KEYLIGHT_REG   0x07
 
#define SOFIA_DIMMING_REG   0x09
 

Functions

int sx1_setbacklight (u8 backlight)
 
int sx1_getbacklight (u8 *backlight)
 
int sx1_setkeylight (u8 keylight)
 
int sx1_getkeylight (u8 *keylight)
 
int sx1_setmmipower (u8 onoff)
 
int sx1_setusbpower (u8 onoff)
 
int sx1_i2c_read_byte (u8 devaddr, u8 regoffset, u8 *value)
 
int sx1_i2c_write_byte (u8 devaddr, u8 regoffset, u8 value)
 
void sx1_mmc_init (void)
 
void sx1_mmc_slot_cover_handler (void *arg, int state)
 

Macro Definition Documentation

#define SOFIA_BACKLIGHT_REG   0x06

Definition at line 30 of file board-sx1.h.

#define SOFIA_BLUETOOTH_POWER   0x08

Definition at line 26 of file board-sx1.h.

#define SOFIA_DIMMING_REG   0x09

Definition at line 32 of file board-sx1.h.

#define SOFIA_I2C_ADDR   0x32

Definition at line 20 of file board-sx1.h.

#define SOFIA_KEYLIGHT_REG   0x07

Definition at line 31 of file board-sx1.h.

#define SOFIA_MAX_LIGHT_VAL   0x2B

Definition at line 18 of file board-sx1.h.

#define SOFIA_MMC_POWER   0x04

Definition at line 25 of file board-sx1.h.

#define SOFIA_MMILIGHT_POWER   0x20

Definition at line 27 of file board-sx1.h.

#define SOFIA_POWER1_REG   0x03

Definition at line 22 of file board-sx1.h.

#define SOFIA_POWER2_REG   0x04

Definition at line 29 of file board-sx1.h.

#define SOFIA_USB_POWER   0x01

Definition at line 24 of file board-sx1.h.

Function Documentation

int sx1_getbacklight ( u8 backlight)

Definition at line 125 of file board-sx1.c.

int sx1_getkeylight ( u8 keylight)

Definition at line 112 of file board-sx1.c.

int sx1_i2c_read_byte ( u8  devaddr,
u8  regoffset,
u8 value 
)

Definition at line 74 of file board-sx1.c.

int sx1_i2c_write_byte ( u8  devaddr,
u8  regoffset,
u8  value 
)

Definition at line 50 of file board-sx1.c.

void sx1_mmc_init ( void  )

Definition at line 62 of file board-sx1-mmc.c.

void sx1_mmc_slot_cover_handler ( void arg,
int  state 
)
int sx1_setbacklight ( u8  backlight)

Definition at line 117 of file board-sx1.c.

int sx1_setkeylight ( u8  keylight)

Definition at line 105 of file board-sx1.c.

int sx1_setmmipower ( u8  onoff)

Definition at line 131 of file board-sx1.c.

int sx1_setusbpower ( u8  onoff)

Definition at line 146 of file board-sx1.c.