关于上电顺序的控制

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

关于上电顺序的控制

跳至解决方案
1,381 次查看
jiangshao
Contributor V

尊敬的飞思卡尔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的控制

加在什么地方合适?或者说,如果想干预上电顺序,应该

修改何处?

标签 (3)
0 项奖励
回复
1 解答
1,018 次查看
jimmychan
NXP TechSupport
NXP TechSupport

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.

在原帖中查看解决方案

1 回复
1,019 次查看
jimmychan
NXP TechSupport
NXP TechSupport

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.