我正在为微型oled编写显示驱动程序.board是dart4460(omap4460),提供dss(显示子系统).所以我正在使用dss编写驱动程序.
但我不知道我写的是对还是不对
oled display使用dpi接口和i2c命令
我提到了使用dpi和i2c的pico dlp投影机驱动源.
这是数据表
dart4460:http://www.variscite.com/images/DART-4460-DS_107.pdf
微显示器:https://www.dropbox.com/s/ixpws4qzo3ttj6e/SVGA050.pdf ? dl = 0
码:
面板svga.c
#define SLAVE_ADDR_READ 0x1F
#define SLAVW_ADDR_WRITE 0x1E
struct svga050_i2c_data {
struct mutex xfer_lock;
};
struct svga050_data {
struct i2c_client *client;
struct mutex lock;
};
static struct i2c_board_info svga050_i2c_board_info = {
I2C_BOARD_INFO("svga050_i2c_drive",SLAVE_ADDR_WRITE);
}
static struct omap_video_timings svga050_timings = {
.x_res = 800,
.y_res = 600,
.pixel_clock = 40000,
.hsw = 128,
.hfp = 40,
.hbp = 88,
.vsw = 4,
.vfp = 1, …Run Code Online (Sandbox Code Playgroud)