blob: b8ad4dd5bbbf74cf8126aac2ee6d22fa613f9f2e [file] [log] [blame]
Jason9cbc3492010-05-17 14:39:09 +08001/*
2 * linux/arch/arm/mach-omap2/board-omap3evm.c
3 *
4 * Copyright (C) 2008 Guangzhou EMA-Tech
5 *
6 * Modified from mach-omap2/board-omap3evm.c
7 *
8 * Initial code: Syed Mohammed Khasim
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
13 */
14
15#include <linux/kernel.h>
16#include <linux/init.h>
17#include <linux/platform_device.h>
18#include <linux/delay.h>
19#include <linux/err.h>
20#include <linux/clk.h>
21#include <linux/io.h>
22#include <linux/leds.h>
23#include <linux/gpio.h>
24#include <linux/input.h>
25#include <linux/gpio_keys.h>
26
27#include <linux/regulator/machine.h>
28#include <linux/i2c/twl.h>
Sukumar Ghorai3a638332010-09-15 14:49:23 +000029#include <linux/mmc/host.h>
Jason9cbc3492010-05-17 14:39:09 +080030
31#include <mach/hardware.h>
32#include <asm/mach-types.h>
33#include <asm/mach/arch.h>
34#include <asm/mach/map.h>
35#include <asm/mach/flash.h>
36
37#include <plat/board.h>
38#include <plat/common.h>
39#include <plat/gpmc.h>
40#include <plat/nand.h>
41#include <plat/usb.h>
Tomi Valkeinena0b38cc2011-05-11 14:05:07 +030042#include <video/omapdss.h>
Tomi Valkeinenf8ae2f02011-05-10 19:48:10 +030043#include <video/omap-panel-generic-dpi.h>
Jason9cbc3492010-05-17 14:39:09 +080044
45#include <plat/mcspi.h>
46#include <linux/input/matrix_keypad.h>
47#include <linux/spi/spi.h>
Jason9cbc3492010-05-17 14:39:09 +080048#include <linux/interrupt.h>
49#include <linux/smsc911x.h>
50#include <linux/i2c/at24.h>
51
52#include "sdram-micron-mt46h32m32lf-6.h"
53#include "mux.h"
54#include "hsmmc.h"
Mike Rapoport96974a22011-04-25 01:09:05 +030055#include "common-board-devices.h"
Jason9cbc3492010-05-17 14:39:09 +080056
57#if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE)
Mike Rapoport21b42732011-04-16 22:29:30 +000058#include <plat/gpmc-smsc911x.h>
59
Jason9cbc3492010-05-17 14:39:09 +080060#define OMAP3STALKER_ETHR_START 0x2c000000
61#define OMAP3STALKER_ETHR_SIZE 1024
62#define OMAP3STALKER_ETHR_GPIO_IRQ 19
63#define OMAP3STALKER_SMC911X_CS 5
64
Mike Rapoport21b42732011-04-16 22:29:30 +000065static struct omap_smsc911x_platform_data smsc911x_cfg = {
66 .cs = OMAP3STALKER_SMC911X_CS,
67 .gpio_irq = OMAP3STALKER_ETHR_GPIO_IRQ,
68 .gpio_reset = -EINVAL,
Jason9cbc3492010-05-17 14:39:09 +080069 .flags = (SMSC911X_USE_32BIT | SMSC911X_SAVE_MAC_ADDRESS),
70};
71
Jason9cbc3492010-05-17 14:39:09 +080072static inline void __init omap3stalker_init_eth(void)
73{
Jason9cbc3492010-05-17 14:39:09 +080074 struct clk *l3ck;
75 unsigned int rate;
76
Jason9cbc3492010-05-17 14:39:09 +080077 l3ck = clk_get(NULL, "l3_ck");
78 if (IS_ERR(l3ck))
79 rate = 100000000;
80 else
81 rate = clk_get_rate(l3ck);
82
83 omap_mux_init_gpio(19, OMAP_PIN_INPUT_PULLUP);
Mike Rapoport21b42732011-04-16 22:29:30 +000084 gpmc_smsc911x_init(&smsc911x_cfg);
Jason9cbc3492010-05-17 14:39:09 +080085}
86
87#else
88static inline void __init omap3stalker_init_eth(void)
89{
90 return;
91}
92#endif
93
94/*
95 * OMAP3 DSS control signals
96 */
97
98#define DSS_ENABLE_GPIO 199
99#define LCD_PANEL_BKLIGHT_GPIO 210
100#define ENABLE_VPLL2_DEV_GRP 0xE0
101
102static int lcd_enabled;
103static int dvi_enabled;
104
105static void __init omap3_stalker_display_init(void)
106{
107 return;
108}
109
110static int omap3_stalker_enable_lcd(struct omap_dss_device *dssdev)
111{
112 if (dvi_enabled) {
113 printk(KERN_ERR "cannot enable LCD, DVI is enabled\n");
114 return -EINVAL;
115 }
116 gpio_set_value(DSS_ENABLE_GPIO, 1);
117 gpio_set_value(LCD_PANEL_BKLIGHT_GPIO, 1);
118 lcd_enabled = 1;
119 return 0;
120}
121
122static void omap3_stalker_disable_lcd(struct omap_dss_device *dssdev)
123{
124 gpio_set_value(DSS_ENABLE_GPIO, 0);
125 gpio_set_value(LCD_PANEL_BKLIGHT_GPIO, 0);
126 lcd_enabled = 0;
127}
128
Bryan Wu89747c92010-11-17 13:34:34 +0000129static struct panel_generic_dpi_data lcd_panel = {
130 .name = "generic",
Jason9cbc3492010-05-17 14:39:09 +0800131 .platform_enable = omap3_stalker_enable_lcd,
132 .platform_disable = omap3_stalker_disable_lcd,
133};
134
Bryan Wu89747c92010-11-17 13:34:34 +0000135static struct omap_dss_device omap3_stalker_lcd_device = {
136 .name = "lcd",
137 .driver_name = "generic_dpi_panel",
138 .data = &lcd_panel,
139 .phy.dpi.data_lines = 24,
140 .type = OMAP_DISPLAY_TYPE_DPI,
141};
142
Jason9cbc3492010-05-17 14:39:09 +0800143static int omap3_stalker_enable_tv(struct omap_dss_device *dssdev)
144{
145 return 0;
146}
147
148static void omap3_stalker_disable_tv(struct omap_dss_device *dssdev)
149{
150}
151
152static struct omap_dss_device omap3_stalker_tv_device = {
153 .name = "tv",
154 .driver_name = "venc",
155 .type = OMAP_DISPLAY_TYPE_VENC,
156#if defined(CONFIG_OMAP2_VENC_OUT_TYPE_SVIDEO)
157 .phy.venc.type = OMAP_DSS_VENC_TYPE_SVIDEO,
158#elif defined(CONFIG_OMAP2_VENC_OUT_TYPE_COMPOSITE)
159 .u.venc.type = OMAP_DSS_VENC_TYPE_COMPOSITE,
160#endif
161 .platform_enable = omap3_stalker_enable_tv,
162 .platform_disable = omap3_stalker_disable_tv,
163};
164
165static int omap3_stalker_enable_dvi(struct omap_dss_device *dssdev)
166{
167 if (lcd_enabled) {
168 printk(KERN_ERR "cannot enable DVI, LCD is enabled\n");
169 return -EINVAL;
170 }
171 gpio_set_value(DSS_ENABLE_GPIO, 1);
172 dvi_enabled = 1;
173 return 0;
174}
175
176static void omap3_stalker_disable_dvi(struct omap_dss_device *dssdev)
177{
178 gpio_set_value(DSS_ENABLE_GPIO, 0);
179 dvi_enabled = 0;
180}
181
Bryan Wu89747c92010-11-17 13:34:34 +0000182static struct panel_generic_dpi_data dvi_panel = {
183 .name = "generic",
Jason9cbc3492010-05-17 14:39:09 +0800184 .platform_enable = omap3_stalker_enable_dvi,
185 .platform_disable = omap3_stalker_disable_dvi,
186};
187
Bryan Wu89747c92010-11-17 13:34:34 +0000188static struct omap_dss_device omap3_stalker_dvi_device = {
189 .name = "dvi",
190 .type = OMAP_DISPLAY_TYPE_DPI,
191 .driver_name = "generic_dpi_panel",
192 .data = &dvi_panel,
193 .phy.dpi.data_lines = 24,
194};
195
Jason9cbc3492010-05-17 14:39:09 +0800196static struct omap_dss_device *omap3_stalker_dss_devices[] = {
197 &omap3_stalker_lcd_device,
198 &omap3_stalker_tv_device,
199 &omap3_stalker_dvi_device,
200};
201
202static struct omap_dss_board_info omap3_stalker_dss_data = {
203 .num_devices = ARRAY_SIZE(omap3_stalker_dss_devices),
204 .devices = omap3_stalker_dss_devices,
205 .default_device = &omap3_stalker_dvi_device,
206};
207
Oleg Drokin786b01a2011-06-06 18:57:07 +0000208static struct regulator_consumer_supply omap3stalker_vmmc1_supply[] = {
209 REGULATOR_SUPPLY("vmmc", "omap_hsmmc.0"),
Jason9cbc3492010-05-17 14:39:09 +0800210};
211
Oleg Drokin786b01a2011-06-06 18:57:07 +0000212static struct regulator_consumer_supply omap3stalker_vsim_supply[] = {
213 REGULATOR_SUPPLY("vmmc_aux", "omap_hsmmc.0"),
Jason9cbc3492010-05-17 14:39:09 +0800214};
215
216/* VMMC1 for MMC1 pins CMD, CLK, DAT0..DAT3 (20 mA, plus card == max 220 mA) */
217static struct regulator_init_data omap3stalker_vmmc1 = {
218 .constraints = {
219 .min_uV = 1850000,
220 .max_uV = 3150000,
221 .valid_modes_mask = REGULATOR_MODE_NORMAL
222 | REGULATOR_MODE_STANDBY,
223 .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE
224 | REGULATOR_CHANGE_MODE | REGULATOR_CHANGE_STATUS,
225 },
Oleg Drokin786b01a2011-06-06 18:57:07 +0000226 .num_consumer_supplies = ARRAY_SIZE(omap3stalker_vmmc1_supply),
227 .consumer_supplies = omap3stalker_vmmc1_supply,
Jason9cbc3492010-05-17 14:39:09 +0800228};
229
230/* VSIM for MMC1 pins DAT4..DAT7 (2 mA, plus card == max 50 mA) */
231static struct regulator_init_data omap3stalker_vsim = {
232 .constraints = {
233 .min_uV = 1800000,
234 .max_uV = 3000000,
235 .valid_modes_mask = REGULATOR_MODE_NORMAL
236 | REGULATOR_MODE_STANDBY,
237 .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE
238 | REGULATOR_CHANGE_MODE | REGULATOR_CHANGE_STATUS,
239 },
Oleg Drokin786b01a2011-06-06 18:57:07 +0000240 .num_consumer_supplies = ARRAY_SIZE(omap3stalker_vsim_supply),
241 .consumer_supplies = omap3stalker_vsim_supply,
Jason9cbc3492010-05-17 14:39:09 +0800242};
243
244static struct omap2_hsmmc_info mmc[] = {
245 {
246 .mmc = 1,
Sukumar Ghorai3a638332010-09-15 14:49:23 +0000247 .caps = MMC_CAP_4_BIT_DATA,
Jason9cbc3492010-05-17 14:39:09 +0800248 .gpio_cd = -EINVAL,
249 .gpio_wp = 23,
250 },
251 {} /* Terminator */
252};
253
254static struct gpio_keys_button gpio_buttons[] = {
255 {
256 .code = BTN_EXTRA,
257 .gpio = 18,
258 .desc = "user",
259 .wakeup = 1,
260 },
261};
262
263static struct gpio_keys_platform_data gpio_key_info = {
264 .buttons = gpio_buttons,
265 .nbuttons = ARRAY_SIZE(gpio_buttons),
266};
267
268static struct platform_device keys_gpio = {
269 .name = "gpio-keys",
270 .id = -1,
271 .dev = {
272 .platform_data = &gpio_key_info,
273 },
274};
275
276static struct gpio_led gpio_leds[] = {
277 {
278 .name = "stalker:D8:usr0",
279 .default_trigger = "default-on",
280 .gpio = 126,
281 },
282 {
283 .name = "stalker:D9:usr1",
284 .default_trigger = "default-on",
285 .gpio = 127,
286 },
287 {
288 .name = "stalker:D3:mmc0",
289 .gpio = -EINVAL, /* gets replaced */
290 .active_low = true,
291 .default_trigger = "mmc0",
292 },
293 {
294 .name = "stalker:D4:heartbeat",
295 .gpio = -EINVAL, /* gets replaced */
296 .active_low = true,
297 .default_trigger = "heartbeat",
298 },
299};
300
301static struct gpio_led_platform_data gpio_led_info = {
302 .leds = gpio_leds,
303 .num_leds = ARRAY_SIZE(gpio_leds),
304};
305
306static struct platform_device leds_gpio = {
307 .name = "leds-gpio",
308 .id = -1,
309 .dev = {
310 .platform_data = &gpio_led_info,
311 },
312};
313
314static int
315omap3stalker_twl_gpio_setup(struct device *dev,
316 unsigned gpio, unsigned ngpio)
317{
318 /* gpio + 0 is "mmc0_cd" (input/IRQ) */
319 omap_mux_init_gpio(23, OMAP_PIN_INPUT);
320 mmc[0].gpio_cd = gpio + 0;
321 omap2_hsmmc_init(mmc);
322
Jason9cbc3492010-05-17 14:39:09 +0800323 /*
324 * Most GPIOs are for USB OTG. Some are mostly sent to
325 * the P2 connector; notably LEDA for the LCD backlight.
326 */
327
328 /* TWL4030_GPIO_MAX + 0 == ledA, LCD Backlight control */
Igor Grinbergbc593f52011-05-03 18:22:09 +0300329 gpio_request_one(gpio + TWL4030_GPIO_MAX, GPIOF_OUT_INIT_LOW,
330 "EN_LCD_BKL");
Jason9cbc3492010-05-17 14:39:09 +0800331
332 /* gpio + 7 == DVI Enable */
Igor Grinbergbc593f52011-05-03 18:22:09 +0300333 gpio_request_one(gpio + 7, GPIOF_OUT_INIT_LOW, "EN_DVI");
Jason9cbc3492010-05-17 14:39:09 +0800334
335 /* TWL4030_GPIO_MAX + 1 == ledB (out, mmc0) */
336 gpio_leds[2].gpio = gpio + TWL4030_GPIO_MAX + 1;
337 /* GPIO + 13 == ledsync (out, heartbeat) */
338 gpio_leds[3].gpio = gpio + 13;
339
340 platform_device_register(&leds_gpio);
341 return 0;
342}
343
344static struct twl4030_gpio_platform_data omap3stalker_gpio_data = {
345 .gpio_base = OMAP_MAX_GPIO_LINES,
346 .irq_base = TWL4030_GPIO_IRQ_BASE,
347 .irq_end = TWL4030_GPIO_IRQ_END,
348 .use_leds = true,
349 .setup = omap3stalker_twl_gpio_setup,
350};
351
352static struct twl4030_usb_data omap3stalker_usb_data = {
353 .usb_mode = T2_USB_MODE_ULPI,
354};
355
Manjunath Kondaiah Gbead4372010-10-08 10:01:13 -0700356static uint32_t board_keymap[] = {
Jason9cbc3492010-05-17 14:39:09 +0800357 KEY(0, 0, KEY_LEFT),
358 KEY(0, 1, KEY_DOWN),
359 KEY(0, 2, KEY_ENTER),
360 KEY(0, 3, KEY_M),
361
362 KEY(1, 0, KEY_RIGHT),
363 KEY(1, 1, KEY_UP),
364 KEY(1, 2, KEY_I),
365 KEY(1, 3, KEY_N),
366
367 KEY(2, 0, KEY_A),
368 KEY(2, 1, KEY_E),
369 KEY(2, 2, KEY_J),
370 KEY(2, 3, KEY_O),
371
372 KEY(3, 0, KEY_B),
373 KEY(3, 1, KEY_F),
374 KEY(3, 2, KEY_K),
375 KEY(3, 3, KEY_P)
376};
377
378static struct matrix_keymap_data board_map_data = {
379 .keymap = board_keymap,
380 .keymap_size = ARRAY_SIZE(board_keymap),
381};
382
383static struct twl4030_keypad_data omap3stalker_kp_data = {
384 .keymap_data = &board_map_data,
385 .rows = 4,
386 .cols = 4,
387 .rep = 1,
388};
389
390static struct twl4030_madc_platform_data omap3stalker_madc_data = {
391 .irq_line = 1,
392};
393
Ilkka Koskinen6a58baf2011-03-02 13:24:05 +0000394static struct twl4030_codec_audio_data omap3stalker_audio_data;
Jason9cbc3492010-05-17 14:39:09 +0800395
396static struct twl4030_codec_data omap3stalker_codec_data = {
397 .audio_mclk = 26000000,
398 .audio = &omap3stalker_audio_data,
399};
400
Oleg Drokin786b01a2011-06-06 18:57:07 +0000401static struct regulator_consumer_supply omap3_stalker_vdda_dac_supply[] = {
402 REGULATOR_SUPPLY("vdda_dac", "omapdss_venc"),
403};
Jason9cbc3492010-05-17 14:39:09 +0800404
405/* VDAC for DSS driving S-Video */
406static struct regulator_init_data omap3_stalker_vdac = {
407 .constraints = {
408 .min_uV = 1800000,
409 .max_uV = 1800000,
410 .apply_uV = true,
411 .valid_modes_mask = REGULATOR_MODE_NORMAL
412 | REGULATOR_MODE_STANDBY,
413 .valid_ops_mask = REGULATOR_CHANGE_MODE
414 | REGULATOR_CHANGE_STATUS,
415 },
Oleg Drokin786b01a2011-06-06 18:57:07 +0000416 .num_consumer_supplies = ARRAY_SIZE(omap3_stalker_vdda_dac_supply),
417 .consumer_supplies = omap3_stalker_vdda_dac_supply,
Jason9cbc3492010-05-17 14:39:09 +0800418};
419
420/* VPLL2 for digital video outputs */
Senthilvadivu Guruswamyc8aac012011-01-24 06:22:02 +0000421static struct regulator_consumer_supply omap3_stalker_vpll2_supplies[] = {
422 REGULATOR_SUPPLY("vdds_dsi", "omapdss"),
423 REGULATOR_SUPPLY("vdds_dsi", "omapdss_dsi1"),
424};
Jason9cbc3492010-05-17 14:39:09 +0800425
426static struct regulator_init_data omap3_stalker_vpll2 = {
427 .constraints = {
428 .name = "VDVI",
429 .min_uV = 1800000,
430 .max_uV = 1800000,
431 .apply_uV = true,
432 .valid_modes_mask = REGULATOR_MODE_NORMAL
433 | REGULATOR_MODE_STANDBY,
434 .valid_ops_mask = REGULATOR_CHANGE_MODE
435 | REGULATOR_CHANGE_STATUS,
436 },
Senthilvadivu Guruswamyc8aac012011-01-24 06:22:02 +0000437 .num_consumer_supplies = ARRAY_SIZE(omap3_stalker_vpll2_supplies),
438 .consumer_supplies = omap3_stalker_vpll2_supplies,
Jason9cbc3492010-05-17 14:39:09 +0800439};
440
441static struct twl4030_platform_data omap3stalker_twldata = {
442 .irq_base = TWL4030_IRQ_BASE,
443 .irq_end = TWL4030_IRQ_END,
444
445 /* platform_data for children goes here */
446 .keypad = &omap3stalker_kp_data,
447 .madc = &omap3stalker_madc_data,
448 .usb = &omap3stalker_usb_data,
449 .gpio = &omap3stalker_gpio_data,
450 .codec = &omap3stalker_codec_data,
451 .vdac = &omap3_stalker_vdac,
452 .vpll2 = &omap3_stalker_vpll2,
Mike Rapoportfbd80712011-04-25 01:09:06 +0300453 .vmmc1 = &omap3stalker_vmmc1,
454 .vsim = &omap3stalker_vsim,
Jason9cbc3492010-05-17 14:39:09 +0800455};
456
457static struct at24_platform_data fram_info = {
458 .byte_len = (64 * 1024) / 8,
459 .page_size = 8192,
460 .flags = AT24_FLAG_ADDR16 | AT24_FLAG_IRUGO,
461};
462
463static struct i2c_board_info __initdata omap3stalker_i2c_boardinfo3[] = {
464 {
465 I2C_BOARD_INFO("24c64", 0x50),
466 .flags = I2C_CLIENT_WAKE,
467 .platform_data = &fram_info,
468 },
469};
470
471static int __init omap3_stalker_i2c_init(void)
472{
Mike Rapoportfbd80712011-04-25 01:09:06 +0300473 omap3_pmic_init("twl4030", &omap3stalker_twldata);
Jason9cbc3492010-05-17 14:39:09 +0800474 omap_register_i2c_bus(2, 400, NULL, 0);
475 omap_register_i2c_bus(3, 400, omap3stalker_i2c_boardinfo3,
476 ARRAY_SIZE(omap3stalker_i2c_boardinfo3));
477 return 0;
478}
479
480#define OMAP3_STALKER_TS_GPIO 175
Jason9cbc3492010-05-17 14:39:09 +0800481
482static struct omap_board_config_kernel omap3_stalker_config[] __initdata = {
483};
484
Russell King - ARM Linux3dc3bad2011-02-14 15:40:20 -0800485static void __init omap3_stalker_init_early(void)
Jason9cbc3492010-05-17 14:39:09 +0800486{
Paul Walmsley48057342010-12-21 15:25:10 -0700487 omap2_init_common_infrastructure();
488 omap2_init_common_devices(mt46h32m32lf6_sdrc_params, NULL);
Russell King - ARM Linux3dc3bad2011-02-14 15:40:20 -0800489}
490
491static void __init omap3_stalker_init_irq(void)
492{
Tony Lindgren741e3a82011-05-17 03:51:26 -0700493 omap3_init_irq();
Jason9cbc3492010-05-17 14:39:09 +0800494}
495
496static struct platform_device *omap3_stalker_devices[] __initdata = {
Jason9cbc3492010-05-17 14:39:09 +0800497 &keys_gpio,
498};
499
Keshava Munegowda181b2502011-03-01 20:08:16 +0530500static struct usbhs_omap_board_data usbhs_bdata __initconst = {
501 .port_mode[0] = OMAP_USBHS_PORT_MODE_UNUSED,
502 .port_mode[1] = OMAP_EHCI_PORT_MODE_PHY,
503 .port_mode[2] = OMAP_USBHS_PORT_MODE_UNUSED,
Jason9cbc3492010-05-17 14:39:09 +0800504
505 .phy_reset = true,
506 .reset_gpio_port[0] = -EINVAL,
507 .reset_gpio_port[1] = 21,
508 .reset_gpio_port[2] = -EINVAL,
509};
510
511#ifdef CONFIG_OMAP_MUX
512static struct omap_board_mux board_mux[] __initdata = {
513 OMAP3_MUX(SYS_NIRQ, OMAP_MUX_MODE0 | OMAP_PIN_INPUT_PULLUP |
514 OMAP_PIN_OFF_INPUT_PULLUP | OMAP_PIN_OFF_WAKEUPENABLE),
515 OMAP3_MUX(MCSPI1_CS1, OMAP_MUX_MODE4 | OMAP_PIN_INPUT_PULLUP |
516 OMAP_PIN_OFF_INPUT_PULLUP | OMAP_PIN_OFF_WAKEUPENABLE),
517 {.reg_offset = OMAP_MUX_TERMINATOR},
518};
Jason9cbc3492010-05-17 14:39:09 +0800519#endif
520
Jason9cbc3492010-05-17 14:39:09 +0800521static void __init omap3_stalker_init(void)
522{
523 omap3_mux_init(board_mux, OMAP_PACKAGE_CUS);
Tony Lindgrene41cccf2011-02-24 14:36:03 -0800524 omap_board_config = omap3_stalker_config;
525 omap_board_config_size = ARRAY_SIZE(omap3_stalker_config);
Jason9cbc3492010-05-17 14:39:09 +0800526
527 omap3_stalker_i2c_init();
528
529 platform_add_devices(omap3_stalker_devices,
530 ARRAY_SIZE(omap3_stalker_devices));
531
Senthilvadivu Guruswamyd5e13222011-02-22 11:24:50 +0200532 omap_display_init(&omap3_stalker_dss_data);
Jason9cbc3492010-05-17 14:39:09 +0800533
534 omap_serial_init();
Mike Rapoport9e186302011-04-27 11:56:12 +0300535 usb_musb_init(NULL);
Keshava Munegowda9e64bb12011-03-01 20:08:19 +0530536 usbhs_init(&usbhs_bdata);
Mike Rapoport96974a22011-04-25 01:09:05 +0300537 omap_ads7846_init(1, OMAP3_STALKER_TS_GPIO, 310, NULL);
Jason9cbc3492010-05-17 14:39:09 +0800538
539 omap_mux_init_gpio(21, OMAP_PIN_OUTPUT);
540 omap_mux_init_gpio(18, OMAP_PIN_INPUT_PULLUP);
541
542 omap3stalker_init_eth();
543 omap3_stalker_display_init();
544/* Ensure SDRC pins are mux'd for self-refresh */
545 omap_mux_init_signal("sdr_cke0", OMAP_PIN_OUTPUT);
546 omap_mux_init_signal("sdr_cke1", OMAP_PIN_OUTPUT);
547}
548
Jason9cbc3492010-05-17 14:39:09 +0800549MACHINE_START(SBC3530, "OMAP3 STALKER")
550 /* Maintainer: Jason Lam -lzg@ema-tech.com */
Jason9cbc3492010-05-17 14:39:09 +0800551 .boot_params = 0x80000100,
Mike Rapoport869fef42010-08-04 14:43:18 +0300552 .map_io = omap3_map_io,
Russell King - ARM Linux3dc3bad2011-02-14 15:40:20 -0800553 .init_early = omap3_stalker_init_early,
Jason9cbc3492010-05-17 14:39:09 +0800554 .init_irq = omap3_stalker_init_irq,
555 .init_machine = omap3_stalker_init,
Tony Lindgrene74984e2011-03-29 15:54:48 -0700556 .timer = &omap3_secure_timer,
Jason9cbc3492010-05-17 14:39:09 +0800557MACHINE_END