u-boot pad setting customization

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

u-boot pad setting customization

763 Views
nikhil_sahu2
Contributor III

Hi,

I am using some pad setting at the time of u-boot. just like below

=> mw 020E0158 3
=> saveenv
Saving Environment to MMC... Writing to MMC(2)... OK
=>

this thing i have to write everytime the board boot, i want to thease changes in my u-boot source code. 

Guys anyone can give me some idea where and how i can add this command u-boot source code in a proper way so i do not need to add this manually everytime. and this runs automatically.

 

Thanks in advance,

Nikhil 

 

Tags (3)
0 Kudos
Reply
1 Reply

735 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

I could comment on 2 ways you may achieve this, there may be better options, you may try them and check if they serve for your purpose.

 - Modify device tree

You may add the pad setting for it to have the configuration you desire when uboot starts, I don't know which device you're working with, as reference imx8mm evk dts is here:
https://source.codeaurora.org/external/imx/uboot-imx/tree/arch/arm/dts/fsl-imx8mm-evk.dts?h=imx_v201...

- Modify config file

You may modify the .h file corresponding to the board you're working with and add your command there to run while booting, as a reference imx8mm evk config file is here:
https://source.codeaurora.org/external/imx/uboot-imx/tree/include/configs/imx8mm_evk.h?h=imx_v2019.0...

Hope this helps,
Best regards,
Aldo.

0 Kudos
Reply