Commit 183b1214 authored by Dennis Munsie's avatar Dennis Munsie Committed by Dave Airlie

intelfb: add preliminary i2c support

[03/07] intelfb: add intelfb_i2c_chan struct.
Signed-off-by: default avatarDennis Munsie <dmunsie@cecropia.com>
parent 82c10f07
...@@ -6,6 +6,10 @@ ...@@ -6,6 +6,10 @@
#include <linux/agp_backend.h> #include <linux/agp_backend.h>
#include <linux/fb.h> #include <linux/fb.h>
#ifdef CONFIG_FB_INTEL_I2C
#include <linux/i2c.h>
#include <linux/i2c-algo-bit.h>
#endif
/*** Version/name ***/ /*** Version/name ***/
#define INTELFB_VERSION "0.9.4" #define INTELFB_VERSION "0.9.4"
...@@ -208,6 +212,15 @@ struct intelfb_heap_data { ...@@ -208,6 +212,15 @@ struct intelfb_heap_data {
u32 size; // in bytes u32 size; // in bytes
}; };
#ifdef CONFIG_FB_INTEL_I2C
struct intelfb_i2c_chan {
struct intelfb_info *dinfo;
u32 reg;
struct i2c_adapter adapter;
struct i2c_algo_bit_data algo;
};
#endif
struct intelfb_vsync { struct intelfb_vsync {
wait_queue_head_t wait; wait_queue_head_t wait;
unsigned int count; unsigned int count;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment