Input: spear_keyboard - reconfigure operating frequency on suspend
authorShiraz Hashim <shiraz.hashim@st.com>
Fri, 13 Jul 2012 07:11:10 +0000 (00:11 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 13 Jul 2012 07:14:01 +0000 (00:14 -0700)
commit8314f532ebd55f1d6dc23b143cda3c1714ffe201
treef9845473fd28cbcc33c3ac4de1427c1f58b82a28
parent53fe628558bab9a11050ba067a09442c92dca6bb
Input: spear_keyboard - reconfigure operating frequency on suspend

On some platform it may happen that the input clock to keyboard may
change during suspend, thus impacting its wakeup capability.

There is no means for keyboard driver to know this frequency before
hand. Hence introduce a platform data 'suspended_rate' which indicates
the frequency during suspend at which keyboard operates.

Accordingly reprogram keyboard while going into suspend and restore
original configuration at the time of resume.

Signed-off-by: Shiraz Hashim <shiraz.hashim@st.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
arch/arm/plat-spear/include/plat/keyboard.h
drivers/input/keyboard/spear-keyboard.c