login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
August
»
31
Re: [PATCH 5/5] ARM: pxa168: aspenite: add board support for keypad
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Haojian Zhuang
Subject:
Re: [PATCH 5/5] ARM: pxa168: aspenite: add board support for keypad
Date: Monday, August 30, 2010 - 10:00 pm
On Thu, Aug 26, 2010 at 5:18 PM, Mark F. Brown <mark.brown314@gmail.com> wrote:
quoted text
> Signed-off-by: Mark F. Brown <mark.brown314@gmail.com> > --- > arch/arm/mach-mmp/aspenite.c | 27 +++++++++++++++++++++++++++ > 1 files changed, 27 insertions(+), 0 deletions(-) > > diff --git a/arch/arm/mach-mmp/aspenite.c b/arch/arm/mach-mmp/aspenite.c > index 9e1bd6b..1b788c5 100644 > --- a/arch/arm/mach-mmp/aspenite.c > +++ b/arch/arm/mach-mmp/aspenite.c > @@ -24,6 +24,8 @@ > #include <mach/pxa168.h> > #include <mach/gpio.h> > #include <video/pxa168fb.h> > +#include <linux/input.h> > +#include <plat/pxa27x_keypad.h> > > #include "common.h" > > @@ -97,6 +99,13 @@ static unsigned long common_pin_config[] __initdata = { > GPIO81_LCD_DD21, > GPIO82_LCD_DD22, > GPIO83_LCD_DD23, > + > + /* Keypad */ > + GPIO109_KP_MKIN1, > + GPIO110_KP_MKIN0, > + GPIO111_KP_MKOUT7, > + GPIO112_KP_MKOUT6, > + GPIO121_KP_MKIN4, > }; > > static struct smc91x_platdata smc91x_info = { > @@ -193,6 +202,23 @@ struct pxa168fb_mach_info aspenite_lcd_info = { > .invert_pixclock = 0, > }; > > +static unsigned int aspenite_matrix_key_map[] = { > + KEY(0, 6, KEY_UP), /* SW 4 */ > + KEY(0, 7, KEY_DOWN), /* SW 5 */ > + KEY(1, 6, KEY_LEFT), /* SW 6 */ > + KEY(1, 7, KEY_RIGHT), /* SW 7 */ > + KEY(4, 6, KEY_ENTER), /* SW 8 */ > + KEY(4, 7, KEY_ESC), /* SW 9 */ > +}; > + > +static struct pxa27x_keypad_platform_data aspenite_keypad_info __initdata = { > + .matrix_key_rows = 8, > + .matrix_key_cols = 8,
It seems that maxium columns is 5, not 8.
quoted text
> + .matrix_key_map = aspenite_matrix_key_map, > + .matrix_key_map_size = ARRAY_SIZE(aspenite_matrix_key_map), > + .debounce_interval = 30, > +}; > + > static void __init common_init(void) > { > mfp_config(ARRAY_AND_SIZE(common_pin_config)); > @@ -203,6 +229,7 @@ static void __init common_init(void) > pxa168_add_ssp(1); > pxa168_add_nand(&aspenite_nand_info); > pxa168_add_fb(&aspenite_lcd_info); > + pxa168_add_keypad(&aspenite_keypad_info); > > /* off-chip devices */ > platform_device_register(&smc91x_device); > -- > 1.7.0.4 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to
majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ >
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 0/5] ARM: pxa168: add keypad support
, Mark F. Brown
, (Thu Aug 26, 2:18 am)
[PATCH 1/5] ARM: pxa27x/pxa3xx: moved pxa27x_keypad.h to p ...
, Mark F. Brown
, (Thu Aug 26, 2:18 am)
[PATCH 2/5] ARM: pxa168: added keypad support
, Mark F. Brown
, (Thu Aug 26, 2:18 am)
[PATCH 3/5] ARM: pxa168: added wake clear register support ...
, Mark F. Brown
, (Thu Aug 26, 2:18 am)
[PATCH 4/5] ARM: pxa168: added special case handler for ke ...
, Mark F. Brown
, (Thu Aug 26, 2:18 am)
[PATCH 5/5] ARM: pxa168: aspenite: add board support for k ...
, Mark F. Brown
, (Thu Aug 26, 2:18 am)
Re: [PATCH 1/5] ARM: pxa27x/pxa3xx: moved pxa27x_keypad.h ...
, Eric Miao
, (Mon Aug 30, 9:13 pm)
Re: [PATCH 4/5] ARM: pxa168: added special case handler fo ...
, Haojian Zhuang
, (Mon Aug 30, 9:53 pm)
Re: [PATCH 2/5] ARM: pxa168: added keypad support
, Haojian Zhuang
, (Mon Aug 30, 9:56 pm)
Re: [PATCH 5/5] ARM: pxa168: aspenite: add board support f ...
, Haojian Zhuang
, (Mon Aug 30, 10:00 pm)
Re: [PATCH 4/5] ARM: pxa168: added special case handler fo ...
, Mark F. Brown
, (Mon Aug 30, 11:28 pm)
Re: [PATCH 4/5] ARM: pxa168: added special case handler fo ...
, Eric Miao
, (Tue Aug 31, 12:05 am)
Re: [PATCH 4/5] ARM: pxa168: added special case handler fo ...
, Mark F. Brown
, (Tue Aug 31, 12:13 am)
Re: [PATCH 4/5] ARM: pxa168: added special case handler fo ...
, Eric Miao
, (Tue Aug 31, 12:15 am)
Re: [PATCH 5/5] ARM: pxa168: aspenite: add board support f ...
, Mark F. Brown
, (Thu Sep 2, 9:50 pm)
Re: [PATCH 5/5] ARM: pxa168: aspenite: add board support f ...
, Marek Vasut
, (Fri Sep 3, 7:11 am)
Re: [PATCH 5/5] ARM: pxa168: aspenite: add board support f ...
, Eric Miao
, (Fri Sep 3, 7:39 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Fortier,Vincent [Montreal]
2.6.21.5 june 30th to july 1st date hang?
Jeff Dike
[ PATCH 2/6 ] UML - Formatting fixes around os_{read_write}_file callers
Liam Girdwood
[PATCH 07/13] regulator: regulator test harness
Oleg Nesterov
Re: Getting the new RxRPC patches upstream
Stefan Seyfried
Re: 2.6.19-rc5: grub is much slower resuming from suspend-to-disk than in 2.6.18
linux-netdev
:
Arnaud Ebalard
Re: [REGRESSION,BISECTED] MIPv6 support broken by f4f914b58019f0
Jan Engelhardt
Re: [PATCH iptables] extension: add xt_cpu match
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Sebastian Andrzej Siewior
[PATCH 8/8] net/emergency: remove locking from reycling pool if emergncy pools are...
David Miller
Re: [PATCH] qlcnic: dont assume NET_IP_ALIGN is 2
git
:
Jakub Narebski
Re: git on MacOSX and files with decomposed utf-8 file names
Brandon Casey
Re: Thunderbird and patches (was Re: [PATCH v2] Enable setting attach as the def...
Christian Couder
[PATCH 1/3] rev-parse: add test script for "--verify"
Ramkumar Ramachandra
Re: [GSoC update] git-remote-svn: The final one
Junio C Hamano
Re: git-rm isn't the inverse action of git-add
openbsd-misc
:
Joachim Schipper
Re: UVC Webcams
Florin Andrei
SOLVED [was: firewall is very slow, something's wrong]
Todd Alan Smith
Re: Microsoft gets the Most Secure Operating Systems award
Neal Hogan
Re: Need Advice: Thinkpad T60 or T61?
Sam Fourman Jr.
Re: Real men don't attack straw men
git-commits-head
:
Linux Kernel Mailing List
ACPI: Disable ARB_DISABLE on platforms where it is not needed
Linux Kernel Mailing List
m68knommu: add read_barrier_depends() and irqs_disabled_flags()
Linux Kernel Mailing List
[MTD] Add mtd panic_write function pointer
Linux Kernel Mailing List
[ARM] pxa: remove duplicate select statements from Kconfig
Linux Kernel Mailing List
mlx4_core: Don't read reserved fields in mlx4_QUERY_ADAPTER()
Colocation donated by:
Syndicate