diff options
| author | Yuval Adam <_@yuv.al> | 2017-08-30 08:25:59 +0000 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2017-08-30 08:25:59 +0000 |
| commit | 8e4bff4cab0ddac6060645b0715210484d02ff40 (patch) | |
| tree | 3a5c3024371a04692a3a6d9974d001cdff8ebf84 /drivers/input/touchscreen/msg2233/mstar_drv_self_mp_test.h | |
Diffstat (limited to 'drivers/input/touchscreen/msg2233/mstar_drv_self_mp_test.h')
| -rw-r--r-- | drivers/input/touchscreen/msg2233/mstar_drv_self_mp_test.h | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/msg2233/mstar_drv_self_mp_test.h b/drivers/input/touchscreen/msg2233/mstar_drv_self_mp_test.h new file mode 100644 index 00000000..c816f16f --- /dev/null +++ b/drivers/input/touchscreen/msg2233/mstar_drv_self_mp_test.h @@ -0,0 +1,101 @@ +////////////////////////////////////////////////////////////////////////////////
+//
+// Copyright (c) 2006-2014 MStar Semiconductor, Inc.
+// All rights reserved.
+//
+// Unless otherwise stipulated in writing, any and all information contained
+// herein regardless in any format shall remain the sole proprietary of
+// MStar Semiconductor Inc. and be kept in strict confidence
+// (??MStar Confidential Information??) by the recipient.
+// Any unauthorized act including without limitation unauthorized disclosure,
+// copying, use, reproduction, sale, distribution, modification, disassembling,
+// reverse engineering and compiling of the contents of MStar Confidential
+// Information is unlawful and strictly prohibited. MStar hereby reserves the
+// rights to any and all damages, losses, costs and expenses resulting therefrom.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+/**
+ *
+ * @file mstar_drv_self_mp_test.h
+ *
+ * @brief This file defines the interface of touch screen
+ *
+ *
+ */
+
+#ifndef __MSTAR_DRV_SELF_MP_TEST_H__
+#define __MSTAR_DRV_SELF_MP_TEST_H__
+
+/*--------------------------------------------------------------------------*/
+/* INCLUDE FILE */
+/*--------------------------------------------------------------------------*/
+
+#include "mstar_drv_common.h"
+
+#if defined(CONFIG_ENABLE_TOUCH_DRIVER_FOR_SELF_IC)
+#ifdef CONFIG_ENABLE_ITO_MP_TEST
+
+/*--------------------------------------------------------------------------*/
+/* PREPROCESSOR CONSTANT DEFINITION */
+/*--------------------------------------------------------------------------*/
+
+#define CTP_MP_TEST_RETRY_COUNT (3)
+
+
+#define OPEN_TEST_NON_BORDER_AREA_THRESHOLD (35) // range : 25~60
+#define OPEN_TEST_BORDER_AREA_THRESHOLD (40) // range : 25~60
+
+#define SHORT_TEST_THRESHOLD (3500)
+
+#define MP_TEST_MODE_OPEN_TEST (0x01)
+#define MP_TEST_MODE_SHORT_TEST (0x02)
+
+#define MAX_CHANNEL_NUM (48)
+
+// define for MSG21XXA
+#define PIN_GUARD_RING (46)
+#define GPO_SETTING_SIZE (3)
+
+// define for MSG22XX
+#define RIU_BASE_ADDR (0)
+#define RIU_WRITE_LENGTH (144)
+#define CSUB_REF (0) //(18)
+#define CSUB_REF_MAX (0x3F)
+
+#define MAX_SUBFRAME_NUM (24)
+#define MAX_AFE_NUM (4)
+
+
+#define REG_INTR_FIQ_MASK (0x04)
+#define FIQ_E_FRAME_READY_MASK (1 << 8)
+
+
+/*--------------------------------------------------------------------------*/
+/* PREPROCESSOR MACRO DEFINITION */
+/*--------------------------------------------------------------------------*/
+
+/*--------------------------------------------------------------------------*/
+/* DATA TYPE DEFINITION */
+/*--------------------------------------------------------------------------*/
+
+
+/*--------------------------------------------------------------------------*/
+/* GLOBAL VARIABLE DEFINITION */
+/*--------------------------------------------------------------------------*/
+
+
+/*--------------------------------------------------------------------------*/
+/* GLOBAL FUNCTION DECLARATION */
+/*--------------------------------------------------------------------------*/
+
+extern void DrvMpTestCreateMpTestWorkQueue(void);
+extern void DrvMpTestGetTestDataLog(ItoTestMode_e eItoTestMode, u8 *pDataLog, u32 *pLength);
+extern void DrvMpTestGetTestFailChannel(ItoTestMode_e eItoTestMode, u8 *pFailChannel, u32 *pFailChannelCount);
+extern s32 DrvMpTestGetTestResult(void);
+extern void DrvMpTestScheduleMpTestWork(ItoTestMode_e eItoTestMode);
+
+#endif //CONFIG_ENABLE_ITO_MP_TEST
+#endif //CONFIG_ENABLE_TOUCH_DRIVER_FOR_SELF_IC
+
+#endif /* __MSTAR_DRV_SELF_MP_TEST_H__ */
\ No newline at end of file |
