Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
3eaaea9c
Commit
3eaaea9c
authored
Feb 10, 2006
by
Juha Yrjola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: OMAP: Add keypad data to board-nokia770.c
Signed-off-by:
Juha Yrjl
<
juha.yrjola@nokia.com
>
parent
30893029
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
arch/arm/mach-omap1/board-nokia770.c
arch/arm/mach-omap1/board-nokia770.c
+42
-0
No files found.
arch/arm/mach-omap1/board-nokia770.c
View file @
3eaaea9c
...
...
@@ -12,6 +12,7 @@
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/spi/spi.h>
#include <linux/input.h>
#include <asm/hardware.h>
#include <asm/mach-types.h>
...
...
@@ -22,6 +23,7 @@
#include <asm/arch/mux.h>
#include <asm/arch/usb.h>
#include <asm/arch/board.h>
#include <asm/arch/keypad.h>
#include <asm/arch/common.h>
static
void
__init
omap_nokia770_init_irq
(
void
)
...
...
@@ -30,6 +32,45 @@ static void __init omap_nokia770_init_irq(void)
omap_init_irq
();
}
static
int
nokia770_keymap
[]
=
{
KEY
(
0
,
1
,
KEY_UP
),
KEY
(
0
,
2
,
KEY_F5
),
KEY
(
1
,
0
,
KEY_LEFT
),
KEY
(
1
,
1
,
KEY_ENTER
),
KEY
(
1
,
2
,
KEY_RIGHT
),
KEY
(
2
,
0
,
KEY_ESC
),
KEY
(
2
,
1
,
KEY_DOWN
),
KEY
(
2
,
2
,
KEY_F4
),
KEY
(
3
,
0
,
KEY_F7
),
KEY
(
3
,
1
,
KEY_F8
),
KEY
(
3
,
2
,
KEY_F6
),
0
};
static
struct
resource
nokia770_kp_resources
[]
=
{
[
0
]
=
{
.
start
=
INT_KEYBOARD
,
.
end
=
INT_KEYBOARD
,
.
flags
=
IORESOURCE_IRQ
,
},
};
static
struct
omap_kp_platform_data
nokia770_kp_data
=
{
.
rows
=
8
,
.
cols
=
8
,
.
keymap
=
nokia770_keymap
};
static
struct
platform_device
nokia770_kp_device
=
{
.
name
=
"omap-keypad"
,
.
id
=
-
1
,
.
dev
=
{
.
platform_data
=
&
nokia770_kp_data
,
},
.
num_resources
=
ARRAY_SIZE
(
nokia770_kp_resources
),
.
resource
=
nokia770_kp_resources
,
};
static
struct
spi_board_info
nokia770_spi_board_info
[]
__initdata
=
{
[
0
]
=
{
.
modalias
=
"lcd_lph8923"
,
...
...
@@ -40,6 +81,7 @@ static struct spi_board_info nokia770_spi_board_info[] __initdata = {
};
static
struct
platform_device
*
nokia770_devices
[]
__initdata
=
{
&
nokia770_kp_device
,
};
/* assume no Mini-AB port */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment