lm98714_data.sensor_clk = devm_clk_get(dev, "csi_mclk");
retval = of_property_read_u32(dev->of_node, "mclk",&lm98714_data.mclk);
retval = clk_set_rate(lm98714_data.sensor_clk, lm98714_data.mclk);
clk_prepare_enable(lm98714_data.sensor_clk);
clk_disable(lm98714_data.sensor_clk);
See the code show above, I find that after I disable the csi_mclk clk, the imx6ul port(CSI_MCLK) still create wave, I don't know how to disable this clk.
已解决! 转到解答。
Hi jimmychan:
In fact, I have tried to use clk_disable(lm98714_data.sensor_clk); and clk_disable_unprepare(lm98714_data.sensor_clk); and use memtool to check the reg, after call "clk_disable" or "
clk_disable_unprepare" ,the CCGR2 "csi_clk_enable" bit will become disable,but the wave still create.