x86: cpa self-test, WARN_ON()
[wrt350n-kernel.git] / include / asm-arm / arch-omap / board-sx1.h
blob2bb8dd6e2d14db850ec61009d443e403d9ee1689
1 /*
2 * Siemens SX1 board definitions
4 * Copyright: Vovan888 at gmail com
6 * This package is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
10 * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
11 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
12 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
15 #ifndef __ASM_ARCH_SX1_I2C_CHIPS_H
16 #define __ASM_ARCH_SX1_I2C_CHIPS_H
18 #define SOFIA_MAX_LIGHT_VAL 0x2B
20 #define SOFIA_I2C_ADDR 0x32
21 /* Sofia reg 3 bits masks */
22 #define SOFIA_POWER1_REG 0x03
24 #define SOFIA_USB_POWER 0x01
25 #define SOFIA_MMC_POWER 0x04
26 #define SOFIA_BLUETOOTH_POWER 0x08
27 #define SOFIA_MMILIGHT_POWER 0x20
29 #define SOFIA_POWER2_REG 0x04
30 #define SOFIA_BACKLIGHT_REG 0x06
31 #define SOFIA_KEYLIGHT_REG 0x07
32 #define SOFIA_DIMMING_REG 0x09
35 /* Function Prototypes for SX1 devices control on I2C bus */
37 int sx1_setbacklight(u8 backlight);
38 int sx1_getbacklight(u8 *backlight);
39 int sx1_setkeylight(u8 keylight);
40 int sx1_getkeylight(u8 *keylight);
42 int sx1_setmmipower(u8 onoff);
43 int sx1_setusbpower(u8 onoff);
44 int sx1_setmmcpower(u8 onoff);
46 #endif /* __ASM_ARCH_SX1_I2C_CHIPS_H */