camera: fix mt9t111.c include mt9p111.h
authorddl <ddl@rockchip.com>
Thu, 26 May 2011 03:16:30 +0000 (11:16 +0800)
committerddl <ddl@rockchip.com>
Thu, 26 May 2011 08:38:52 +0000 (16:38 +0800)
drivers/media/video/mt9t111.c
drivers/media/video/mt9t111.h [new file with mode: 0755]

index eff21ed406970a751d57a33315e235ea254c343c..601166918462ba4588383fc01ceb94325ce88b7c 100755 (executable)
@@ -21,7 +21,7 @@
 #include <media/v4l2-chip-ident.h>
 #include <media/soc_camera.h>
 #include <mach/rk29_camera.h>
-#include "mt9p111.h"
+#include "mt9t111.h"
 
 static int debug;
 module_param(debug, int, S_IRUGO|S_IWUSR);
diff --git a/drivers/media/video/mt9t111.h b/drivers/media/video/mt9t111.h
new file mode 100755 (executable)
index 0000000..98c0c30
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * Driver for MT9T111 CMOS Image Sensor from Aptina
+ *
+ * Copyright (C) 2008, Guennadi Liakhovetski <kernel@pengutronix.de>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef __MT9T111_H__
+#define __MT9T111_H__
+struct reginfo
+{
+    u16 reg;
+    u16 val;
+       u16 reg_len;
+       u16 rev;
+};
+
+#define WORD_LEN             0x04
+#define BYTE_LEN             0x02
+
+#define SEQUENCE_INIT        0x00
+#define SEQUENCE_NORMAL      0x01
+#define SEQUENCE_CAPTURE     0x02
+#define SEQUENCE_PREVIEW     0x03
+
+#define SEQUENCE_PROPERTY    0xFFFC
+#define SEQUENCE_WAIT_MS     0xFFFD
+#define SEQUENCE_WAIT_US     0xFFFE
+#define SEQUENCE_END        0xFFFF
+#endif