Pergunta

In the code I see the offset addresses for various registers defined. But, where is the base address registered ?

In the function, the base address is accessed through mcspi->base. How does mcspi->base contain the specific base address of McSPI ?

Foi útil?

Solução

This should be defined in the dts file in arch/arm/boot/dts/omap4.dtsi file. I'm not sure if DT is enabled for your kernel. If enabled, it reads in the probe function.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top