mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
808c4ee4ee
PD#SWPL-124757 Problem: The csk05 touch button driver is currently missing. Solution: Porting csk05 touch button driver from kernel4.19. Verify: A113L-T404 Change-Id: Ifd94fe06a133822d1d0d55c97ec5e946ce438e26 Signed-off-by: shu.wang <shu.wang@amlogic.com>
80 lines
1.3 KiB
C
80 lines
1.3 KiB
C
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
|
|
/*
|
|
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __INPUT_MAIN_H_
|
|
#define __INPUT_MAIN_H_
|
|
|
|
#if IS_ENABLED(CONFIG_AMLOGIC_GPIO_KEY)
|
|
int meson_gpio_kp_init(void);
|
|
void meson_gpio_kp_exit(void);
|
|
#else
|
|
static inline int meson_gpio_kp_init(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void meson_gpio_kp_exit(void)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#if IS_ENABLED(CONFIG_AMLOGIC_ADC_KEYPADS)
|
|
int meson_adc_kp_init(void);
|
|
void meson_adc_kp_exit(void);
|
|
#else
|
|
static inline int meson_adc_kp_init(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void meson_adc_kp_exit(void)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#if IS_ENABLED(CONFIG_AMLOGIC_MESON_IR)
|
|
int meson_ir_driver_init(void);
|
|
void meson_ir_driver_exit(void);
|
|
#else
|
|
static inline int meson_ir_driver_init(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void meson_ir_driver_exit(void)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#if IS_ENABLED(CONFIG_AMLOGIC_PWRKEY_PMIC6B)
|
|
int meson_pmic6b_pwrkey_init(void);
|
|
void meson_pmic6b_pwrkey_exit(void);
|
|
#else
|
|
static inline int meson_pmic6b_pwrkey_init(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void meson_pmic6b_pwrkey_exit(void)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#if IS_ENABLED(CONFIG_AMLOGIC_CKS05_TOUCH_KEYPADS)
|
|
int csk05_ts_init(void);
|
|
void csk05_ts_exit(void);
|
|
#else
|
|
static inline int csk05_ts_init(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void csk05_ts_exit(void)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#endif /*_INPUT_MAIN_H__*/
|