blob: c1b881d3d8ae4413f29f51279030e5a478def594 [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>
42#include <plat/timer-gp.h>
43#include <plat/display.h>
44
45#include <plat/mcspi.h>
46#include <linux/input/matrix_keypad.h>
47#include <linux/spi/spi.h>
48#include <linux/spi/ads7846.h>
49#include <linux/interrupt.h>
50#include <linux/smsc911x.h>
51#include <linux/i2c/at24.h>
52
53#include "sdram-micron-mt46h32m32lf-6.h"
54#include "mux.h"
55#include "hsmmc.h"
56
57#if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE)
58#define OMAP3STALKER_ETHR_START 0x2c000000
59#define OMAP3STALKER_ETHR_SIZE 1024
60#define OMAP3STALKER_ETHR_GPIO_IRQ 19
61#define OMAP3STALKER_SMC911X_CS 5
62
63static struct resource omap3stalker_smsc911x_resources[] = {
64 [0] = {
65 .start = OMAP3STALKER_ETHR_START,
66 .end =
67 (OMAP3STALKER_ETHR_START + OMAP3STALKER_ETHR_SIZE - 1),
68 .flags = IORESOURCE_MEM,
69 },
70 [1] = {
71 .start = OMAP_GPIO_IRQ(OMAP3STALKER_ETHR_GPIO_IRQ),
72 .end = OMAP_GPIO_IRQ(OMAP3STALKER_ETHR_GPIO_IRQ),
73 .flags = (IORESOURCE_IRQ | IRQF_TRIGGER_LOW),
74 },
75};
76
77static struct smsc911x_platform_config smsc911x_config = {
78 .phy_interface = PHY_INTERFACE_MODE_MII,
79 .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW,
80 .irq_type = SMSC911X_IRQ_TYPE_OPEN_DRAIN,
81 .flags = (SMSC911X_USE_32BIT | SMSC911X_SAVE_MAC_ADDRESS),
82};
83
84static struct platform_device omap3stalker_smsc911x_device = {
85 .name = "smsc911x",
86 .id = -1,
87 .num_resources = ARRAY_SIZE(omap3stalker_smsc911x_resources),
88 .resource = &omap3stalker_smsc911x_resources[0],
89 .dev = {
90 .platform_data = &smsc911x_config,
91 },
92};
93
94static inline void __init omap3stalker_init_eth(void)
95{
96 int eth_cs;
97 struct clk *l3ck;
98 unsigned int rate;
99
100 eth_cs = OMAP3STALKER_SMC911X_CS;
101
102 l3ck = clk_get(NULL, "l3_ck");
103 if (IS_ERR(l3ck))
104 rate = 100000000;
105 else
106 rate = clk_get_rate(l3ck);
107
108 omap_mux_init_gpio(19, OMAP_PIN_INPUT_PULLUP);
109 if (gpio_request(OMAP3STALKER_ETHR_GPIO_IRQ, "SMC911x irq") < 0) {
110 printk(KERN_ERR
111 "Failed to request GPIO%d for smc911x IRQ\n",
112 OMAP3STALKER_ETHR_GPIO_IRQ);
113 return;
114 }
115
116 gpio_direction_input(OMAP3STALKER_ETHR_GPIO_IRQ);
117
118 platform_device_register(&omap3stalker_smsc911x_device);
119}
120
121#else
122static inline void __init omap3stalker_init_eth(void)
123{
124 return;
125}
126#endif
127
128/*
129 * OMAP3 DSS control signals
130 */
131
132#define DSS_ENABLE_GPIO 199
133#define LCD_PANEL_BKLIGHT_GPIO 210
134#define ENABLE_VPLL2_DEV_GRP 0xE0
135
136static int lcd_enabled;
137static int dvi_enabled;
138
139static void __init omap3_stalker_display_init(void)
140{
141 return;
142}
143
144static int omap3_stalker_enable_lcd(struct omap_dss_device *dssdev)
145{
146 if (dvi_enabled) {
147 printk(KERN_ERR "cannot enable LCD, DVI is enabled\n");
148 return -EINVAL;
149 }
150 gpio_set_value(DSS_ENABLE_GPIO, 1);
151 gpio_set_value(LCD_PANEL_BKLIGHT_GPIO, 1);
152 lcd_enabled = 1;
153 return 0;
154}
155
156static void omap3_stalker_disable_lcd(struct omap_dss_device *dssdev)
157{
158 gpio_set_value(DSS_ENABLE_GPIO, 0);
159 gpio_set_value(LCD_PANEL_BKLIGHT_GPIO, 0);
160 lcd_enabled = 0;
161}
162
163static struct omap_dss_device omap3_stalker_lcd_device = {
164 .name = "lcd",
165 .driver_name = "generic_panel",
166 .phy.dpi.data_lines = 24,
167 .type = OMAP_DISPLAY_TYPE_DPI,
168 .platform_enable = omap3_stalker_enable_lcd,
169 .platform_disable = omap3_stalker_disable_lcd,
170};
171
172static int omap3_stalker_enable_tv(struct omap_dss_device *dssdev)
173{
174 return 0;
175}
176
177static void omap3_stalker_disable_tv(struct omap_dss_device *dssdev)
178{
179}
180
181static struct omap_dss_device omap3_stalker_tv_device = {
182 .name = "tv",
183 .driver_name = "venc",
184 .type = OMAP_DISPLAY_TYPE_VENC,
185#if defined(CONFIG_OMAP2_VENC_OUT_TYPE_SVIDEO)
186 .phy.venc.type = OMAP_DSS_VENC_TYPE_SVIDEO,
187#elif defined(CONFIG_OMAP2_VENC_OUT_TYPE_COMPOSITE)
188 .u.venc.type = OMAP_DSS_VENC_TYPE_COMPOSITE,
189#endif
190 .platform_enable = omap3_stalker_enable_tv,
191 .platform_disable = omap3_stalker_disable_tv,
192};
193
194static int omap3_stalker_enable_dvi(struct omap_dss_device *dssdev)
195{
196 if (lcd_enabled) {
197 printk(KERN_ERR "cannot enable DVI, LCD is enabled\n");
198 return -EINVAL;
199 }
200 gpio_set_value(DSS_ENABLE_GPIO, 1);
201 dvi_enabled = 1;
202 return 0;
203}
204
205static void omap3_stalker_disable_dvi(struct omap_dss_device *dssdev)
206{
207 gpio_set_value(DSS_ENABLE_GPIO, 0);
208 dvi_enabled = 0;
209}
210
211static struct omap_dss_device omap3_stalker_dvi_device = {
212 .name = "dvi",
213 .driver_name = "generic_panel",
214 .type = OMAP_DISPLAY_TYPE_DPI,
215 .phy.dpi.data_lines = 24,
216 .platform_enable = omap3_stalker_enable_dvi,
217 .platform_disable = omap3_stalker_disable_dvi,
218};
219
220static struct omap_dss_device *omap3_stalker_dss_devices[] = {
221 &omap3_stalker_lcd_device,
222 &omap3_stalker_tv_device,
223 &omap3_stalker_dvi_device,
224};
225
226static struct omap_dss_board_info omap3_stalker_dss_data = {
227 .num_devices = ARRAY_SIZE(omap3_stalker_dss_devices),
228 .devices = omap3_stalker_dss_devices,
229 .default_device = &omap3_stalker_dvi_device,
230};
231
232static struct platform_device omap3_stalker_dss_device = {
233 .name = "omapdss",
234 .id = -1,
235 .dev = {
236 .platform_data = &omap3_stalker_dss_data,
237 },
238};
239
240static struct regulator_consumer_supply omap3stalker_vmmc1_supply = {
241 .supply = "vmmc",
242};
243
244static struct regulator_consumer_supply omap3stalker_vsim_supply = {
245 .supply = "vmmc_aux",
246};
247
248/* VMMC1 for MMC1 pins CMD, CLK, DAT0..DAT3 (20 mA, plus card == max 220 mA) */
249static struct regulator_init_data omap3stalker_vmmc1 = {
250 .constraints = {
251 .min_uV = 1850000,
252 .max_uV = 3150000,
253 .valid_modes_mask = REGULATOR_MODE_NORMAL
254 | REGULATOR_MODE_STANDBY,
255 .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE
256 | REGULATOR_CHANGE_MODE | REGULATOR_CHANGE_STATUS,
257 },
258 .num_consumer_supplies = 1,
259 .consumer_supplies = &omap3stalker_vmmc1_supply,
260};
261
262/* VSIM for MMC1 pins DAT4..DAT7 (2 mA, plus card == max 50 mA) */
263static struct regulator_init_data omap3stalker_vsim = {
264 .constraints = {
265 .min_uV = 1800000,
266 .max_uV = 3000000,
267 .valid_modes_mask = REGULATOR_MODE_NORMAL
268 | REGULATOR_MODE_STANDBY,
269 .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE
270 | REGULATOR_CHANGE_MODE | REGULATOR_CHANGE_STATUS,
271 },
272 .num_consumer_supplies = 1,
273 .consumer_supplies = &omap3stalker_vsim_supply,
274};
275
276static struct omap2_hsmmc_info mmc[] = {
277 {
278 .mmc = 1,
Sukumar Ghorai3a638332010-09-15 14:49:23 +0000279 .caps = MMC_CAP_4_BIT_DATA,
Jason9cbc3492010-05-17 14:39:09 +0800280 .gpio_cd = -EINVAL,
281 .gpio_wp = 23,
282 },
283 {} /* Terminator */
284};
285
286static struct gpio_keys_button gpio_buttons[] = {
287 {
288 .code = BTN_EXTRA,
289 .gpio = 18,
290 .desc = "user",
291 .wakeup = 1,
292 },
293};
294
295static struct gpio_keys_platform_data gpio_key_info = {
296 .buttons = gpio_buttons,
297 .nbuttons = ARRAY_SIZE(gpio_buttons),
298};
299
300static struct platform_device keys_gpio = {
301 .name = "gpio-keys",
302 .id = -1,
303 .dev = {
304 .platform_data = &gpio_key_info,
305 },
306};
307
308static struct gpio_led gpio_leds[] = {
309 {
310 .name = "stalker:D8:usr0",
311 .default_trigger = "default-on",
312 .gpio = 126,
313 },
314 {
315 .name = "stalker:D9:usr1",
316 .default_trigger = "default-on",
317 .gpio = 127,
318 },
319 {
320 .name = "stalker:D3:mmc0",
321 .gpio = -EINVAL, /* gets replaced */
322 .active_low = true,
323 .default_trigger = "mmc0",
324 },
325 {
326 .name = "stalker:D4:heartbeat",
327 .gpio = -EINVAL, /* gets replaced */
328 .active_low = true,
329 .default_trigger = "heartbeat",
330 },
331};
332
333static struct gpio_led_platform_data gpio_led_info = {
334 .leds = gpio_leds,
335 .num_leds = ARRAY_SIZE(gpio_leds),
336};
337
338static struct platform_device leds_gpio = {
339 .name = "leds-gpio",
340 .id = -1,
341 .dev = {
342 .platform_data = &gpio_led_info,
343 },
344};
345
346static int
347omap3stalker_twl_gpio_setup(struct device *dev,
348 unsigned gpio, unsigned ngpio)
349{
350 /* gpio + 0 is "mmc0_cd" (input/IRQ) */
351 omap_mux_init_gpio(23, OMAP_PIN_INPUT);
352 mmc[0].gpio_cd = gpio + 0;
353 omap2_hsmmc_init(mmc);
354
355 /* link regulators to MMC adapters */
356 omap3stalker_vmmc1_supply.dev = mmc[0].dev;
357 omap3stalker_vsim_supply.dev = mmc[0].dev;
358
359 /*
360 * Most GPIOs are for USB OTG. Some are mostly sent to
361 * the P2 connector; notably LEDA for the LCD backlight.
362 */
363
364 /* TWL4030_GPIO_MAX + 0 == ledA, LCD Backlight control */
365 gpio_request(gpio + TWL4030_GPIO_MAX, "EN_LCD_BKL");
366 gpio_direction_output(gpio + TWL4030_GPIO_MAX, 0);
367
368 /* gpio + 7 == DVI Enable */
369 gpio_request(gpio + 7, "EN_DVI");
370 gpio_direction_output(gpio + 7, 0);
371
372 /* TWL4030_GPIO_MAX + 1 == ledB (out, mmc0) */
373 gpio_leds[2].gpio = gpio + TWL4030_GPIO_MAX + 1;
374 /* GPIO + 13 == ledsync (out, heartbeat) */
375 gpio_leds[3].gpio = gpio + 13;
376
377 platform_device_register(&leds_gpio);
378 return 0;
379}
380
381static struct twl4030_gpio_platform_data omap3stalker_gpio_data = {
382 .gpio_base = OMAP_MAX_GPIO_LINES,
383 .irq_base = TWL4030_GPIO_IRQ_BASE,
384 .irq_end = TWL4030_GPIO_IRQ_END,
385 .use_leds = true,
386 .setup = omap3stalker_twl_gpio_setup,
387};
388
389static struct twl4030_usb_data omap3stalker_usb_data = {
390 .usb_mode = T2_USB_MODE_ULPI,
391};
392
393static int board_keymap[] = {
394 KEY(0, 0, KEY_LEFT),
395 KEY(0, 1, KEY_DOWN),
396 KEY(0, 2, KEY_ENTER),
397 KEY(0, 3, KEY_M),
398
399 KEY(1, 0, KEY_RIGHT),
400 KEY(1, 1, KEY_UP),
401 KEY(1, 2, KEY_I),
402 KEY(1, 3, KEY_N),
403
404 KEY(2, 0, KEY_A),
405 KEY(2, 1, KEY_E),
406 KEY(2, 2, KEY_J),
407 KEY(2, 3, KEY_O),
408
409 KEY(3, 0, KEY_B),
410 KEY(3, 1, KEY_F),
411 KEY(3, 2, KEY_K),
412 KEY(3, 3, KEY_P)
413};
414
415static struct matrix_keymap_data board_map_data = {
416 .keymap = board_keymap,
417 .keymap_size = ARRAY_SIZE(board_keymap),
418};
419
420static struct twl4030_keypad_data omap3stalker_kp_data = {
421 .keymap_data = &board_map_data,
422 .rows = 4,
423 .cols = 4,
424 .rep = 1,
425};
426
427static struct twl4030_madc_platform_data omap3stalker_madc_data = {
428 .irq_line = 1,
429};
430
431static struct twl4030_codec_audio_data omap3stalker_audio_data = {
432 .audio_mclk = 26000000,
433};
434
435static struct twl4030_codec_data omap3stalker_codec_data = {
436 .audio_mclk = 26000000,
437 .audio = &omap3stalker_audio_data,
438};
439
440static struct regulator_consumer_supply omap3_stalker_vdda_dac_supply = {
441 .supply = "vdda_dac",
442 .dev = &omap3_stalker_dss_device.dev,
443};
444
445/* VDAC for DSS driving S-Video */
446static struct regulator_init_data omap3_stalker_vdac = {
447 .constraints = {
448 .min_uV = 1800000,
449 .max_uV = 1800000,
450 .apply_uV = true,
451 .valid_modes_mask = REGULATOR_MODE_NORMAL
452 | REGULATOR_MODE_STANDBY,
453 .valid_ops_mask = REGULATOR_CHANGE_MODE
454 | REGULATOR_CHANGE_STATUS,
455 },
456 .num_consumer_supplies = 1,
457 .consumer_supplies = &omap3_stalker_vdda_dac_supply,
458};
459
460/* VPLL2 for digital video outputs */
461static struct regulator_consumer_supply omap3_stalker_vpll2_supply = {
462 .supply = "vdds_dsi",
463 .dev = &omap3_stalker_lcd_device.dev,
464};
465
466static struct regulator_init_data omap3_stalker_vpll2 = {
467 .constraints = {
468 .name = "VDVI",
469 .min_uV = 1800000,
470 .max_uV = 1800000,
471 .apply_uV = true,
472 .valid_modes_mask = REGULATOR_MODE_NORMAL
473 | REGULATOR_MODE_STANDBY,
474 .valid_ops_mask = REGULATOR_CHANGE_MODE
475 | REGULATOR_CHANGE_STATUS,
476 },
477 .num_consumer_supplies = 1,
478 .consumer_supplies = &omap3_stalker_vpll2_supply,
479};
480
481static struct twl4030_platform_data omap3stalker_twldata = {
482 .irq_base = TWL4030_IRQ_BASE,
483 .irq_end = TWL4030_IRQ_END,
484
485 /* platform_data for children goes here */
486 .keypad = &omap3stalker_kp_data,
487 .madc = &omap3stalker_madc_data,
488 .usb = &omap3stalker_usb_data,
489 .gpio = &omap3stalker_gpio_data,
490 .codec = &omap3stalker_codec_data,
491 .vdac = &omap3_stalker_vdac,
492 .vpll2 = &omap3_stalker_vpll2,
493};
494
495static struct i2c_board_info __initdata omap3stalker_i2c_boardinfo[] = {
496 {
497 I2C_BOARD_INFO("twl4030", 0x48),
498 .flags = I2C_CLIENT_WAKE,
499 .irq = INT_34XX_SYS_NIRQ,
500 .platform_data = &omap3stalker_twldata,
501 },
502};
503
504static struct at24_platform_data fram_info = {
505 .byte_len = (64 * 1024) / 8,
506 .page_size = 8192,
507 .flags = AT24_FLAG_ADDR16 | AT24_FLAG_IRUGO,
508};
509
510static struct i2c_board_info __initdata omap3stalker_i2c_boardinfo3[] = {
511 {
512 I2C_BOARD_INFO("24c64", 0x50),
513 .flags = I2C_CLIENT_WAKE,
514 .platform_data = &fram_info,
515 },
516};
517
518static int __init omap3_stalker_i2c_init(void)
519{
520 /*
521 * REVISIT: These entries can be set in omap3evm_twl_data
522 * after a merge with MFD tree
523 */
524 omap3stalker_twldata.vmmc1 = &omap3stalker_vmmc1;
525 omap3stalker_twldata.vsim = &omap3stalker_vsim;
526
527 omap_register_i2c_bus(1, 2600, omap3stalker_i2c_boardinfo,
528 ARRAY_SIZE(omap3stalker_i2c_boardinfo));
529 omap_register_i2c_bus(2, 400, NULL, 0);
530 omap_register_i2c_bus(3, 400, omap3stalker_i2c_boardinfo3,
531 ARRAY_SIZE(omap3stalker_i2c_boardinfo3));
532 return 0;
533}
534
535#define OMAP3_STALKER_TS_GPIO 175
536static void ads7846_dev_init(void)
537{
538 if (gpio_request(OMAP3_STALKER_TS_GPIO, "ADS7846 pendown") < 0)
539 printk(KERN_ERR "can't get ads7846 pen down GPIO\n");
540
541 gpio_direction_input(OMAP3_STALKER_TS_GPIO);
Santosh Shilimkar99716b62010-06-09 13:53:05 +0300542 gpio_set_debounce(OMAP3_STALKER_TS_GPIO, 310);
Jason9cbc3492010-05-17 14:39:09 +0800543}
544
545static int ads7846_get_pendown_state(void)
546{
547 return !gpio_get_value(OMAP3_STALKER_TS_GPIO);
548}
549
550static struct ads7846_platform_data ads7846_config = {
551 .x_max = 0x0fff,
552 .y_max = 0x0fff,
553 .x_plate_ohms = 180,
554 .pressure_max = 255,
555 .debounce_max = 10,
556 .debounce_tol = 3,
557 .debounce_rep = 1,
558 .get_pendown_state = ads7846_get_pendown_state,
559 .keep_vref_on = 1,
560 .settle_delay_usecs = 150,
561};
562
563static struct omap2_mcspi_device_config ads7846_mcspi_config = {
564 .turbo_mode = 0,
565 .single_channel = 1, /* 0: slave, 1: master */
566};
567
568struct spi_board_info omap3stalker_spi_board_info[] = {
569 [0] = {
570 .modalias = "ads7846",
571 .bus_num = 1,
572 .chip_select = 0,
573 .max_speed_hz = 1500000,
574 .controller_data = &ads7846_mcspi_config,
575 .irq = OMAP_GPIO_IRQ(OMAP3_STALKER_TS_GPIO),
576 .platform_data = &ads7846_config,
577 },
578};
579
580static struct omap_board_config_kernel omap3_stalker_config[] __initdata = {
581};
582
583static void __init omap3_stalker_init_irq(void)
584{
585 omap_board_config = omap3_stalker_config;
586 omap_board_config_size = ARRAY_SIZE(omap3_stalker_config);
587 omap2_init_common_hw(mt46h32m32lf6_sdrc_params, NULL);
588 omap_init_irq();
589#ifdef CONFIG_OMAP_32K_TIMER
590 omap2_gp_clockevent_set_gptimer(12);
591#endif
592 omap_gpio_init();
593}
594
595static struct platform_device *omap3_stalker_devices[] __initdata = {
596 &omap3_stalker_dss_device,
597 &keys_gpio,
598};
599
600static struct ehci_hcd_omap_platform_data ehci_pdata __initconst = {
601 .port_mode[0] = EHCI_HCD_OMAP_MODE_UNKNOWN,
602 .port_mode[1] = EHCI_HCD_OMAP_MODE_PHY,
603 .port_mode[2] = EHCI_HCD_OMAP_MODE_UNKNOWN,
604
605 .phy_reset = true,
606 .reset_gpio_port[0] = -EINVAL,
607 .reset_gpio_port[1] = 21,
608 .reset_gpio_port[2] = -EINVAL,
609};
610
611#ifdef CONFIG_OMAP_MUX
612static struct omap_board_mux board_mux[] __initdata = {
613 OMAP3_MUX(SYS_NIRQ, OMAP_MUX_MODE0 | OMAP_PIN_INPUT_PULLUP |
614 OMAP_PIN_OFF_INPUT_PULLUP | OMAP_PIN_OFF_WAKEUPENABLE),
615 OMAP3_MUX(MCSPI1_CS1, OMAP_MUX_MODE4 | OMAP_PIN_INPUT_PULLUP |
616 OMAP_PIN_OFF_INPUT_PULLUP | OMAP_PIN_OFF_WAKEUPENABLE),
617 {.reg_offset = OMAP_MUX_TERMINATOR},
618};
619#else
620#define board_mux NULL
621#endif
622
623static struct omap_musb_board_data musb_board_data = {
624 .interface_type = MUSB_INTERFACE_ULPI,
625 .mode = MUSB_OTG,
626 .power = 100,
627};
628
629static void __init omap3_stalker_init(void)
630{
631 omap3_mux_init(board_mux, OMAP_PACKAGE_CUS);
632
633 omap3_stalker_i2c_init();
634
635 platform_add_devices(omap3_stalker_devices,
636 ARRAY_SIZE(omap3_stalker_devices));
637
638 spi_register_board_info(omap3stalker_spi_board_info,
639 ARRAY_SIZE(omap3stalker_spi_board_info));
640
641 omap_serial_init();
642 usb_musb_init(&musb_board_data);
643 usb_ehci_init(&ehci_pdata);
644 ads7846_dev_init();
645
646 omap_mux_init_gpio(21, OMAP_PIN_OUTPUT);
647 omap_mux_init_gpio(18, OMAP_PIN_INPUT_PULLUP);
648
649 omap3stalker_init_eth();
650 omap3_stalker_display_init();
651/* Ensure SDRC pins are mux'd for self-refresh */
652 omap_mux_init_signal("sdr_cke0", OMAP_PIN_OUTPUT);
653 omap_mux_init_signal("sdr_cke1", OMAP_PIN_OUTPUT);
654}
655
Jason9cbc3492010-05-17 14:39:09 +0800656MACHINE_START(SBC3530, "OMAP3 STALKER")
657 /* Maintainer: Jason Lam -lzg@ema-tech.com */
658 .phys_io = 0x48000000,
659 .io_pg_offst = ((0xfa000000) >> 18) & 0xfffc,
660 .boot_params = 0x80000100,
Mike Rapoport869fef42010-08-04 14:43:18 +0300661 .map_io = omap3_map_io,
Jason9cbc3492010-05-17 14:39:09 +0800662 .init_irq = omap3_stalker_init_irq,
663 .init_machine = omap3_stalker_init,
664 .timer = &omap_timer,
665MACHINE_END