How to set imx6dl board gpio default low level in uboot once power on

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

How to set imx6dl board gpio default low level in uboot once power on

跳至解决方案
2,981 次查看
mrleo
Contributor IV

HI,all

I  found that imx6 some gpio default is output high level once power on.

example:GPIO_2(GPIO_1_2)),NANDF_D5(GPIO_2_5)

My custom imx6dl board is used these two gpio  to control  lcd power and lcd reset.

These two gpio are default high level.

If I want these two gpio are default low level,what should I do?

Who can give me a help? Or give me an advices?

Thanks,

Leo

0 项奖励
回复
1 解答
2,559 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Leo

if one uses plugin mode, this can be added to dcd header.

Otherwise, for uboot 2009 this may be lowlevel_init.S,

for later uboot versions seems in miscellaneous functions

like board_xx_init_yy in   ..freescale/mx6sabresd/mx6sabresd.c

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
3 回复数
2,560 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Leo

if one uses plugin mode, this can be added to dcd header.

Otherwise, for uboot 2009 this may be lowlevel_init.S,

for later uboot versions seems in miscellaneous functions

like board_xx_init_yy in   ..freescale/mx6sabresd/mx6sabresd.c

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
2,559 次查看
mrleo
Contributor IV

Hi igorpadyov,

I have added to uboot 2009 in lowlevel_init.S( lowlevel_init below,befor inv_dcache).

But it will have a very shorter time high level then (in lowlevel_init.S set to low level) low level once power on.

Thanks,

Leo

Re: How to set imx6dl board gpio default low level in uboot once power on
0 项奖励
回复
2,559 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Leo

default pad state after reset is not possible to change, so

there always will be short time until software change pin state.

This is inevitable.

~igor

0 项奖励
回复