diff options
Diffstat (limited to 'firmware/target/arm/s3c2440/gigabeat-fx/i2c-meg-fx.h')
-rw-r--r-- | firmware/target/arm/s3c2440/gigabeat-fx/i2c-meg-fx.h | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/firmware/target/arm/s3c2440/gigabeat-fx/i2c-meg-fx.h b/firmware/target/arm/s3c2440/gigabeat-fx/i2c-meg-fx.h index cf69230487..829b7eb91c 100644 --- a/firmware/target/arm/s3c2440/gigabeat-fx/i2c-meg-fx.h +++ b/firmware/target/arm/s3c2440/gigabeat-fx/i2c-meg-fx.h | |||
@@ -7,7 +7,7 @@ | |||
7 | * \/ \/ \/ \/ \/ | 7 | * \/ \/ \/ \/ \/ |
8 | * $Id$ | 8 | * $Id$ |
9 | * | 9 | * |
10 | * Copyright (C) 2006 by Linus Nielsen Feltzing | 10 | * Copyright (C) 2007 by Michael Sevakis |
11 | * | 11 | * |
12 | * All files in this archive are subject to the GNU General Public License. | 12 | * All files in this archive are subject to the GNU General Public License. |
13 | * See the file COPYING in the source tree root for full license agreement. | 13 | * See the file COPYING in the source tree root for full license agreement. |
@@ -19,4 +19,26 @@ | |||
19 | 19 | ||
20 | /* chip-specific i2c functions */ | 20 | /* chip-specific i2c functions */ |
21 | 21 | ||
22 | void i2c_send(int bus_address, int reg_address, const unsigned char buf); | 22 | /* IICCON */ |
23 | #define I2C_ACKGEN (1 << 7) | ||
24 | #define I2C_TXCLK_512 (1 << 6) | ||
25 | #define I2C_TXRX_INTENB (1 << 5) | ||
26 | #define I2C_TXRX_INTPND (1 << 4) | ||
27 | |||
28 | /* IICSTAT */ | ||
29 | #define I2C_MODE_MASTER (2 << 6) | ||
30 | #define I2C_MODE_TX (1 << 6) | ||
31 | #define I2C_BUSY (1 << 5) | ||
32 | #define I2C_START (1 << 5) | ||
33 | #define I2C_RXTX_ENB (1 << 4) | ||
34 | #define I2C_BUS_ARB_FAILED (1 << 3) | ||
35 | #define I2C_S_ADDR_STAT (1 << 2) | ||
36 | #define I2C_S_ADDR_MATCH (1 << 1) | ||
37 | #define I2C_ACK_L (1 << 0) | ||
38 | |||
39 | /* IICLC */ | ||
40 | #define I2C_FLT_ENB (1 << 2) | ||
41 | |||
42 | void i2c_init(void); | ||
43 | void i2c_write(int addr, const unsigned char *data, int count); | ||
44 | |||