aboutsummaryrefslogtreecommitdiffstats
path: root/include/media/s5k5bafx_platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/media/s5k5bafx_platform.h')
-rw-r--r--include/media/s5k5bafx_platform.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/include/media/s5k5bafx_platform.h b/include/media/s5k5bafx_platform.h
new file mode 100644
index 0000000..18ebb2b
--- /dev/null
+++ b/include/media/s5k5bafx_platform.h
@@ -0,0 +1,42 @@
+/*
+ * Driver for S5K5BAFX (VGA camera) from SAMSUNG ELECTRONICS
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ */
+
+#define DEFAULT_FMT V4L2_PIX_FMT_UYVY /* YUV422 */
+#ifdef CONFIG_MACH_PX
+#define DEFAULT_PREVIEW_WIDTH 800
+#define DEFAULT_PREVIEW_HEIGHT 600
+#else
+#define DEFAULT_PREVIEW_WIDTH 640
+#define DEFAULT_PREVIEW_HEIGHT 480
+#endif
+#define DEFAULT_CAPTURE_WIDTH 1600
+#define DEFAULT_CAPTURE_HEIGHT 1200
+#define S5K5BAFX_STREAMOFF_DELAY 150
+
+/* Define debug level */
+#define CAMDBG_LEVEL_ERR (1 << 0)
+#define CAMDBG_LEVEL_WARN (1 << 1)
+#define CAMDBG_LEVEL_INFO (1 << 2)
+#define CAMDBG_LEVEL_DEBUG (1 << 3)
+#define CAMDBG_LEVEL_TRACE (1 << 4)
+#define CAMDBG_LEVEL_DEFAULT \
+ (CAMDBG_LEVEL_ERR | CAMDBG_LEVEL_WARN | CAMDBG_LEVEL_INFO)
+
+struct s5k5bafx_platform_data {
+ u32 default_width;
+ u32 default_height;
+ u32 pixelformat;
+ u32 freq; /* MCLK in KHz */
+
+ /* This SoC supports Parallel & CSI-2 */
+ u32 is_mipi; /* set to 1 if mipi */
+ s32 streamoff_delay; /* ms, type is signed */
+
+ u8 dbg_level;
+};