AnsweredAssumed Answered

ecspi1 on mx51, but no clk got form the pin CSPI1_SCLK

Question asked by zhaozhao on Sep 3, 2013
Latest reply on Oct 15, 2013 by zhaozhao

Hi all,

   I am going to use the ecspi1 on mx51, but I can not get the clk form CSPI1_SCLK, the oscillometer ouput nothing.


The PIN MX51_PIN_CSPI1_SCLK is set as  the default.

Using the driver :drivers/spi/mxc_spi.c

the code below has been executed, and there is no error.

master_drv_data->clk = clk_get(&pdev->dev, "cspi_clk");
    master_drv_data->spi_ipg_clk = clk_get_rate(master_drv_data->clk);

In order to observe the clk of escpi1, I add this at the end of mxc_spi_probe().:



To make sure that the clk set is ture. I dump the registers of CCM:

CCGR4: 0xc0350000


anyone can help me on this?