Commit Graph

14 Commits

Author SHA1 Message Date
Huqiang Qin d91ae3b4a5 adc_keypad: optimize code to reduce invalid calls to mbox [1/1]
PD#SWPL-167411

Problem:
Optimize code to reduce invalid calls to mbox.

Solution:
Only the old version of bl30 (arm core) needs to configure mbox.

Verify:
SC2/AH212

Change-Id: If6cd5aab0f21a410e19d5a77a10c2214aa8bd88f
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2024-06-04 07:58:42 -07:00
Huqiang Qin 6c878f646b saradc: s7d: support saradc [1/1]
PD#SWPL-163056

Problem:
S7D Silicon Bringup.

Solution:
Add a new SARADC driver.

Verify:
S7D/BM201

Change-Id: I5049a6f741bcc72691c931bc10830b30dc53913c
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2024-04-17 19:31:21 +08:00
Huqiang Qin c3530a332b adc_keypad: support blink led [1/1]
PD#SWPL-152938

Problem:
When the button is pressed, the LED will flash.

Solution:
New function.

Verify:
SC2/AH212

Change-Id: I4c4ff83b4b23a138b503647b20b5af09a6fb4336
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2024-02-21 04:05:58 -07:00
Huqiang Qin 6b08567df2 keypad: support hibernate [1/1]
PD#SWPL-145761

Problem:
Kernel 5.15 STD for keypad.

Solution:
1. suspend/resume changed to standard pm interface.
2. re-request GPIO on restore.

Verify:
S5/AX208 T7/AN400

Change-Id: I71a1dde2f3a436f480ea9c728a010b8705d8e976
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2024-01-31 22:15:58 -07:00
Huqiang Qin 8ac449d82e input: coverity clean [1/1]
PD#SWPL-141997

Problem:
Have coverity issue.

Solution:
Modify the code based on scan results.

Verify:
Kernel 5.15

Change-Id: I15cc6077c83e8ea6b88f33e8f51f1285a9f1af2e
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2023-10-20 04:44:13 -07:00
Shunzhou Jiang 855b70c393 mbox: mbox driver refactoring [1/2]
PD#SWPL-87115

Problem:
mbox driver refactoring

Solution:
mbox driver refactoring

Verify:
t7/t7c/t5m/sc2/s4/s4d/a1/c2/s5/t3x/t5w/g12b/sm1/txhd2

Change-Id: Ia3e5f9ff2b6de16a082e7f028fcc36dc4268856a
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2023-08-08 02:57:29 -07:00
shu.wang 808c4ee4ee Input: Porting csk05 touch button driver from kernel4.19 [1/1]
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>
2023-05-30 20:55:45 -07:00
Huqiang Qin e04bfc0192 adc_keypad: can't wakeup in android [1/1]
PD#SWPL-114618

Problem:
No press event reported after wakeup.

Solution:
Refer to Kernel 5.4 to modify.

Verify:
S4/AP222

Change-Id: I2ae8ca275f1db95a05419bb73eef205997bae9d0
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2023-03-22 00:24:21 -07:00
qinglin.li 67ec74de0d input: combine input modules [1/1]
PD#SWPL-95684

Problem:
combine input modules

Solution:
result:
	amlogic-input.ko
original:
	amlogic-input-gpiokey.ko
	amlogic-input-adckey.ko
	amlogic-input-ir.ko

Verify:
sc2

Change-Id: Ia8bdb007f4769bd627c9c9493b1d2dff7ffcb9f8
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2022-11-05 12:07:15 +08:00
qinglin.li 7c6316bebd printk : printk optimization [2/2]
PD#SWPL-70486

Problem:
use common tag in driver when printf

Solution:
set common pr_fmt in driver

Verify:
s4d

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: Ieee271d289e4d2f81258875d36288046b996a5d2
2022-02-14 19:55:32 -07:00
Lei Zhang b641c4ee8b adckey,gpiokey: support adc key and gpio key driver for c2 [1/1]
PD#SWPL-71098

Problem:
support adc key and gpio key driver

Solution:
support adc key and gpio key driver

Verify:
on C2 AF400

Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
Change-Id: Ibd3c7d706f4abe62fc293ffab2d4a16ab394b9df
2022-01-27 10:27:48 +08:00
wanwei.jiang 1c6ed6969b key: porting adc key driver [1/1]
PD#SWPL-68631

Problem:
porting adc key driver

Solution:
porting adc key driver

Verify:
s4d

Change-Id: Ib65478bacd49d008020d8c3dbc00ce698b4056d4
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-01-12 10:42:11 +08:00
wanwei.jiang 3b5e277b9f gpiokey: porting gpiokey driver [2/2]
PD#SWPL-65870

Problem:
modify the code to meet the checkpatch requirements

Solution:
1. modify dev_info to dev_dbg

Verify:
s4d

Change-Id: I23de35a0990ebf054b777d1fcad0592804cf8f4d
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2021-12-21 11:08:26 +08:00
wanwei.jiang 2248073b65 gpiokey: porting gpiokey driver [1/2]
PD#SWPL-65870

Problem:
porting gpiokey driver

Solution:
porting gpiokey driver

Verify:
s4d

Change-Id: I05fb390d2960ed000b7bed4726f13f7d581556ec
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2021-12-21 10:15:47 +08:00