handle ecspi into u-boot

cancel
Showing results for 
Search instead for 
Did you mean: 

handle ecspi into u-boot

196 Views
Contributor II

Hi,

I am using i.MX8MQ evk board and I need to handle ecspi from u-boot.

I add ecspi2 in device tree of u-boot and everything works fine, I guess, but at this point I don't understand what to do.

do i.MX8MQ use drive model for ecspi in u-boot ?

is there some code example in u-boot that I can check or reuse ?

Best Regars,

Francesco Giusti

Labels (1)
0 Kudos
3 Replies

87 Views
NXP TechSupport
NXP TechSupport

Hi Francesco

for uboot ecspi driver one can look on

fsl_espi.c\spi\drivers - uboot-imx - i.MX U-Boot 

imx8mm_evk.c\imx8mm_evk\freescale\board - uboot-imx - i.MX U-Boot 

Porting Guide included in Linux 4.19.35_1.1.0 Documentation

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

0 Kudos

87 Views
Contributor II

Hi,

I try to compile fsl_espi.c for iMX8MQ u-boot standalone environment.

I enable CONFIG_FSL_ESPI=y into .config files, but I get an error when I build:

"drivers/spi/fsl_espi.c:13:10: fatal error: asm/immap_85xx.h: No such file or directory"

Have I done something wrong ?

BR,

Francesco

0 Kudos

87 Views
NXP TechSupport
NXP TechSupport

NXP has special service for help with porting/adding new drivers: Commercial Support and Engineering Services | NXP 

Best regards
igor

0 Kudos