This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: [TDA4] How to write memory IO in Linux Kernel driver?

Part Number: TDA4VM

Dear Experts

I want write a value (0x00000001) to  CTRLMMR_MCU_SPI1_CTRL register (0x40f04060)

I try to add this function in spi driver probe, but it cased kernel panic!

I think I may use wrong way to write this memory io value.

Could any one help me give a correct read/write syntax (way)?

Many thanks

Gibbs 

\linux-5.4.106+gitAUTOINC+023faefa70-g023faefa70\drivers\spi\spi-omap2-mcspi.c