* 1) add flash_trigger_out control
*v0.d.0:
* 1) add Isp_SoftRst for rk3288;
+*v0.e.0:
+* 1) isp_clk 208.8M for 1lane, isp_clk 416.6M for 2lane;
*/
-#define CAMSYS_DRIVER_VERSION KERNEL_VERSION(0,0xd,0)
+#define CAMSYS_DRIVER_VERSION KERNEL_VERSION(0,0xe,0)
#define CAMSYS_PLATFORM_DRV_NAME "RockChip-CamSys"
{
camsys_dev_t *camsys_dev = (camsys_dev_t*)ptr;
camsys_mrv_clk_t *clk = (camsys_mrv_clk_t*)camsys_dev->clk;
+ unsigned long isp_clk;
if (on && !clk->in_on) {
rockchip_set_system_status(SYS_STATUS_ISP);
+ if (on == 1) {
+ isp_clk = 210000000;
+ } else {
+ isp_clk = 420000000;
+ }
+
+ clk_set_rate(clk->isp,isp_clk);
+ clk_set_rate(clk->isp_jpe, isp_clk);
+
clk_prepare_enable(clk->aclk_isp);
clk_prepare_enable(clk->hclk_isp);
clk_prepare_enable(clk->isp);
clk->in_on = true;
- camsys_trace(1, "%s clock in turn on",dev_name(camsys_dev->miscdev.this_device));
+ camsys_trace(1, "%s clock(f: %ld Hz) in turn on",dev_name(camsys_dev->miscdev.this_device),isp_clk);
camsys_mrv_reset_cb(ptr,1);
udelay(100);
camsys_mrv_reset_cb(ptr,0);