summaryrefslogtreecommitdiffstats
path: root/drivers/video/mb862xx/mb862xxfb.h
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2011-05-24 15:19:48 +0200
committerAnatolij Gustschin <agust@denx.de>2011-05-24 16:28:52 +0200
commitf8a6b1f44833a4eb4c323b8b71fc592646212090 (patch)
tree99b10399dbdc7f817c51bedd55efed943aeb555b /drivers/video/mb862xx/mb862xxfb.h
parent12ed0c4baa4144ab3560ae793b5120316d74c0fe (diff)
downloadblackbird-op-linux-f8a6b1f44833a4eb4c323b8b71fc592646212090.tar.gz
blackbird-op-linux-f8a6b1f44833a4eb4c323b8b71fc592646212090.zip
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/mb862xxfb.h')
-rw-r--r--drivers/video/mb862xx/mb862xxfb.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/video/mb862xx/mb862xxfb.h b/drivers/video/mb862xx/mb862xxfb.h
index d7e7cb76bbf2..d5dd7d9ec0cd 100644
--- a/drivers/video/mb862xx/mb862xxfb.h
+++ b/drivers/video/mb862xx/mb862xxfb.h
@@ -57,11 +57,20 @@ struct mb862xxfb_par {
unsigned int refclk; /* disp. reference clock */
struct mb862xx_gc_mode *gc_mode; /* GDC mode init data */
int pre_init; /* don't init display if 1 */
+ struct i2c_adapter *adap; /* GDC I2C bus adapter */
+ int i2c_rs;
u32 pseudo_palette[16];
};
extern void mb862xxfb_init_accel(struct fb_info *info, int xres);
+#ifdef CONFIG_FB_MB862XX_I2C
+extern int mb862xx_i2c_init(struct mb862xxfb_par *par);
+extern void mb862xx_i2c_exit(struct mb862xxfb_par *par);
+#else
+static inline int mb862xx_i2c_init(struct mb862xxfb_par *par) { return 0; }
+static inline void mb862xx_i2c_exit(struct mb862xxfb_par *par) { }
+#endif
#if defined(CONFIG_FB_MB862XX_LIME) && defined(CONFIG_FB_MB862XX_PCI_GDC)
#error "Select Lime GDC or CoralP/Carmine support, but not both together"
OpenPOWER on IntegriCloud