aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2009-05-28 14:04:00 -0700
committerTony Lindgren <tony@atomide.com>2009-05-28 14:04:00 -0700
commit4a899d5e93fd974952492cd4a09e98b209d1ad58 (patch)
tree335eb48c69d481f462cb863c37f44ace1e51ecbd /arch/arm/plat-omap
parent49adf465d2448dc15866b2267df46ea2e1ccacf1 (diff)
downloadkernel_samsung_tuna-4a899d5e93fd974952492cd4a09e98b209d1ad58.zip
kernel_samsung_tuna-4a899d5e93fd974952492cd4a09e98b209d1ad58.tar.gz
kernel_samsung_tuna-4a899d5e93fd974952492cd4a09e98b209d1ad58.tar.bz2
ARM: OMAP3: Initialize more devices for LDP
Based on an earlier patches by Stanley.Miao <stanley.miao@windriver.com> and Nishant Kamat <nskamat@ti.com>. Note that at the ads7846 support still needs support for vaux_control for the touchscreen to work. Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r--arch/arm/plat-omap/include/mach/keypad.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/include/mach/keypad.h b/arch/arm/plat-omap/include/mach/keypad.h
index 232923a..45ea3ae 100644
--- a/arch/arm/plat-omap/include/mach/keypad.h
+++ b/arch/arm/plat-omap/include/mach/keypad.h
@@ -33,7 +33,11 @@ struct omap_kp_platform_data {
#define GROUP_3 (3 << 16)
#define GROUP_MASK GROUP_3
+#define KEY_PERSISTENT 0x00800000
+#define KEYNUM_MASK 0x00EFFFFF
#define KEY(col, row, val) (((col) << 28) | ((row) << 24) | (val))
+#define PERSISTENT_KEY(col, row) (((col) << 28) | ((row) << 24) | \
+ KEY_PERSISTENT)
#endif