aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/mb862xx/mb862xxfb.h
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2011-05-24 09:19:48 -0400
committerAnatolij Gustschin <agust@denx.de>2011-05-24 10:28:52 -0400
commitf8a6b1f44833a4eb4c323b8b71fc592646212090 (patch)
tree99b10399dbdc7f817c51bedd55efed943aeb555b /drivers/video/mb862xx/mb862xxfb.h
parent12ed0c4baa4144ab3560ae793b5120316d74c0fe (diff)
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 {
57 unsigned int refclk; /* disp. reference clock */ 57 unsigned int refclk; /* disp. reference clock */
58 struct mb862xx_gc_mode *gc_mode; /* GDC mode init data */ 58 struct mb862xx_gc_mode *gc_mode; /* GDC mode init data */
59 int pre_init; /* don't init display if 1 */ 59 int pre_init; /* don't init display if 1 */
60 struct i2c_adapter *adap; /* GDC I2C bus adapter */
61 int i2c_rs;
60 62
61 u32 pseudo_palette[16]; 63 u32 pseudo_palette[16];
62}; 64};
63 65
64extern void mb862xxfb_init_accel(struct fb_info *info, int xres); 66extern void mb862xxfb_init_accel(struct fb_info *info, int xres);
67#ifdef CONFIG_FB_MB862XX_I2C
68extern int mb862xx_i2c_init(struct mb862xxfb_par *par);
69extern void mb862xx_i2c_exit(struct mb862xxfb_par *par);
70#else
71static inline int mb862xx_i2c_init(struct mb862xxfb_par *par) { return 0; }
72static inline void mb862xx_i2c_exit(struct mb862xxfb_par *par) { }
73#endif
65 74
66#if defined(CONFIG_FB_MB862XX_LIME) && defined(CONFIG_FB_MB862XX_PCI_GDC) 75#if defined(CONFIG_FB_MB862XX_LIME) && defined(CONFIG_FB_MB862XX_PCI_GDC)
67#error "Select Lime GDC or CoralP/Carmine support, but not both together" 76#error "Select Lime GDC or CoralP/Carmine support, but not both together"