문제

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 ?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top