handle ecspi into u-boot

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

handle ecspi into u-boot

1,968 Views
francesco_giust
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
Reply
4 Replies

1,859 Views
igorpadykov
NXP Employee
NXP Employee

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
Reply

1,859 Views
francesco_giust
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
Reply

1,261 Views
丶1u0
Contributor II

Hi,

I'm having the same error as you

I'd like to ask you a question:

How do you deal with this fatal error?

0 Kudos
Reply

1,859 Views
igorpadykov
NXP Employee
NXP Employee

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

Best regards
igor

0 Kudos
Reply