blob: 4b04973c9bae19dd49efc2bc17e61156e7aaebf4 [file] [log] [blame]
Marek Vasut5d783a22009-07-16 13:26:48 +02001/*
2 * linux/arch/arm/mach-pxa/palmtc.c
3 *
4 * Support for the Palm Tungsten|C
5 *
6 * Author: Marek Vasut <marek.vasut@gmail.com>
7 *
8 * Based on work of:
9 * Petr Blaha <p3t3@centrum.cz>
10 * Chetan S. Kumar <shivakumar.chetan@gmail.com>
11 *
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License version 2 as
14 * published by the Free Software Foundation.
15 */
16
17#include <linux/platform_device.h>
18#include <linux/delay.h>
19#include <linux/irq.h>
20#include <linux/input.h>
Thierry Redingbfcb3112015-10-05 10:49:50 +020021#include <linux/pwm.h>
Marek Vasut5d783a22009-07-16 13:26:48 +020022#include <linux/pwm_backlight.h>
23#include <linux/gpio.h>
24#include <linux/input/matrix_keypad.h>
25#include <linux/ucb1400.h>
26#include <linux/power_supply.h>
27#include <linux/gpio_keys.h>
28#include <linux/mtd/physmap.h>
Marek Vasut4c6a8322010-08-09 05:01:45 +020029#include <linux/usb/gpio_vbus.h>
Marek Vasut5d783a22009-07-16 13:26:48 +020030
31#include <asm/mach-types.h>
32#include <asm/mach/arch.h>
33#include <asm/mach/map.h>
34
Arnd Bergmann4c25c5d2015-01-30 10:45:33 +010035#include "pxa25x.h"
Marek Vasut5d783a22009-07-16 13:26:48 +020036#include <mach/audio.h>
37#include <mach/palmtc.h>
Arnd Bergmann293b2da2012-08-24 15:16:48 +020038#include <linux/platform_data/mmc-pxamci.h>
39#include <linux/platform_data/video-pxafb.h>
40#include <linux/platform_data/irda-pxaficp.h>
Arnd Bergmann4c25c5d2015-01-30 10:45:33 +010041#include "udc.h"
Marek Vasut5d783a22009-07-16 13:26:48 +020042
43#include "generic.h"
44#include "devices.h"
45
46/******************************************************************************
47 * Pin configuration
48 ******************************************************************************/
49static unsigned long palmtc_pin_config[] __initdata = {
50 /* MMC */
51 GPIO6_MMC_CLK,
52 GPIO8_MMC_CS0,
53 GPIO12_GPIO, /* detect */
54 GPIO32_GPIO, /* power */
55 GPIO54_GPIO, /* r/o switch */
56
57 /* PCMCIA */
58 GPIO52_nPCE_1,
59 GPIO53_nPCE_2,
60 GPIO50_nPIOR,
61 GPIO51_nPIOW,
62 GPIO49_nPWE,
63 GPIO48_nPOE,
64 GPIO52_nPCE_1,
65 GPIO53_nPCE_2,
66 GPIO57_nIOIS16,
67 GPIO56_nPWAIT,
68
69 /* AC97 */
70 GPIO28_AC97_BITCLK,
71 GPIO29_AC97_SDATA_IN_0,
72 GPIO30_AC97_SDATA_OUT,
73 GPIO31_AC97_SYNC,
74
75 /* IrDA */
76 GPIO45_GPIO, /* ir disable */
77 GPIO46_FICP_RXD,
78 GPIO47_FICP_TXD,
79
80 /* PWM */
81 GPIO17_PWM1_OUT,
82
83 /* USB */
84 GPIO4_GPIO, /* detect */
85 GPIO36_GPIO, /* pullup */
86
87 /* LCD */
Eric Miao07bae6c2010-01-04 11:25:10 +080088 GPIOxx_LCD_TFT_16BPP,
Marek Vasut5d783a22009-07-16 13:26:48 +020089
90 /* MATRIX KEYPAD */
91 GPIO0_GPIO | WAKEUP_ON_EDGE_BOTH, /* in 0 */
92 GPIO9_GPIO | WAKEUP_ON_EDGE_BOTH, /* in 1 */
93 GPIO10_GPIO | WAKEUP_ON_EDGE_BOTH, /* in 2 */
94 GPIO11_GPIO | WAKEUP_ON_EDGE_BOTH, /* in 3 */
95 GPIO18_GPIO | MFP_LPM_DRIVE_LOW, /* out 0 */
96 GPIO19_GPIO | MFP_LPM_DRIVE_LOW, /* out 1 */
97 GPIO20_GPIO | MFP_LPM_DRIVE_LOW, /* out 2 */
98 GPIO21_GPIO | MFP_LPM_DRIVE_LOW, /* out 3 */
99 GPIO22_GPIO | MFP_LPM_DRIVE_LOW, /* out 4 */
100 GPIO23_GPIO | MFP_LPM_DRIVE_LOW, /* out 5 */
101 GPIO24_GPIO | MFP_LPM_DRIVE_LOW, /* out 6 */
102 GPIO25_GPIO | MFP_LPM_DRIVE_LOW, /* out 7 */
103 GPIO26_GPIO | MFP_LPM_DRIVE_LOW, /* out 8 */
104 GPIO27_GPIO | MFP_LPM_DRIVE_LOW, /* out 9 */
105 GPIO79_GPIO | MFP_LPM_DRIVE_LOW, /* out 10 */
106 GPIO80_GPIO | MFP_LPM_DRIVE_LOW, /* out 11 */
107
108 /* PXA GPIO KEYS */
109 GPIO7_GPIO | WAKEUP_ON_EDGE_BOTH, /* hotsync button on cradle */
110
111 /* MISC */
112 GPIO1_RST, /* reset */
113 GPIO2_GPIO, /* earphone detect */
114 GPIO16_GPIO, /* backlight switch */
115};
116
117/******************************************************************************
118 * SD/MMC card controller
119 ******************************************************************************/
Marek Vasut4c6a8322010-08-09 05:01:45 +0200120#if defined(CONFIG_MMC_PXA) || defined(CONFIG_MMC_PXA_MODULE)
Marek Vasut5d783a22009-07-16 13:26:48 +0200121static struct pxamci_platform_data palmtc_mci_platform_data = {
122 .ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34,
123 .gpio_power = GPIO_NR_PALMTC_SD_POWER,
124 .gpio_card_ro = GPIO_NR_PALMTC_SD_READONLY,
125 .gpio_card_detect = GPIO_NR_PALMTC_SD_DETECT_N,
Eric Miaof97cab22010-04-14 07:00:42 +0800126 .detect_delay_ms = 200,
Marek Vasut5d783a22009-07-16 13:26:48 +0200127};
128
Linus Walleij32d15442018-12-02 09:43:22 +0100129static struct gpiod_lookup_table palmtc_mci_gpio_table = {
130 .dev_id = "pxa2xx-mci.0",
131 .table = {
132 GPIO_LOOKUP("gpio-pxa", GPIO_NR_PALMTC_SD_DETECT_N,
133 "cd", GPIO_ACTIVE_LOW),
134 GPIO_LOOKUP("gpio-pxa", GPIO_NR_PALMTC_SD_READONLY,
135 "wp", GPIO_ACTIVE_LOW),
136 { },
137 },
138};
139
Marek Vasut4c6a8322010-08-09 05:01:45 +0200140static void __init palmtc_mmc_init(void)
141{
Linus Walleij32d15442018-12-02 09:43:22 +0100142 gpiod_add_lookup_table(&palmtc_mci_gpio_table);
Marek Vasut4c6a8322010-08-09 05:01:45 +0200143 pxa_set_mci_info(&palmtc_mci_platform_data);
144}
145#else
146static inline void palmtc_mmc_init(void) {}
147#endif
148
Marek Vasut5d783a22009-07-16 13:26:48 +0200149/******************************************************************************
150 * GPIO keys
151 ******************************************************************************/
Marek Vasut4c6a8322010-08-09 05:01:45 +0200152#if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
Marek Vasut5d783a22009-07-16 13:26:48 +0200153static struct gpio_keys_button palmtc_pxa_buttons[] = {
154 {KEY_F8, GPIO_NR_PALMTC_HOTSYNC_BUTTON, 1, "HotSync Button", EV_KEY, 1},
155};
156
157static struct gpio_keys_platform_data palmtc_pxa_keys_data = {
158 .buttons = palmtc_pxa_buttons,
159 .nbuttons = ARRAY_SIZE(palmtc_pxa_buttons),
160};
161
162static struct platform_device palmtc_pxa_keys = {
163 .name = "gpio-keys",
164 .id = -1,
165 .dev = {
166 .platform_data = &palmtc_pxa_keys_data,
167 },
168};
169
Marek Vasut4c6a8322010-08-09 05:01:45 +0200170static void __init palmtc_keys_init(void)
171{
172 platform_device_register(&palmtc_pxa_keys);
173}
174#else
175static inline void palmtc_keys_init(void) {}
176#endif
177
Marek Vasut5d783a22009-07-16 13:26:48 +0200178/******************************************************************************
179 * Backlight
180 ******************************************************************************/
Marek Vasut4c6a8322010-08-09 05:01:45 +0200181#if defined(CONFIG_BACKLIGHT_PWM) || defined(CONFIG_BACKLIGHT_PWM_MODULE)
Thierry Redingbfcb3112015-10-05 10:49:50 +0200182static struct pwm_lookup palmtc_pwm_lookup[] = {
183 PWM_LOOKUP("pxa25x-pwm.1", 0, "pwm-backlight.0", NULL, PALMTC_PERIOD_NS,
Thierry Redingca1ef9c2015-11-03 14:05:57 +0100184 PWM_POLARITY_NORMAL),
Thierry Redingbfcb3112015-10-05 10:49:50 +0200185};
186
Marek Vasut5d783a22009-07-16 13:26:48 +0200187static struct platform_pwm_backlight_data palmtc_backlight_data = {
Marek Vasut5d783a22009-07-16 13:26:48 +0200188 .max_brightness = PALMTC_MAX_INTENSITY,
189 .dft_brightness = PALMTC_MAX_INTENSITY,
Thierry Redingdb011202013-08-30 12:15:24 +0200190 .enable_gpio = GPIO_NR_PALMTC_BL_POWER,
Marek Vasut5d783a22009-07-16 13:26:48 +0200191};
192
193static struct platform_device palmtc_backlight = {
194 .name = "pwm-backlight",
195 .dev = {
196 .parent = &pxa25x_device_pwm1.dev,
197 .platform_data = &palmtc_backlight_data,
198 },
199};
200
Marek Vasut4c6a8322010-08-09 05:01:45 +0200201static void __init palmtc_pwm_init(void)
202{
Thierry Redingbfcb3112015-10-05 10:49:50 +0200203 pwm_add_table(palmtc_pwm_lookup, ARRAY_SIZE(palmtc_pwm_lookup));
Marek Vasut4c6a8322010-08-09 05:01:45 +0200204 platform_device_register(&palmtc_backlight);
205}
206#else
207static inline void palmtc_pwm_init(void) {}
208#endif
209
Marek Vasut5d783a22009-07-16 13:26:48 +0200210/******************************************************************************
211 * IrDA
212 ******************************************************************************/
Marek Vasut4c6a8322010-08-09 05:01:45 +0200213#if defined(CONFIG_IRDA) || defined(CONFIG_IRDA_MODULE)
Marek Vasut5d783a22009-07-16 13:26:48 +0200214static struct pxaficp_platform_data palmtc_ficp_platform_data = {
Marek Vasutc4bd0172009-07-17 12:50:43 +0200215 .gpio_pwdown = GPIO_NR_PALMTC_IR_DISABLE,
216 .transceiver_cap = IR_SIRMODE | IR_OFF,
Marek Vasut5d783a22009-07-16 13:26:48 +0200217};
218
Marek Vasut4c6a8322010-08-09 05:01:45 +0200219static void __init palmtc_irda_init(void)
220{
221 pxa_set_ficp_info(&palmtc_ficp_platform_data);
222}
223#else
224static inline void palmtc_irda_init(void) {}
225#endif
226
Marek Vasut5d783a22009-07-16 13:26:48 +0200227/******************************************************************************
228 * Keyboard
229 ******************************************************************************/
Marek Vasut4c6a8322010-08-09 05:01:45 +0200230#if defined(CONFIG_KEYBOARD_MATRIX) || defined(CONFIG_KEYBOARD_MATRIX_MODULE)
Marek Vasut5d783a22009-07-16 13:26:48 +0200231static const uint32_t palmtc_matrix_keys[] = {
232 KEY(0, 0, KEY_F1),
233 KEY(0, 1, KEY_X),
234 KEY(0, 2, KEY_POWER),
235 KEY(0, 3, KEY_TAB),
236 KEY(0, 4, KEY_A),
237 KEY(0, 5, KEY_Q),
238 KEY(0, 6, KEY_LEFTSHIFT),
239 KEY(0, 7, KEY_Z),
240 KEY(0, 8, KEY_S),
241 KEY(0, 9, KEY_W),
242 KEY(0, 10, KEY_E),
243 KEY(0, 11, KEY_UP),
244
245 KEY(1, 0, KEY_F2),
246 KEY(1, 1, KEY_DOWN),
247 KEY(1, 3, KEY_D),
248 KEY(1, 4, KEY_C),
249 KEY(1, 5, KEY_F),
250 KEY(1, 6, KEY_R),
251 KEY(1, 7, KEY_SPACE),
252 KEY(1, 8, KEY_V),
253 KEY(1, 9, KEY_G),
254 KEY(1, 10, KEY_T),
255 KEY(1, 11, KEY_LEFT),
256
257 KEY(2, 0, KEY_F3),
258 KEY(2, 1, KEY_LEFTCTRL),
259 KEY(2, 3, KEY_H),
260 KEY(2, 4, KEY_Y),
261 KEY(2, 5, KEY_N),
262 KEY(2, 6, KEY_J),
263 KEY(2, 7, KEY_U),
264 KEY(2, 8, KEY_M),
265 KEY(2, 9, KEY_K),
266 KEY(2, 10, KEY_I),
267 KEY(2, 11, KEY_RIGHT),
268
269 KEY(3, 0, KEY_F4),
270 KEY(3, 1, KEY_ENTER),
271 KEY(3, 3, KEY_DOT),
272 KEY(3, 4, KEY_L),
273 KEY(3, 5, KEY_O),
274 KEY(3, 6, KEY_LEFTALT),
275 KEY(3, 7, KEY_ENTER),
276 KEY(3, 8, KEY_BACKSPACE),
277 KEY(3, 9, KEY_P),
278 KEY(3, 10, KEY_B),
279 KEY(3, 11, KEY_FN),
280};
281
282const struct matrix_keymap_data palmtc_keymap_data = {
283 .keymap = palmtc_matrix_keys,
284 .keymap_size = ARRAY_SIZE(palmtc_matrix_keys),
285};
286
Tobias Klauser600ae402010-05-20 10:31:46 +0200287static const unsigned int palmtc_keypad_row_gpios[] = {
Marek Vasut5d783a22009-07-16 13:26:48 +0200288 0, 9, 10, 11
289};
290
Tobias Klauser600ae402010-05-20 10:31:46 +0200291static const unsigned int palmtc_keypad_col_gpios[] = {
Marek Vasut5d783a22009-07-16 13:26:48 +0200292 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 79, 80
293};
294
295static struct matrix_keypad_platform_data palmtc_keypad_platform_data = {
296 .keymap_data = &palmtc_keymap_data,
Ondrej Zajicek902805d2009-10-26 23:59:30 +0100297 .row_gpios = palmtc_keypad_row_gpios,
298 .num_row_gpios = ARRAY_SIZE(palmtc_keypad_row_gpios),
299 .col_gpios = palmtc_keypad_col_gpios,
300 .num_col_gpios = ARRAY_SIZE(palmtc_keypad_col_gpios),
Marek Vasut5d783a22009-07-16 13:26:48 +0200301 .active_low = 1,
302
303 .debounce_ms = 20,
304 .col_scan_delay_us = 5,
305};
306
307static struct platform_device palmtc_keyboard = {
308 .name = "matrix-keypad",
309 .id = -1,
310 .dev = {
311 .platform_data = &palmtc_keypad_platform_data,
312 },
313};
Marek Vasut4c6a8322010-08-09 05:01:45 +0200314static void __init palmtc_mkp_init(void)
315{
316 platform_device_register(&palmtc_keyboard);
317}
318#else
319static inline void palmtc_mkp_init(void) {}
320#endif
Marek Vasut5d783a22009-07-16 13:26:48 +0200321
322/******************************************************************************
323 * UDC
324 ******************************************************************************/
Haojian Zhuangc0a39152011-11-10 07:13:07 +0800325#if defined(CONFIG_USB_PXA25X)||defined(CONFIG_USB_PXA25X_MODULE)
Marek Vasut4c6a8322010-08-09 05:01:45 +0200326static struct gpio_vbus_mach_info palmtc_udc_info = {
Marek Vasut5d783a22009-07-16 13:26:48 +0200327 .gpio_vbus = GPIO_NR_PALMTC_USB_DETECT_N,
328 .gpio_vbus_inverted = 1,
329 .gpio_pullup = GPIO_NR_PALMTC_USB_POWER,
330};
331
Marek Vasut4c6a8322010-08-09 05:01:45 +0200332static struct platform_device palmtc_gpio_vbus = {
333 .name = "gpio-vbus",
334 .id = -1,
335 .dev = {
336 .platform_data = &palmtc_udc_info,
337 },
338};
339
340static void __init palmtc_udc_init(void)
341{
342 platform_device_register(&palmtc_gpio_vbus);
343};
344#else
345static inline void palmtc_udc_init(void) {}
346#endif
347
Marek Vasut5d783a22009-07-16 13:26:48 +0200348/******************************************************************************
349 * Touchscreen / Battery / GPIO-extender
350 ******************************************************************************/
Marek Vasut4c6a8322010-08-09 05:01:45 +0200351#if defined(CONFIG_TOUCHSCREEN_UCB1400) || \
352 defined(CONFIG_TOUCHSCREEN_UCB1400_MODULE)
353static struct platform_device palmtc_ucb1400_device = {
Marek Vasut5d783a22009-07-16 13:26:48 +0200354 .name = "ucb1400_core",
355 .id = -1,
356};
357
Marek Vasut4c6a8322010-08-09 05:01:45 +0200358static void __init palmtc_ts_init(void)
359{
360 pxa_set_ac97_info(NULL);
361 platform_device_register(&palmtc_ucb1400_device);
362}
363#else
364static inline void palmtc_ts_init(void) {}
365#endif
366
Marek Vasut5d783a22009-07-16 13:26:48 +0200367/******************************************************************************
Marek Vasut5fe2acc2010-08-09 06:13:06 +0200368 * LEDs
369 ******************************************************************************/
370#if defined(CONFIG_LEDS_GPIO) || defined(CONFIG_LEDS_GPIO_MODULE)
371struct gpio_led palmtc_gpio_leds[] = {
372{
373 .name = "palmtc:green:user",
374 .default_trigger = "none",
375 .gpio = GPIO_NR_PALMTC_LED_POWER,
376 .active_low = 1,
377}, {
378 .name = "palmtc:vibra:vibra",
379 .default_trigger = "none",
380 .gpio = GPIO_NR_PALMTC_VIBRA_POWER,
381 .active_low = 1,
382}
383
384};
385
386static struct gpio_led_platform_data palmtc_gpio_led_info = {
387 .leds = palmtc_gpio_leds,
388 .num_leds = ARRAY_SIZE(palmtc_gpio_leds),
389};
390
391static struct platform_device palmtc_leds = {
392 .name = "leds-gpio",
393 .id = -1,
394 .dev = {
395 .platform_data = &palmtc_gpio_led_info,
396 }
397};
398
399static void __init palmtc_leds_init(void)
400{
401 platform_device_register(&palmtc_leds);
402}
403#else
404static inline void palmtc_leds_init(void) {}
405#endif
406
407/******************************************************************************
Marek Vasut5d783a22009-07-16 13:26:48 +0200408 * NOR Flash
409 ******************************************************************************/
Marek Vasut4c6a8322010-08-09 05:01:45 +0200410#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
Marek Vasut5d783a22009-07-16 13:26:48 +0200411static struct resource palmtc_flash_resource = {
412 .start = PXA_CS0_PHYS,
413 .end = PXA_CS0_PHYS + SZ_16M - 1,
414 .flags = IORESOURCE_MEM,
415};
416
417static struct mtd_partition palmtc_flash_parts[] = {
418 {
419 .name = "U-Boot Bootloader",
420 .offset = 0x0,
421 .size = 0x40000,
422 },
423 {
424 .name = "Linux Kernel",
425 .offset = 0x40000,
426 .size = 0x2c0000,
427 },
428 {
429 .name = "Filesystem",
430 .offset = 0x300000,
431 .size = 0xcc0000,
432 },
433 {
434 .name = "U-Boot Environment",
435 .offset = 0xfc0000,
436 .size = MTDPART_SIZ_FULL,
437 },
438};
439
440static struct physmap_flash_data palmtc_flash_data = {
441 .width = 4,
442 .parts = palmtc_flash_parts,
443 .nr_parts = ARRAY_SIZE(palmtc_flash_parts),
444};
445
446static struct platform_device palmtc_flash = {
447 .name = "physmap-flash",
448 .id = -1,
449 .resource = &palmtc_flash_resource,
450 .num_resources = 1,
451 .dev = {
452 .platform_data = &palmtc_flash_data,
453 },
454};
455
Marek Vasut4c6a8322010-08-09 05:01:45 +0200456static void __init palmtc_nor_init(void)
457{
458 platform_device_register(&palmtc_flash);
459}
460#else
461static inline void palmtc_nor_init(void) {}
462#endif
463
Marek Vasut5d783a22009-07-16 13:26:48 +0200464/******************************************************************************
465 * Framebuffer
466 ******************************************************************************/
Marek Vasut4c6a8322010-08-09 05:01:45 +0200467#if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE)
Marek Vasut5d783a22009-07-16 13:26:48 +0200468static struct pxafb_mode_info palmtc_lcd_modes[] = {
Marek Vasut4c6a8322010-08-09 05:01:45 +0200469 {
470 .pixclock = 115384,
471 .xres = 320,
472 .yres = 320,
473 .bpp = 16,
Marek Vasut5d783a22009-07-16 13:26:48 +0200474
Marek Vasut4c6a8322010-08-09 05:01:45 +0200475 .left_margin = 27,
476 .right_margin = 7,
477 .upper_margin = 7,
478 .lower_margin = 8,
Marek Vasut5d783a22009-07-16 13:26:48 +0200479
Marek Vasut4c6a8322010-08-09 05:01:45 +0200480 .hsync_len = 6,
481 .vsync_len = 1,
482 },
Marek Vasut5d783a22009-07-16 13:26:48 +0200483};
484
485static struct pxafb_mach_info palmtc_lcd_screen = {
486 .modes = palmtc_lcd_modes,
487 .num_modes = ARRAY_SIZE(palmtc_lcd_modes),
488 .lcd_conn = LCD_COLOR_TFT_16BPP | LCD_PCLK_EDGE_FALL,
489};
490
Marek Vasut4c6a8322010-08-09 05:01:45 +0200491static void __init palmtc_lcd_init(void)
492{
Russell King - ARM Linux4321e1a2011-02-15 15:37:30 +0800493 pxa_set_fb_info(NULL, &palmtc_lcd_screen);
Marek Vasut4c6a8322010-08-09 05:01:45 +0200494}
495#else
496static inline void palmtc_lcd_init(void) {}
497#endif
498
Marek Vasut5d783a22009-07-16 13:26:48 +0200499/******************************************************************************
500 * Machine init
501 ******************************************************************************/
Marek Vasut5d783a22009-07-16 13:26:48 +0200502static void __init palmtc_init(void)
503{
504 pxa2xx_mfp_config(ARRAY_AND_SIZE(palmtc_pin_config));
505
Russell Kingcc155c62009-11-09 13:34:08 +0800506 pxa_set_ffuart_info(NULL);
507 pxa_set_btuart_info(NULL);
508 pxa_set_stuart_info(NULL);
509 pxa_set_hwuart_info(NULL);
510
Marek Vasut4c6a8322010-08-09 05:01:45 +0200511 palmtc_mmc_init();
512 palmtc_keys_init();
513 palmtc_pwm_init();
514 palmtc_irda_init();
515 palmtc_mkp_init();
516 palmtc_udc_init();
517 palmtc_ts_init();
518 palmtc_nor_init();
519 palmtc_lcd_init();
Marek Vasut5fe2acc2010-08-09 06:13:06 +0200520 palmtc_leds_init();
Marek Vasut5d783a22009-07-16 13:26:48 +0200521};
522
523MACHINE_START(PALMTC, "Palm Tungsten|C")
Nicolas Pitre7375aba2011-07-05 22:38:15 -0400524 .atag_offset = 0x100,
Marek Vasut851982c2010-10-11 02:20:19 +0200525 .map_io = pxa25x_map_io,
Rob Herring4e611092012-01-03 16:53:48 -0600526 .nr_irqs = PXA_NR_IRQS,
Marek Vasut5d783a22009-07-16 13:26:48 +0200527 .init_irq = pxa25x_init_irq,
Eric Miao8a97ae22011-05-18 21:30:04 +0800528 .handle_irq = pxa25x_handle_irq,
Stephen Warren6bb27d72012-11-08 12:40:59 -0700529 .init_time = pxa_timer_init,
Russell King271a74f2011-11-04 14:15:53 +0000530 .init_machine = palmtc_init,
531 .restart = pxa_restart,
Marek Vasut5d783a22009-07-16 13:26:48 +0200532MACHINE_END