You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.3 KiB
48 lines
1.3 KiB
/*
|
|
* Copyright (C) 2017 Samsung Electronics. All rights reserved.
|
|
*
|
|
* 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.
|
|
*
|
|
* This program is distributed in the hope that it will be useful, but
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* General Public License for more details.
|
|
*/
|
|
|
|
#ifndef FINGERPRINT_H_
|
|
#define FINGERPRINT_H_
|
|
|
|
#undef DEBUG /* If you need pr_debug logs, changes this definition */
|
|
#define pr_fmt(fmt) "fps_%s: " fmt, __func__
|
|
|
|
#include <linux/clk.h>
|
|
#include "fingerprint_sysfs.h"
|
|
|
|
/* fingerprint debug timer */
|
|
#define FPSENSOR_DEBUG_TIMER_SEC (10 * HZ)
|
|
#define DETECT_ADM 1
|
|
|
|
/* For Sensor Type Check */
|
|
enum {
|
|
SENSOR_OOO = -2,
|
|
SENSOR_UNKNOWN,
|
|
SENSOR_FAILED,
|
|
SENSOR_VIPER,
|
|
SENSOR_RAPTOR,
|
|
SENSOR_EGIS,
|
|
SENSOR_VIPER_WOG,
|
|
SENSOR_NAMSAN,
|
|
SENSOR_GOODIX,
|
|
SENSOR_QBT2000,
|
|
SENSOR_EGISOPTICAL,
|
|
SENSOR_GOODIXOPTICAL,
|
|
SENSOR_MAXIMUM,
|
|
};
|
|
|
|
#define SENSOR_STATUS_SIZE 12
|
|
static char sensor_status[SENSOR_STATUS_SIZE][10] = {"ooo", "unknown", "failed",
|
|
"viper", "raptor", "egis", "viper_wog", "namsan", "goodix", "qbt2000", "et7xx", "goodixopt"};
|
|
|
|
#endif
|
|
|