]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00169489-2 Add OV5642 csi camera support for i.mx6 sabre-lite board.
authorYi Li <r80015@freescale.com>
Mon, 2 Jan 2012 20:02:19 +0000 (14:02 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:33:47 +0000 (08:33 +0200)
Add OV5642 csi camera support for i.mx6 sabre-lite board

Signed-off-by: Yi Li <R80015@freescale.com>
drivers/media/video/mxc/capture/sensor_clock.c

index 357c01fef3619bbac4b552ee8e4b1b4f79cb2517..2159836699f398a608c405541bbffa743e7ffce9 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2004-2011 Freescale Semiconductor, Inc. All Rights Reserved.
+ * Copyright 2004-2012 Freescale Semiconductor, Inc. All Rights Reserved.
  */
 
 /*
@@ -24,6 +24,7 @@
 #include <linux/device.h>
 #include <linux/clk.h>
 #include <mach/hardware.h>
+#include <asm/mach-types.h>
 
 #if defined(CONFIG_MXC_IPU_V1) || defined(CONFIG_VIDEO_MXC_EMMA_CAMERA) \
                               || defined(CONFIG_VIDEO_MXC_CSI_CAMERA_MODULE) \
@@ -72,7 +73,10 @@ void set_mclk_rate(uint32_t *p_mclk_freq, uint32_t csi)
                }
        } else if (cpu_is_mx6q()) {
                if (csi == 0) {
-                       mclk = "cko1_clk0";
+                       if (machine_is_mx6q_sabrelite())
+                               mclk = "clko2_clk";
+                       else
+                               mclk = "cko1_clk0";
                } else {
                        pr_err("invalid csi num %d\n", csi);
                        return;