blob: 0e4201f7a8efa52b6cadf487280ee9ac350fba36 [file] [log] [blame]
/* drivers/input/touchscreen/sec_ts_selftest.h
*
* Copyright (C) 2016 Samsung Electronics Co., Ltd.
* http://www.samsungsemi.com/
*
* Core file for Samsung TSC driver
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef __SEC_TS_SELFTEST_H__
#define __SEC_TS_SELFTEST_H__
#define SEC_TS_SELFTEST 1
#define SEC_TS_RAWDATA_MAXSIZE (32 * 32 * 2)
struct selftest_header {
u32 signature;
u32 version;
u32 totalsize;
u32 crc32;
u32 result;
u32 trycnt;
u32 passcnt;
u32 failcnt;
u32 channel;
};
static int16_t sec_ts_selftest_ambient[18 * 32] = {
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639, 6639,
};
static int16_t sec_ts_selftest_ambient_2nd[2] = {0, 100};
static int16_t sec_ts_selftest_ambient_3rd[2] = {0, 100};
static int16_t sec_ts_selftest_p2pmin[2] = {-30, 0};
static int16_t sec_ts_selftest_p2pmax[2] = {0, 30};
static int8_t sec_ts_selftest_rawvarX[2] = {0, 15};
static int8_t sec_ts_selftest_rawvarY[2] = {0, 15};
static int16_t sec_ts_selftest_short2nd[2] = {0, 100};
static int16_t sec_ts_selftest_rawdata[2] = {1650, 2350};
#endif