public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [RFCv2,1/2] v4l2-controls.h: add addtional Flash fault bits
@ 2014-01-28  6:55 Daniel Jeong
  2014-01-28  6:55 ` [RFCv2,2/2] i2c: add new dual Flash driver,LM3646 Daniel Jeong
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Daniel Jeong @ 2014-01-28  6:55 UTC (permalink / raw)
  To: Mauro Carvalho Chehab, Sakari Ailus, Andy Shevchenko
  Cc: Hans Verkuil, Daniel Jeong, linux-kernel, linux-media

Add additional FLASH Fault bits to dectect faults from chip.
Some Flash drivers support UVLO, IVFM, NTC Trip faults.
UVLO : 	Under Voltage Lock Out Threshold crossed
IVFM : 	IVFM block reported and/or adjusted LED current Input Voltage Flash Monitor trip threshold
NTC  : 	NTC Threshold crossed. Many Flash drivers have a pin and the fault bit to 
serves as a threshold detector for negative temperature coefficient (NTC) thermistors.

Signed-off-by: Daniel Jeong <gshark.jeong@gmail.com>
---
 include/uapi/linux/v4l2-controls.h |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/uapi/linux/v4l2-controls.h b/include/uapi/linux/v4l2-controls.h
index 1666aab..01d730c 100644
--- a/include/uapi/linux/v4l2-controls.h
+++ b/include/uapi/linux/v4l2-controls.h
@@ -803,6 +803,9 @@ enum v4l2_flash_strobe_source {
 #define V4L2_FLASH_FAULT_SHORT_CIRCUIT		(1 << 3)
 #define V4L2_FLASH_FAULT_OVER_CURRENT		(1 << 4)
 #define V4L2_FLASH_FAULT_INDICATOR		(1 << 5)
+#define V4L2_FLASH_FAULT_UVLO			(1 << 6)
+#define V4L2_FLASH_FAULT_IVFM			(1 << 7)
+#define V4L2_FLASH_FAULT_NTC_TRIP		(1 << 8)
 
 #define V4L2_CID_FLASH_CHARGE			(V4L2_CID_FLASH_CLASS_BASE + 11)
 #define V4L2_CID_FLASH_READY			(V4L2_CID_FLASH_CLASS_BASE + 12)
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-01-29 15:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-28  6:55 [RFCv2,1/2] v4l2-controls.h: add addtional Flash fault bits Daniel Jeong
2014-01-28  6:55 ` [RFCv2,2/2] i2c: add new dual Flash driver,LM3646 Daniel Jeong
2014-01-28  7:12   ` Hans Verkuil
2014-01-29 15:18   ` Sakari Ailus
2014-01-28  7:04 ` [RFCv2,1/2] v4l2-controls.h: add addtional Flash fault bits Hans Verkuil
2014-01-28  9:08 ` Sakari Ailus
2014-01-28 10:19   ` Daniel Jeong
2014-01-29 15:02     ` Sakari Ailus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox