handle ecspi into u-boot

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

handle ecspi into u-boot

1,611件の閲覧回数
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

ラベル(1)
0 件の賞賛
4 返答(返信)

1,502件の閲覧回数
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 件の賞賛

1,502件の閲覧回数
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 件の賞賛

904件の閲覧回数
丶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 件の賞賛

1,502件の閲覧回数
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 件の賞賛