Carlos Ojea ha scritto:
Finally I archieved to configure SPI registers.
It was neccesary to 'power up' SPI module with this sequence:
1.- Wait until PTSTAT is 0
2.- Set enable state in MDCTL22 (SPI)
3.- Set 'GO' bit in PTCMD
4.- Wait until PTSTAT is 0
I think that the "cleanest" way to do that is to use the clock functions:
struct clk *clkp = clk_get(NULL, "SPICLK");
clk_enable(mmc_clkp);
Cheers, Lorenzo
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source