尊敬的飞思卡尔FAE
我有一块MX6-SabreSD(Freescale i.MX6DL)的开发板(非原装板)。
OS为Android4.2.2。
通过lvds接了一块7寸屏。但是因为上电顺序的问题,屏幕偶尔出现横纹,
重启即恢复。
为此做了如下测试:
把lvds的电源接到USB口的电源上,也就是USB口开始供电时才
点亮屏幕。如此测试了几百次,未发现横纹出现。
于是打算通过gpio把上电时机控制在USB口上电之后。
在板文件的mx6_sabresd_board_init(void)函数的
imx6q_sabresd_init_usb();
之后添加了如下代码
gpio_request(SABRESD_LVDS_EN, "lvds-en");
gpio_direction_output(SABRESD_LVDS_EN, 1);
可是,实际测试发现GPIO的拉高比USB上电要早很多。
说明这里不合适。
我想问,如果想在USB上电之后点亮屏幕,GPIO的控制
加在什么地方合适?或者说,如果想干预上电顺序,应该
修改何处?
Solved! Go to Solution.
First, please check the datasheet of the i.MX6DL page 155.
http://cache.freescale.com/files/32bit/doc/data_sheet/IMX6SDLAEC.pdf
You can see there are some GPIO pins are Pull-up(100K) and some are Pull-down(100K) after reset. So, please double check which pin you used on your board. Make sure the LVDS_EN pin is not pull-up after reset.
Then, there is also another GPIO pin to control the USB power. You can add your LVDS_EN pin after it.
First, please check the datasheet of the i.MX6DL page 155.
http://cache.freescale.com/files/32bit/doc/data_sheet/IMX6SDLAEC.pdf
You can see there are some GPIO pins are Pull-up(100K) and some are Pull-down(100K) after reset. So, please double check which pin you used on your board. Make sure the LVDS_EN pin is not pull-up after reset.
Then, there is also another GPIO pin to control the USB power. You can add your LVDS_EN pin after it.