I am implementing a spi slave driver for Linux kernel delivered as part of the TI-SDK-AM335x EMV. I have rebuilt the kernel without SPI support so that I can load my driver. I have written the CM_PER_SPI1_CLKCTRL register but I am not sure if there are any other registers I need to update. I can write the MCSPI_CH0CONF and MCSPI_MODULCTRL registers but anytime I touch the MCSPI_SYSSTATUS or MCSPI_SYSCONFIG register I get a external abort non-linefetch fault. I have read the spi-omap2-mcspi.c source as a reference. Is there any other power or clock modules I have to enable to be able to configure the McSPI module?
Thank You,
Paul
As a follow on, reading the CM_PER_L4LS_CLKSTCTRL register I can see that the CLKACTIVITY_SPI_GCLK is cleared. I have tried writing the CM_PER_L4LS_CLKCTRL register to enable the L4LS domain but that does not seem to have an effect. Can someone provide any information on how to enable the CLKACTIVITY_SPI_GCLK bit.
Thank You,
Paul