mtk平台sdcard优化屏新功能fae操作流程
内部SDcard优化屏简介:
1)利用mtk屏的休眠唤醒会重新init屏相应寄存器原理,fae只需把lcm_initialization_setting初始化数据拷贝到一个文件名为lcd.txt中
格式demo如下
{0xB9,0x03,{0xF1,0x12,0x83}},
{0xBA,27,{0x32,0x81,0x05,0xF9,0x0E,0x0E,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x44,0x25,0x00,0x91,0x0A,0x00,0x00,0x02,0x4F,0x11,0x00,0x00,0x37}},
{0xB8,1,{0x25}},//add
{0xB3,0x0a,{0x0C,0x10,0x0A,0x50,0x03,0xFF,0x00,0x00,0x00,0x00}},
{0xC0,9,{0x70,0x73,0x50,0x50,0x00,0x00,0x08,0x70,0x00}},
{0xBC,0x01,{0x46}},
{0xCC,0x01,{0x0B}},
{0xB4,0x01,{0x80}},
{0xB2,0x03,{0xC8,0x02,0x30}},
{0xE3,0x0e,{0x07,0x07,0x0B,0x0B,0x03,0x0B,0x00,0x00,0x00,0x00,0xFF,0x80,0xC0,0x10}},
{0xC1,0x0c,{0x53,0x00,0x1E,0x1E,0x77,0xC1,0xFF,0xFF,0xCC,0xCC,0x77,0x77}},
{0xB5,0x02,{0x07,0x07}},
{0xB6,0x02,{0x70,0x70}},
{0xBF,3,{0x02,0x11,0x00}},//add
{0xE9,0x3f,{0XC2,0x10,0x05,0x04,0xFE,0x02,0xA1,0x12,0x31,0x45,0x3F,0x83,0x12,0xB1,0x3B,0x2A,0x08,0x05,0x00,0x00,0x00,0x00,0x08,0x05,0x00,0x00,0x00,0x00,0xFF,0x02,0x46,0x02,0x48,0x68,0x88,0x88,0x88,0x80,0x88,0xFF,0x13,0x57,0x13,0x58,0x78,0x88,0x88,0x88,0x81,0x88,0x00,0x00,0x00,0x00,0x00,0x12,0xB1,0x3B,0x00,0x00,0x00,0x00,0x00}},
{0xEA,0x3d,{0x00,0x1A,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x31,0x75,0x31,0x18,0x78,0x88,0x88,0x88,0x85,0x88,0xFF,0x20,0x64,0x20,0x08,0x68,0x88,0x88,0x88,0x84,0x88,0x20,0x10,0x00,0x00,0x54,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x00,0x0C,0x00,0x00,0x00,0x00,0x30,0x02,0xA1,0x00,0x00,0x00,0x00}},
{0xE0,0x22,{0x00,0x05,0x08,0x24,0x35,0x3F,0x37,0x2F,0x07,0x0C,0x0C,0x11,0x13,0x11,0x13,0x10,0x17,0x00,0x05,0x08,0x24,0x35,0x3F,0x37,0x2F,0x07,0x0C,0x0C,0x11,0x13,0x11,0x13,0x10,0x17}},
{0x11,1,{0x00}},
{REGFLAG_DELAY, 250, {0}},
{0x29, 1, {0x00}},
{REGFLAG_DELAY, 50, {0}},
{REGFLAG_END_OF_TABLE, 0x00, {}}
==================================================(注意标点符号不要有中文,否则乱码导入会失败)
2)把文件lcd.txt,放到手机内部存储空间根目录(如下图)下即可
方法1\ adb push lcd.txt /sdcard/
方法2\ 手机连接usb到电脑后手机选择usb模式为文件传输,然后电脑会显示类似u盘一样的手机存储空间,把lcd.txt放置到根目录(如上图)下即可
==============================================
3)输入暗吗*#39*#手机会提示success,说明sdcard下的lcd.txt文件已成功拷贝到kernel可以读取的位置了
===================================================================
4)第1 2 3步执行完毕后休眠唤醒屏幕即是lcd.txt里的效果
===========================================
如果效果不理想,重新修改lcd.txt的参数,重复以上四步即可.最终把终端确认ok的lcd.txt发我方案公司.
注:用到的一些接口定义参考zcommon\doc\st7703_hd720_zh066_ypd.c
如果fae要求改动mipi速率和porch值则需要我们方案重新编译boot lk两个文件了
author:bruce_wang