1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
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__ */
|