From patchwork Tue Jan 28 06:55:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Jeong X-Patchwork-Id: 3545411 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id ECF4FC02DC for ; Tue, 28 Jan 2014 06:56:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 35CE220154 for ; Tue, 28 Jan 2014 06:56:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6B2D42013A for ; Tue, 28 Jan 2014 06:56:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754608AbaA1G4M (ORCPT ); Tue, 28 Jan 2014 01:56:12 -0500 Received: from mail-ie0-f169.google.com ([209.85.223.169]:48188 "EHLO mail-ie0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750911AbaA1G4L (ORCPT ); Tue, 28 Jan 2014 01:56:11 -0500 Received: by mail-ie0-f169.google.com with SMTP id to1so2173033ieb.14 for ; Mon, 27 Jan 2014 22:56:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=uhsMdZ2kZU508NEE6kB7dAOdCkX116SaFK+/Z5d91Qo=; b=Db+GYrh1V3mzQ27Pcb+oPXrCeDH6IzatL4OcYUJd1TDNRwDCOTyYEDs6h84136Cmd8 5abGC51NV904akRAweAleN2K3PgOgs0Xz2nA1Wfu49stYANqKClmy7LZ9CRHmKjzKB6Q QkBQo8KrU2g6HKpZl5YvERULH6CPxMR/QLO+C4h5rLq5JUMZevaQT2HhTupl7cX/F3VC l/nLkUBPs8fTEeUw5bVGoe59yTlKgZ97VXp5/G2HBdTtfaT1ZgGOAS3CLeZSRNy2F+Ck +UpWbJc2yKuhf1iUO3tqh69K2Swt9CjOCSbaqG0eYQ8VEkvU8rtQAxewIAErAhkN2zoK pZcw== X-Received: by 10.50.66.208 with SMTP id h16mr26081855igt.0.1390892170849; Mon, 27 Jan 2014 22:56:10 -0800 (PST) Received: from localhost.localdomain ([117.111.4.239]) by mx.google.com with ESMTPSA id fk5sm53468997igb.9.2014.01.27.22.56.07 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 Jan 2014 22:56:10 -0800 (PST) From: Daniel Jeong To: Mauro Carvalho Chehab , Sakari Ailus , Andy Shevchenko Cc: Hans Verkuil , Daniel Jeong , , Subject: [RFCv2,1/2] v4l2-controls.h: add addtional Flash fault bits Date: Tue, 28 Jan 2014 15:55:57 +0900 Message-Id: <1390892158-5646-1-git-send-email-gshark.jeong@gmail.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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)