aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap1/board-ams-delta.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap1/board-ams-delta.c')
-rw-r--r--arch/arm/mach-omap1/board-ams-delta.c59
1 files changed, 35 insertions, 24 deletions
diff --git a/arch/arm/mach-omap1/board-ams-delta.c b/arch/arm/mach-omap1/board-ams-delta.c
index fa2da7490dbe..c73ca61e585e 100644
--- a/arch/arm/mach-omap1/board-ams-delta.c
+++ b/arch/arm/mach-omap1/board-ams-delta.c
@@ -34,20 +34,20 @@ static u8 ams_delta_latch1_reg;
34static u16 ams_delta_latch2_reg; 34static u16 ams_delta_latch2_reg;
35 35
36static int ams_delta_keymap[] = { 36static int ams_delta_keymap[] = {
37 KEY(0, 0, KEY_F1), /* Advert */ 37 KEY(0, 0, KEY_F1), /* Advert */
38 38
39 KEY(3, 0, KEY_COFFEE), /* Games */ 39 KEY(3, 0, KEY_COFFEE), /* Games */
40 KEY(2, 0, KEY_QUESTION), /* Directory */ 40 KEY(2, 0, KEY_QUESTION), /* Directory */
41 KEY(3, 2, KEY_CONNECT), /* Internet */ 41 KEY(3, 2, KEY_CONNECT), /* Internet */
42 KEY(2, 1, KEY_SHOP), /* Services */ 42 KEY(2, 1, KEY_SHOP), /* Services */
43 KEY(1, 1, KEY_PHONE), /* VoiceMail */ 43 KEY(1, 1, KEY_PHONE), /* VoiceMail */
44 44
45 KEY(1, 0, KEY_DELETE), /* Delete */ 45 KEY(1, 0, KEY_DELETE), /* Delete */
46 KEY(2, 2, KEY_PLAY), /* Play */ 46 KEY(2, 2, KEY_PLAY), /* Play */
47 KEY(0, 1, KEY_PAGEUP), /* Up */ 47 KEY(0, 1, KEY_PAGEUP), /* Up */
48 KEY(3, 1, KEY_PAGEDOWN), /* Down */ 48 KEY(3, 1, KEY_PAGEDOWN), /* Down */
49 KEY(0, 2, KEY_EMAIL), /* ReadEmail */ 49 KEY(0, 2, KEY_EMAIL), /* ReadEmail */
50 KEY(1, 2, KEY_STOP), /* Stop */ 50 KEY(1, 2, KEY_STOP), /* Stop */
51 51
52 /* Numeric keypad portion */ 52 /* Numeric keypad portion */
53 KEY(7, 0, KEY_KP1), 53 KEY(7, 0, KEY_KP1),
@@ -61,20 +61,20 @@ static int ams_delta_keymap[] = {
61 KEY(5, 2, KEY_KP9), 61 KEY(5, 2, KEY_KP9),
62 KEY(6, 3, KEY_KP0), 62 KEY(6, 3, KEY_KP0),
63 KEY(7, 3, KEY_KPASTERISK), 63 KEY(7, 3, KEY_KPASTERISK),
64 KEY(5, 3, KEY_KPDOT), /* # key */ 64 KEY(5, 3, KEY_KPDOT), /* # key */
65 KEY(2, 7, KEY_NUMLOCK), /* Mute */ 65 KEY(2, 7, KEY_NUMLOCK), /* Mute */
66 KEY(1, 7, KEY_KPMINUS), /* Recall */ 66 KEY(1, 7, KEY_KPMINUS), /* Recall */
67 KEY(1, 6, KEY_KPPLUS), /* Redial */ 67 KEY(1, 6, KEY_KPPLUS), /* Redial */
68 KEY(6, 7, KEY_KPSLASH), /* Handsfree */ 68 KEY(6, 7, KEY_KPSLASH), /* Handsfree */
69 KEY(0, 6, KEY_ENTER), /* Video */ 69 KEY(0, 6, KEY_ENTER), /* Video */
70 70
71 KEY(4, 7, KEY_CAMERA), /* Photo */ 71 KEY(4, 7, KEY_CAMERA), /* Photo */
72 72
73 KEY(4, 0, KEY_F2), /* Home */ 73 KEY(4, 0, KEY_F2), /* Home */
74 KEY(4, 1, KEY_F3), /* Office */ 74 KEY(4, 1, KEY_F3), /* Office */
75 KEY(4, 2, KEY_F4), /* Mobile */ 75 KEY(4, 2, KEY_F4), /* Mobile */
76 KEY(7, 7, KEY_F5), /* SMS */ 76 KEY(7, 7, KEY_F5), /* SMS */
77 KEY(5, 7, KEY_F6), /* Email */ 77 KEY(5, 7, KEY_F6), /* Email */
78 78
79 /* QWERTY portion of keypad */ 79 /* QWERTY portion of keypad */
80 KEY(4, 3, KEY_Q), 80 KEY(4, 3, KEY_Q),
@@ -107,7 +107,7 @@ static int ams_delta_keymap[] = {
107 KEY(3, 6, KEY_M), 107 KEY(3, 6, KEY_M),
108 KEY(2, 6, KEY_SPACE), 108 KEY(2, 6, KEY_SPACE),
109 109
110 KEY(0, 7, KEY_LEFTSHIFT), /* Vol up */ 110 KEY(0, 7, KEY_LEFTSHIFT), /* Vol up */
111 KEY(3, 7, KEY_LEFTCTRL), /* Vol down */ 111 KEY(3, 7, KEY_LEFTCTRL), /* Vol down */
112 112
113 0 113 0
@@ -158,6 +158,10 @@ static struct map_desc ams_delta_io_desc[] __initdata = {
158 } 158 }
159}; 159};
160 160
161static struct omap_lcd_config ams_delta_lcd_config __initdata = {
162 .ctrl_name = "internal",
163};
164
161static struct omap_uart_config ams_delta_uart_config __initdata = { 165static struct omap_uart_config ams_delta_uart_config __initdata = {
162 .enabled_uarts = 1, 166 .enabled_uarts = 1,
163}; 167};
@@ -169,6 +173,7 @@ static struct omap_usb_config ams_delta_usb_config __initdata = {
169}; 173};
170 174
171static struct omap_board_config_kernel ams_delta_config[] = { 175static struct omap_board_config_kernel ams_delta_config[] = {
176 { OMAP_TAG_LCD, &ams_delta_lcd_config },
172 { OMAP_TAG_UART, &ams_delta_uart_config }, 177 { OMAP_TAG_UART, &ams_delta_uart_config },
173 { OMAP_TAG_USB, &ams_delta_usb_config }, 178 { OMAP_TAG_USB, &ams_delta_usb_config },
174}; 179};
@@ -199,6 +204,11 @@ static struct platform_device ams_delta_kp_device = {
199 .resource = ams_delta_kp_resources, 204 .resource = ams_delta_kp_resources,
200}; 205};
201 206
207static struct platform_device ams_delta_lcd_device = {
208 .name = "lcd_ams_delta",
209 .id = -1,
210};
211
202static struct platform_device ams_delta_led_device = { 212static struct platform_device ams_delta_led_device = {
203 .name = "ams-delta-led", 213 .name = "ams-delta-led",
204 .id = -1 214 .id = -1
@@ -206,6 +216,7 @@ static struct platform_device ams_delta_led_device = {
206 216
207static struct platform_device *ams_delta_devices[] __initdata = { 217static struct platform_device *ams_delta_devices[] __initdata = {
208 &ams_delta_kp_device, 218 &ams_delta_kp_device,
219 &ams_delta_lcd_device,
209 &ams_delta_led_device, 220 &ams_delta_led_device,
210}; 221};
211 222