summaryrefslogtreecommitdiff
path: root/drivers/media/sprd_dcam/common/flash_test.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/sprd_dcam/common/flash_test.h')
-rw-r--r--drivers/media/sprd_dcam/common/flash_test.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/drivers/media/sprd_dcam/common/flash_test.h b/drivers/media/sprd_dcam/common/flash_test.h
new file mode 100644
index 00000000..03011b30
--- /dev/null
+++ b/drivers/media/sprd_dcam/common/flash_test.h
@@ -0,0 +1,38 @@
+#ifndef _FLASH_TEST_H_
+#define _FLASH_TEST_H_
+
+#include <linux/semaphore.h>
+#include <linux/module.h>
+#include <linux/kernel.h>
+#include <linux/init.h>
+#include <linux/fs.h>
+#include <linux/cdev.h>
+#include <linux/device.h>
+#include <linux/slab.h>
+#include <linux/gpio.h>
+#include <linux/of_gpio.h>
+#include <linux/proc_fs.h>
+#include <soc/sprd/adi.h>
+#ifndef CONFIG_64BIT
+#include <soc/sprd/hardware.h>
+#include <soc/sprd/board.h>
+#endif
+
+#define FLASH_TEST_DEVICE_NODE_NAME "flash_test"
+#define FLASH_TEST_DEVICE_FILE_NAME "flash_test"
+#define FLASH_TEST_DEVICE_PROC_NAME "flash_test"
+#define FLASH_TEST_DEVICE_CLASS_NAME "flash_test"
+
+enum flash_status {
+ FLASH_CLOSE = 0x0,
+ FLASH_OPEN = 0x1,
+ FLASH_TORCH = 0x2, /*user only set flash to close/open/torch state */
+ FLASH_AUTO = 0x3,
+ FLASH_CLOSE_AFTER_OPEN = 0x10, /* following is set to sensor */
+ FLASH_HIGH_LIGHT = 0x11,
+ FLASH_OPEN_ON_RECORDING = 0x22,
+ FLASH_CLOSE_AFTER_AUTOFOCUS = 0x30,
+ FLASH_STATUS_MAX
+};
+
+#endif