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.

mcspi in dm3730

in past days ,i haved a problem about mcspi with touchscreen,i find the mcspi->ick is different.

  in normal status: the mcspi->ick = 166000000 ,the kernel and 2010-06-version  uboot,

error status:the mcspo->ick = 83000000,the same kernel but 2010-12-version uboot.

so i want to try to change ,where i can do it ,in uboot or in linux  kernel driver or  linux clock_init ,please give some advices ,thank you .why uboot can effect linux kernel clock???thank you !!!!

the log message:

  8.309722] omap2_mcspi omap2_mcspi.3: registered master spi3
[    8.309783] spi spi3.0: setup: speed 1500000, sample leading edge, clk normal
[    8.309814] spi spi3.0: setup mode 0, 8 bits/w, 1500000 Hz max --> 0
[    8.309875] omap2_mcspi omap2_mcspi.3: registered child spi3.0
[    8.309936] mcspi->ick =83000000
[    8.309936]  clk_set_rate
[    8.309967] clock: set_rate for clock mcspi_ick to rate 166000000
[    8.309997] set mcspi ick=83000000
[    8.310028] mcspi->fck =48000000

  • Hi,

    I recommend you to configure the mcspi->ick in the linux kernel otherwise the configuration could be overwritten. A appropriate place is .../kernel/drivers/spi/omap2_mcspi.c. I only guess that if try to set some unsuitable value the old value should be used.

    BR

    Tsvetolin Shulev