summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGary Zhang <garyz@nvidia.com>2011-04-15 22:06:24 -0700
committerVarun Colbert <vcolbert@nvidia.com>2011-05-05 00:21:20 -0700
commitad8b0fa88af18d08f7f388b7dfd18111c75f9ee2 (patch)
treeaf3c383be67f43b93b114e8760eedb7eed49ed23 /include
parent46bd012366618dedcc17d3bde488bbd54f7aac52 (diff)
ARM: Tegra: Sh532u: Add focus motor state check
Return last requested position if the motor settled or timeout occurs. Change-Id: Ib0ff58b827fcf871dbf185eb0a284b7fe010aef2 Reviewed-on: http://git-master/r/27978 Reviewed-by: Frank Chen <frankc@nvidia.com> Reviewed-by: Andrei Denissov <adenissov@nvidia.com> Reviewed-by: Gary Zhang <garyz@nvidia.com> Tested-by: Gary Zhang <garyz@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Diffstat (limited to 'include')
-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;