mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
c5d8293675
PD#SWPL-222162 Problem: After power on, key need to be continuously detected. Solution: Add Watch-Key driver unified management. Verify: T5M/AY301 T6D/BR301 Change-Id: Ifb46bbb3b9b077c94341e2f70bdd934bcd6ec4b4 Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
38 lines
859 B
C
38 lines
859 B
C
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
/*
|
|
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
|
|
*/
|
|
|
|
//#define DEBUG
|
|
#include <linux/module.h>
|
|
#include <linux/amlogic/module_merge.h>
|
|
#include "main.h"
|
|
|
|
static int __init input_main_init(void)
|
|
{
|
|
pr_debug("### %s() start\n", __func__);
|
|
call_sub_init(amlogic_watchkey_driver_init);
|
|
call_sub_init(meson_gpio_kp_init);
|
|
call_sub_init(meson_adc_kp_init);
|
|
call_sub_init(meson_ir_driver_init);
|
|
call_sub_init(meson_pmic6b_pwrkey_init);
|
|
call_sub_init(csk05_ts_init);
|
|
pr_debug("### %s() end\n", __func__);
|
|
return 0;
|
|
}
|
|
|
|
static void __exit input_main_exit(void)
|
|
{
|
|
meson_ir_driver_exit();
|
|
meson_adc_kp_exit();
|
|
meson_gpio_kp_exit();
|
|
meson_pmic6b_pwrkey_exit();
|
|
csk05_ts_exit();
|
|
amlogic_watchkey_driver_exit();
|
|
}
|
|
|
|
module_init(input_main_init);
|
|
module_exit(input_main_exit);
|
|
|
|
MODULE_LICENSE("GPL v2");
|