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

ソリューションへジャンプ
1,606件の閲覧回数
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 解決策
1,184件の閲覧回数
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 返答(返信)
1,185件の閲覧回数
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 件の賞賛
1,184件の閲覧回数
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 件の賞賛
1,184件の閲覧回数
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 件の賞賛