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"); clk_enable(master_drv_data->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:
anyone can help me on this?