summaryrefslogtreecommitdiff
path: root/include/media/sh532u.h
diff options
context:
space:
mode:
authorGary Zhang <garyz@nvidia.com>2011-04-15 22:06:24 -0700
committerNiket Sirsi <nsirsi@nvidia.com>2011-05-19 17:49:55 -0700
commit03db664b381463eff1d848403b9ad62ec097047f (patch)
tree53202ad0baf705b7defc5efdb55d5191f8f76dbc /include/media/sh532u.h
parent6529eb1c8bf15d2111ff77cc830de0b67bc80038 (diff)
ARM: Tegra: Sh532u: Add focus motor state check
Return last requested position if the motor settled or timeout occurs. Reviewed-on: http://git-master/r/27978 (cherry picked from commit edb393adc0317a097858edeb4b9f5477d164b955) Change-Id: I54572b180bf151785d55edde9060876ed0393ee3 Reviewed-on: http://git-master/r/31741 Reviewed-by: Frank Chen <frankc@nvidia.com> Tested-by: Gary Zhang <garyz@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Reviewed-by: Gary Zhang <garyz@nvidia.com>
Diffstat (limited to 'include/media/sh532u.h')
-rw-r--r--include/media/sh532u.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/media/sh532u.h b/include/media/sh532u.h
index 2581d9ae7cbd..9fba8e084e29 100644
--- a/include/media/sh532u.h
+++ b/include/media/sh532u.h
@@ -21,8 +21,17 @@
#include <linux/ioctl.h> /* For IOCTL macros */
-#define SH532U_IOCTL_GET_CONFIG _IOR('o', 1, struct sh532u_config)
+#define SH532U_IOCTL_GET_CONFIG _IOR('o', 1, struct sh532u_config)
#define SH532U_IOCTL_SET_POSITION _IOW('o', 2, u32)
+#define SH532U_IOCTL_GET_MOVE_STATUS _IOW('o', 3, unsigned char)
+
+enum sh532u_move_status {
+ SH532U_STATE_UNKNOWN = 1,
+ SH532U_WAIT_FOR_MOVE_END,
+ SH532U_WAIT_FOR_SETTLE,
+ SH532U_LENS_SETTLED,
+ SH532U_Forced32 = 0x7FFFFFFF
+};
struct sh532u_config {
__u32 settle_time;