/* abov_touchkey.h -- Linux driver for abov chip as touchkey * * Copyright (C) 2013 Samsung Electronics Co.Ltd * Author: Junkyeong Kim * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * 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 __LINUX_ABOV_TOUCHKEY_H #define __LINUX_ABOV_TOUCHKEY_H #define ABOV_TK_NAME "abov-touchkey" #define ABOV_ID 0x40 /* Model define */ #if defined(CONFIG_SEC_A5_PROJECT) || defined(CONFIG_SEC_A5_EUR_PROJECT) || defined(CONFIG_SEC_A53G_EUR_PROJECT) #ifdef CONFIG_SEC_FACTORY #define LED_TWINKLE_BOOTING #endif #else /* default */ #endif struct abov_touchkey_platform_data { unsigned long irq_flag; int gpio_en; int gpio_int; int gpio_sda; int gpio_scl; int gpio_rst; int gpio_tkey_led_en; int gpio_seperated; int sub_det; int device_num; struct regulator *vdd_io_vreg; struct regulator *avdd_vreg; struct regulator *dvdd_vreg; void (*input_event) (void *data); int (*power) (void *, bool on); int (*keyled) (bool on); char *fw_path; u8 fw_checksum_h; u8 fw_checksum_l; bool boot_on_ldo; const char *regulator_avdd; const char *regulator_dvdd; }; #endif /* LINUX_ABOV_TOUCHKEY_H */