diff options
author | Anatolij Gustschin <agust@denx.de> | 2011-05-24 17:19:48 +0400 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2011-05-24 18:28:52 +0400 |
commit | f8a6b1f44833a4eb4c323b8b71fc592646212090 (patch) | |
tree | 99b10399dbdc7f817c51bedd55efed943aeb555b /drivers/video/mb862xx/mb862xx_reg.h | |
parent | 12ed0c4baa4144ab3560ae793b5120316d74c0fe (diff) | |
download | linux-f8a6b1f44833a4eb4c323b8b71fc592646212090.tar.xz |
video: mb862xx: add support for controller's I2C bus adapter
Add adapter driver for I2C adapter in Coral-P(A)/Lime GDCs.
So we can easily access devices on controller's I2C bus using
i2c-dev interface.
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'drivers/video/mb862xx/mb862xx_reg.h')
-rw-r--r-- | drivers/video/mb862xx/mb862xx_reg.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/drivers/video/mb862xx/mb862xx_reg.h b/drivers/video/mb862xx/mb862xx_reg.h index 737fc011caff..5784b018f15d 100644 --- a/drivers/video/mb862xx/mb862xx_reg.h +++ b/drivers/video/mb862xx/mb862xx_reg.h @@ -80,6 +80,27 @@ #define GC_DISP_REFCLK_400 400 +/* I2C */ +#define GC_I2C_BSR 0x00000000 /* BSR */ +#define GC_I2C_BCR 0x00000004 /* BCR */ +#define GC_I2C_CCR 0x00000008 /* CCR */ +#define GC_I2C_ADR 0x0000000C /* ADR */ +#define GC_I2C_DAR 0x00000010 /* DAR */ + +#define I2C_DISABLE 0x00000000 +#define I2C_STOP 0x00000000 +#define I2C_START 0x00000010 +#define I2C_REPEATED_START 0x00000030 +#define I2C_CLOCK_AND_ENABLE 0x0000003f +#define I2C_READY 0x01 +#define I2C_INT 0x01 +#define I2C_INTE 0x02 +#define I2C_ACK 0x08 +#define I2C_BER 0x80 +#define I2C_BEIE 0x40 +#define I2C_TRX 0x80 +#define I2C_LRB 0x10 + /* Carmine specific */ #define MB86297_DRAW_BASE 0x00020000 #define MB86297_DISP0_BASE 0x00100000 |