[Patch] Correct error in setting spi clock for ecspi3 in imx8mp u-boot

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

[Patch] Correct error in setting spi clock for ecspi3 in imx8mp u-boot

1,063 Views
PhilRittenhouse
Contributor II

I ran into the following issue with the u-boot code from the IMX8MPLUS EVK, and thought others might benefit from what I found

When adding u-boot SPI support for the FRAM in our design, I opted to just enable the ECSPI3 bus so that we could test the FRAM using the SSPI command. Unfortunately, I found that the SPI bus clock was not getting set correctly.

After doing a lot of digging, I discovered that the spi_cfg_mxc() function was always calling mxc_get_clock() for ecspi1 instead of ecspi3. This meant it was using the wrong clock when configuring ecspi3. Attached are the changes I made to the U-Boot code to fix the bug

Tags (1)
0 Kudos
Reply
2 Replies

1,052 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello @PhilRittenhouse 

Suggest you can change this title like:

[Patch] Correct the error setting about ecspi3 boot on i.MX8MP

1,046 Views
PhilRittenhouse
Contributor II
Done. Thanks
0 Kudos
Reply