diff options
author | Anatolij Gustschin <agust@denx.de> | 2011-05-24 09:19:48 -0400 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2011-05-24 10:28:52 -0400 |
commit | f8a6b1f44833a4eb4c323b8b71fc592646212090 (patch) | |
tree | 99b10399dbdc7f817c51bedd55efed943aeb555b /drivers/video/mb862xx/mb862xxfb.h | |
parent | 12ed0c4baa4144ab3560ae793b5120316d74c0fe (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.h | 9 |
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 | ||
64 | extern void mb862xxfb_init_accel(struct fb_info *info, int xres); | 66 | extern void mb862xxfb_init_accel(struct fb_info *info, int xres); |
67 | #ifdef CONFIG_FB_MB862XX_I2C | ||
68 | extern int mb862xx_i2c_init(struct mb862xxfb_par *par); | ||
69 | extern void mb862xx_i2c_exit(struct mb862xxfb_par *par); | ||
70 | #else | ||
71 | static inline int mb862xx_i2c_init(struct mb862xxfb_par *par) { return 0; } | ||
72 | static 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" |