Home
last modified time | relevance | path

Searched hist:"3 ccaecfa6fefcfca9326285e5137b8b476c02d3c" (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/input/
H A Drk8xx_pwrkey.c3ccaecfa6fefcfca9326285e5137b8b476c02d3c Tue Nov 28 10:22:59 UTC 2017 Joseph Chen <chenjh@rock-chips.com> input: rk8xx pwrkey: use irq to detect key event

because we support U-Boot system suspend and trap into ATF,
we have to make pwrkey as wakeup source, so that we must
register pmic_int as an irq.

we found reading 'get_timer(0)' will return a large value in
the interrupt routine and I don't find out what happend now,
so I add the 'get_ms()' which reads arm gerneric timer tick
direcly.

we clean all PMIC interrupt status for safety to avoid pmic_int
hold in low level which make PMIC can't respond to interrupt any
more.

Change-Id: I46ff81030696f4672faa9fc81141952e52fd5ba9
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>