资源简介
ICN6202为mipi转LVDS芯片,笔者已经在高通平台上成功批量使用,效果不错,值得向大家推荐
代码片段和文件信息
#ifndef BUILD_LK
#include
#endif
#include “lcm_drv.h“
#ifdef BUILD_LK
#include
#include
#include
#elif defined(BUILD_UBOOT)
#include
#else
#include
#include
#include
#endif
// ---------------------------------------------------------------------------
// Local Constants
// ---------------------------------------------------------------------------
#define frame_WIDTH (1280)
#define frame_HEIGHT (800)
#define REGFLAG_DELAY 0XFE
#define REGFLAG_END_OF_TABLE 0xFFF // END OF REGISTERS MARKER
#define LCM_DSI_CMD_MODE 0
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
// ---------------------------------------------------------------------------
// Local Variables
// ---------------------------------------------------------------------------
static LCM_UTIL_FUNCS lcm_util = {0};
#define SET_RESET_PIN(v) (lcm_util.set_reset_pin((v)))
#define UDELAY(n) (lcm_util.udelay(n))
#define MDELAY(n) (lcm_util.mdelay(n))
// ---------------------------------------------------------------------------
// Local Functions
// ---------------------------------------------------------------------------
static void lcm_set_util_funcs(const LCM_UTIL_FUNCS *util)
{
memcpy(&lcm_util util sizeof(LCM_UTIL_FUNCS));
}
static void lcm_get_params(LCM_PARAMS *params)
{
memset(params 0 sizeof(LCM_PARAMS));
params->type = LCM_TYPE_DSI;
params->width = frame_WIDTH;
params->height = frame_HEIGHT;
// enable tearing-free
params->dbi.te_mode = LCM_DBI_TE_MODE_VSYNC_ONLY;
params->dbi.te_edge_polarity = LCM_POLARITY_RISING;
#if (LCM_DSI_CMD_MODE)
params->dsi.mode = CMD_MODE;
#else
params->dsi.mode = SYNC_PULSE_VDO_MODE;
#endif
// DSI
/* Command mode setting */
params->dsi.LANE_NUM = LCM_FOUR_LANE;
//The following defined the fomat for data coming from LCD engine.
params->dsi.data_format.color_order = LCM_COLOR_ORDER_RGB;
params->dsi.data_format.trans_seq = LCM_DSI_TRANS_SEQ_MSB_FIRST;
params->dsi.data_format.padding = LCM_DSI_PADDING_ON_LSB;
params->dsi.data_format.format = LCM_DSI_FORMAT_RGB888;
// Highly depends on LCD driver capability.
// Not support in MT6573
params->dsi.packet_size=256;
// Video mode setting
params->dsi.intermediat_buffer_num = 2;
params->dsi.PS=LCM_PACKED_PS_24BIT_RGB888;
params->dsi.vertical_sync_active = 5;
params->dsi.vertical_backporch = 10;
params->dsi.vertical_frontporch = 6;
params->dsi.vertical_active_line = frame_HEIGHT;
params->dsi.horizontal_sync_active = 40;
params->dsi.horizontal_backporch = 80;
params->dsi.horizonta
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-08-25 18:27 ICN6202\
文件 177664 2014-01-24 01:51 ICN6202\ICN6201 CONFIG.exe
文件 549085 2015-03-31 09:42 ICN6202\ICN6202_ref参考电路.pdf
文件 1239040 2015-08-25 18:16 ICN6202\ICN6202调试文档.doc
文件 1318101 2014-11-21 18:10 ICN6202\MIPI_LVDS_specification_V08.pdf
文件 8455 2015-05-28 10:55 ICN6202\REF_IIC.c
文件 26197 2015-05-18 17:45 ICN6202\彩条.jpg
目录 0 2015-03-27 14:28 ICN6202\测试报告\
文件 290691 2015-01-06 09:48 ICN6202\测试报告\ICN6201_ESD_Test_Report.pdf
文件 329743 2015-01-06 09:48 ICN6202\测试报告\ICN6201_HTOL_Test_Report.pdf
- 上一篇:kalman滤波实现视频目标跟踪
- 下一篇:ICN6211资料及寄存器配置生成器
评论
共有 条评论