The access to REG_CLKCTRL or REG_CTRL1 without the clock enabled hangs
the machine. Enable the clock first.
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
* Turn on power and clocks to the controller.
*/
mmpcam_power_up_ctlr(cam);
+ mcam_clk_enable(mcam);
/*
* Provide power to the sensor.
*/
gpio_set_value(pdata->sensor_reset_gpio, 1); /* reset is active low */
mdelay(5);
- mcam_clk_enable(mcam);
-
return 0;
}