suspend: default suspend adc in freeze mode for power consumption [1/1]
authorwenbiao zhang <wenbiao.zhang@amlogic.com>
Tue, 4 Jun 2019 07:20:05 +0000 (15:20 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Thu, 20 Jun 2019 03:09:15 +0000 (20:09 -0700)
commitff6f0ffe801e57655453f59bb5e441d416d44784
treeaf2f22fd9d958e471f65ee9b01e850244eaa3109
parent81117f551dd3758d7927d89c6df4410bc735923d
suspend: default suspend adc in freeze mode for power consumption [1/1]

PD#SWPL-8587

Problem:
in freeze mode detect adc key cause power consumption problem

Solution:
adckeyswitch from bootargs to decide whether resume by adc key
in freeze mode, default set to POWER_WAKEUP_NONE
adckeyswitch values POWER_WAKEUP_NONE/POWER_WAKEUP_POWER/POWER_WAKEUP_ANY

Verify:
X301

Change-Id: I2726c2ec394e1ffa528acb0862ef302983683b3b
Signed-off-by: wenbiao zhang <wenbiao.zhang@amlogic.com>
drivers/amlogic/iio/adc/meson_saradc.c
drivers/amlogic/input/keyboard/adc_keypad.c
drivers/amlogic/input/keyboard/gpio_keypad.c
include/linux/amlogic/pm.h