kvm tools, setup: Create private directory
[linux-2.6/next.git] / arch / arm / mach-s3c64xx / mach-smdk6410.c
blob2c0353a809061115b046244719d9aeb3f71e6e95
1 /* linux/arch/arm/mach-s3c64xx/mach-smdk6410.c
3 * Copyright 2008 Openmoko, Inc.
4 * Copyright 2008 Simtec Electronics
5 * Ben Dooks <ben@simtec.co.uk>
6 * http://armlinux.simtec.co.uk/
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
14 #include <linux/kernel.h>
15 #include <linux/types.h>
16 #include <linux/interrupt.h>
17 #include <linux/list.h>
18 #include <linux/timer.h>
19 #include <linux/init.h>
20 #include <linux/input.h>
21 #include <linux/serial_core.h>
22 #include <linux/platform_device.h>
23 #include <linux/io.h>
24 #include <linux/i2c.h>
25 #include <linux/leds.h>
26 #include <linux/fb.h>
27 #include <linux/gpio.h>
28 #include <linux/delay.h>
29 #include <linux/smsc911x.h>
30 #include <linux/regulator/fixed.h>
31 #include <linux/regulator/machine.h>
32 #include <linux/pwm_backlight.h>
34 #ifdef CONFIG_SMDK6410_WM1190_EV1
35 #include <linux/mfd/wm8350/core.h>
36 #include <linux/mfd/wm8350/pmic.h>
37 #endif
39 #ifdef CONFIG_SMDK6410_WM1192_EV1
40 #include <linux/mfd/wm831x/core.h>
41 #include <linux/mfd/wm831x/pdata.h>
42 #endif
44 #include <video/platform_lcd.h>
46 #include <asm/mach/arch.h>
47 #include <asm/mach/map.h>
48 #include <asm/mach/irq.h>
50 #include <mach/hardware.h>
51 #include <mach/regs-fb.h>
52 #include <mach/map.h>
54 #include <asm/irq.h>
55 #include <asm/mach-types.h>
57 #include <plat/regs-serial.h>
58 #include <mach/regs-modem.h>
59 #include <mach/regs-gpio.h>
60 #include <mach/regs-sys.h>
61 #include <mach/regs-srom.h>
62 #include <plat/ata.h>
63 #include <plat/iic.h>
64 #include <plat/fb.h>
65 #include <plat/gpio-cfg.h>
67 #include <mach/s3c6410.h>
68 #include <plat/clock.h>
69 #include <plat/devs.h>
70 #include <plat/cpu.h>
71 #include <plat/adc.h>
72 #include <plat/ts.h>
73 #include <plat/keypad.h>
75 #define UCON S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK
76 #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB
77 #define UFCON S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE
79 static struct s3c2410_uartcfg smdk6410_uartcfgs[] __initdata = {
80 [0] = {
81 .hwport = 0,
82 .flags = 0,
83 .ucon = UCON,
84 .ulcon = ULCON,
85 .ufcon = UFCON,
87 [1] = {
88 .hwport = 1,
89 .flags = 0,
90 .ucon = UCON,
91 .ulcon = ULCON,
92 .ufcon = UFCON,
94 [2] = {
95 .hwport = 2,
96 .flags = 0,
97 .ucon = UCON,
98 .ulcon = ULCON,
99 .ufcon = UFCON,
101 [3] = {
102 .hwport = 3,
103 .flags = 0,
104 .ucon = UCON,
105 .ulcon = ULCON,
106 .ufcon = UFCON,
110 /* framebuffer and LCD setup. */
112 /* GPF15 = LCD backlight control
113 * GPF13 => Panel power
114 * GPN5 = LCD nRESET signal
115 * PWM_TOUT1 => backlight brightness
118 static void smdk6410_lcd_power_set(struct plat_lcd_data *pd,
119 unsigned int power)
121 if (power) {
122 gpio_direction_output(S3C64XX_GPF(13), 1);
124 /* fire nRESET on power up */
125 gpio_direction_output(S3C64XX_GPN(5), 0);
126 msleep(10);
127 gpio_direction_output(S3C64XX_GPN(5), 1);
128 msleep(1);
129 } else {
130 gpio_direction_output(S3C64XX_GPF(13), 0);
134 static struct plat_lcd_data smdk6410_lcd_power_data = {
135 .set_power = smdk6410_lcd_power_set,
138 static struct platform_device smdk6410_lcd_powerdev = {
139 .name = "platform-lcd",
140 .dev.parent = &s3c_device_fb.dev,
141 .dev.platform_data = &smdk6410_lcd_power_data,
144 static struct s3c_fb_pd_win smdk6410_fb_win0 = {
145 /* this is to ensure we use win0 */
146 .win_mode = {
147 .left_margin = 8,
148 .right_margin = 13,
149 .upper_margin = 7,
150 .lower_margin = 5,
151 .hsync_len = 3,
152 .vsync_len = 1,
153 .xres = 800,
154 .yres = 480,
156 .max_bpp = 32,
157 .default_bpp = 16,
158 .virtual_y = 480 * 2,
159 .virtual_x = 800,
162 /* 405566 clocks per frame => 60Hz refresh requires 24333960Hz clock */
163 static struct s3c_fb_platdata smdk6410_lcd_pdata __initdata = {
164 .setup_gpio = s3c64xx_fb_gpio_setup_24bpp,
165 .win[0] = &smdk6410_fb_win0,
166 .vidcon0 = VIDCON0_VIDOUT_RGB | VIDCON0_PNRMODE_RGB,
167 .vidcon1 = VIDCON1_INV_HSYNC | VIDCON1_INV_VSYNC,
171 * Configuring Ethernet on SMDK6410
173 * Both CS8900A and LAN9115 chips share one chip select mediated by CFG6.
174 * The constant address below corresponds to nCS1
176 * 1) Set CFGB2 p3 ON others off, no other CFGB selects "ethernet"
177 * 2) CFG6 needs to be switched to "LAN9115" side
180 static struct resource smdk6410_smsc911x_resources[] = {
181 [0] = {
182 .start = S3C64XX_PA_XM0CSN1,
183 .end = S3C64XX_PA_XM0CSN1 + SZ_64K - 1,
184 .flags = IORESOURCE_MEM,
186 [1] = {
187 .start = S3C_EINT(10),
188 .end = S3C_EINT(10),
189 .flags = IORESOURCE_IRQ | IRQ_TYPE_LEVEL_LOW,
193 static struct smsc911x_platform_config smdk6410_smsc911x_pdata = {
194 .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW,
195 .irq_type = SMSC911X_IRQ_TYPE_OPEN_DRAIN,
196 .flags = SMSC911X_USE_32BIT | SMSC911X_FORCE_INTERNAL_PHY,
197 .phy_interface = PHY_INTERFACE_MODE_MII,
201 static struct platform_device smdk6410_smsc911x = {
202 .name = "smsc911x",
203 .id = -1,
204 .num_resources = ARRAY_SIZE(smdk6410_smsc911x_resources),
205 .resource = &smdk6410_smsc911x_resources[0],
206 .dev = {
207 .platform_data = &smdk6410_smsc911x_pdata,
211 #ifdef CONFIG_REGULATOR
212 static struct regulator_consumer_supply smdk6410_b_pwr_5v_consumers[] = {
214 /* WM8580 */
215 .supply = "PVDD",
216 .dev_name = "0-001b",
219 /* WM8580 */
220 .supply = "AVDD",
221 .dev_name = "0-001b",
225 static struct regulator_init_data smdk6410_b_pwr_5v_data = {
226 .constraints = {
227 .always_on = 1,
229 .num_consumer_supplies = ARRAY_SIZE(smdk6410_b_pwr_5v_consumers),
230 .consumer_supplies = smdk6410_b_pwr_5v_consumers,
233 static struct fixed_voltage_config smdk6410_b_pwr_5v_pdata = {
234 .supply_name = "B_PWR_5V",
235 .microvolts = 5000000,
236 .init_data = &smdk6410_b_pwr_5v_data,
237 .gpio = -EINVAL,
240 static struct platform_device smdk6410_b_pwr_5v = {
241 .name = "reg-fixed-voltage",
242 .id = -1,
243 .dev = {
244 .platform_data = &smdk6410_b_pwr_5v_pdata,
247 #endif
249 static struct s3c_ide_platdata smdk6410_ide_pdata __initdata = {
250 .setup_gpio = s3c64xx_ide_setup_gpio,
253 static uint32_t smdk6410_keymap[] __initdata = {
254 /* KEY(row, col, keycode) */
255 KEY(0, 3, KEY_1), KEY(0, 4, KEY_2), KEY(0, 5, KEY_3),
256 KEY(0, 6, KEY_4), KEY(0, 7, KEY_5),
257 KEY(1, 3, KEY_A), KEY(1, 4, KEY_B), KEY(1, 5, KEY_C),
258 KEY(1, 6, KEY_D), KEY(1, 7, KEY_E)
261 static struct matrix_keymap_data smdk6410_keymap_data __initdata = {
262 .keymap = smdk6410_keymap,
263 .keymap_size = ARRAY_SIZE(smdk6410_keymap),
266 static struct samsung_keypad_platdata smdk6410_keypad_data __initdata = {
267 .keymap_data = &smdk6410_keymap_data,
268 .rows = 2,
269 .cols = 8,
272 static int smdk6410_backlight_init(struct device *dev)
274 int ret;
276 ret = gpio_request(S3C64XX_GPF(15), "Backlight");
277 if (ret) {
278 printk(KERN_ERR "failed to request GPF for PWM-OUT1\n");
279 return ret;
282 /* Configure GPIO pin with S3C64XX_GPF15_PWM_TOUT1 */
283 s3c_gpio_cfgpin(S3C64XX_GPF(15), S3C_GPIO_SFN(2));
285 return 0;
288 static void smdk6410_backlight_exit(struct device *dev)
290 s3c_gpio_cfgpin(S3C64XX_GPF(15), S3C_GPIO_OUTPUT);
291 gpio_free(S3C64XX_GPF(15));
294 static struct platform_pwm_backlight_data smdk6410_backlight_data = {
295 .pwm_id = 1,
296 .max_brightness = 255,
297 .dft_brightness = 255,
298 .pwm_period_ns = 78770,
299 .init = smdk6410_backlight_init,
300 .exit = smdk6410_backlight_exit,
303 static struct platform_device smdk6410_backlight_device = {
304 .name = "pwm-backlight",
305 .dev = {
306 .parent = &s3c_device_timer[1].dev,
307 .platform_data = &smdk6410_backlight_data,
311 static struct map_desc smdk6410_iodesc[] = {};
313 static struct platform_device *smdk6410_devices[] __initdata = {
314 #ifdef CONFIG_SMDK6410_SD_CH0
315 &s3c_device_hsmmc0,
316 #endif
317 #ifdef CONFIG_SMDK6410_SD_CH1
318 &s3c_device_hsmmc1,
319 #endif
320 &s3c_device_i2c0,
321 &s3c_device_i2c1,
322 &s3c_device_fb,
323 &s3c_device_ohci,
324 &s3c_device_usb_hsotg,
325 &samsung_asoc_dma,
326 &s3c64xx_device_iisv4,
327 &samsung_device_keypad,
329 #ifdef CONFIG_REGULATOR
330 &smdk6410_b_pwr_5v,
331 #endif
332 &smdk6410_lcd_powerdev,
334 &smdk6410_smsc911x,
335 &s3c_device_adc,
336 &s3c_device_cfcon,
337 &s3c_device_rtc,
338 &s3c_device_ts,
339 &s3c_device_wdt,
340 &s3c_device_timer[1],
341 &smdk6410_backlight_device,
344 #ifdef CONFIG_REGULATOR
345 /* ARM core */
346 static struct regulator_consumer_supply smdk6410_vddarm_consumers[] = {
348 .supply = "vddarm",
352 /* VDDARM, BUCK1 on J5 */
353 static struct regulator_init_data smdk6410_vddarm = {
354 .constraints = {
355 .name = "PVDD_ARM",
356 .min_uV = 1000000,
357 .max_uV = 1300000,
358 .always_on = 1,
359 .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
361 .num_consumer_supplies = ARRAY_SIZE(smdk6410_vddarm_consumers),
362 .consumer_supplies = smdk6410_vddarm_consumers,
365 /* VDD_INT, BUCK2 on J5 */
366 static struct regulator_init_data smdk6410_vddint = {
367 .constraints = {
368 .name = "PVDD_INT",
369 .min_uV = 1000000,
370 .max_uV = 1200000,
371 .always_on = 1,
372 .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE,
376 /* VDD_HI, LDO3 on J5 */
377 static struct regulator_init_data smdk6410_vddhi = {
378 .constraints = {
379 .name = "PVDD_HI",
380 .always_on = 1,
384 /* VDD_PLL, LDO2 on J5 */
385 static struct regulator_init_data smdk6410_vddpll = {
386 .constraints = {
387 .name = "PVDD_PLL",
388 .always_on = 1,
392 /* VDD_UH_MMC, LDO5 on J5 */
393 static struct regulator_init_data smdk6410_vdduh_mmc = {
394 .constraints = {
395 .name = "PVDD_UH+PVDD_MMC",
396 .always_on = 1,
400 /* VCCM3BT, LDO8 on J5 */
401 static struct regulator_init_data smdk6410_vccmc3bt = {
402 .constraints = {
403 .name = "PVCCM3BT",
404 .always_on = 1,
408 /* VCCM2MTV, LDO11 on J5 */
409 static struct regulator_init_data smdk6410_vccm2mtv = {
410 .constraints = {
411 .name = "PVCCM2MTV",
412 .always_on = 1,
416 /* VDD_LCD, LDO12 on J5 */
417 static struct regulator_init_data smdk6410_vddlcd = {
418 .constraints = {
419 .name = "PVDD_LCD",
420 .always_on = 1,
424 /* VDD_OTGI, LDO9 on J5 */
425 static struct regulator_init_data smdk6410_vddotgi = {
426 .constraints = {
427 .name = "PVDD_OTGI",
428 .always_on = 1,
432 /* VDD_OTG, LDO14 on J5 */
433 static struct regulator_init_data smdk6410_vddotg = {
434 .constraints = {
435 .name = "PVDD_OTG",
436 .always_on = 1,
440 /* VDD_ALIVE, LDO15 on J5 */
441 static struct regulator_init_data smdk6410_vddalive = {
442 .constraints = {
443 .name = "PVDD_ALIVE",
444 .always_on = 1,
448 /* VDD_AUDIO, VLDO_AUDIO on J5 */
449 static struct regulator_init_data smdk6410_vddaudio = {
450 .constraints = {
451 .name = "PVDD_AUDIO",
452 .always_on = 1,
455 #endif
457 #ifdef CONFIG_SMDK6410_WM1190_EV1
458 /* S3C64xx internal logic & PLL */
459 static struct regulator_init_data wm8350_dcdc1_data = {
460 .constraints = {
461 .name = "PVDD_INT+PVDD_PLL",
462 .min_uV = 1200000,
463 .max_uV = 1200000,
464 .always_on = 1,
465 .apply_uV = 1,
469 /* Memory */
470 static struct regulator_init_data wm8350_dcdc3_data = {
471 .constraints = {
472 .name = "PVDD_MEM",
473 .min_uV = 1800000,
474 .max_uV = 1800000,
475 .always_on = 1,
476 .state_mem = {
477 .uV = 1800000,
478 .mode = REGULATOR_MODE_NORMAL,
479 .enabled = 1,
481 .initial_state = PM_SUSPEND_MEM,
485 /* USB, EXT, PCM, ADC/DAC, USB, MMC */
486 static struct regulator_consumer_supply wm8350_dcdc4_consumers[] = {
488 /* WM8580 */
489 .supply = "DVDD",
490 .dev_name = "0-001b",
494 static struct regulator_init_data wm8350_dcdc4_data = {
495 .constraints = {
496 .name = "PVDD_HI+PVDD_EXT+PVDD_SYS+PVCCM2MTV",
497 .min_uV = 3000000,
498 .max_uV = 3000000,
499 .always_on = 1,
501 .num_consumer_supplies = ARRAY_SIZE(wm8350_dcdc4_consumers),
502 .consumer_supplies = wm8350_dcdc4_consumers,
505 /* OTGi/1190-EV1 HPVDD & AVDD */
506 static struct regulator_init_data wm8350_ldo4_data = {
507 .constraints = {
508 .name = "PVDD_OTGI+HPVDD+AVDD",
509 .min_uV = 1200000,
510 .max_uV = 1200000,
511 .apply_uV = 1,
512 .always_on = 1,
516 static struct {
517 int regulator;
518 struct regulator_init_data *initdata;
519 } wm1190_regulators[] = {
520 { WM8350_DCDC_1, &wm8350_dcdc1_data },
521 { WM8350_DCDC_3, &wm8350_dcdc3_data },
522 { WM8350_DCDC_4, &wm8350_dcdc4_data },
523 { WM8350_DCDC_6, &smdk6410_vddarm },
524 { WM8350_LDO_1, &smdk6410_vddalive },
525 { WM8350_LDO_2, &smdk6410_vddotg },
526 { WM8350_LDO_3, &smdk6410_vddlcd },
527 { WM8350_LDO_4, &wm8350_ldo4_data },
530 static int __init smdk6410_wm8350_init(struct wm8350 *wm8350)
532 int i;
534 /* Configure the IRQ line */
535 s3c_gpio_setpull(S3C64XX_GPN(12), S3C_GPIO_PULL_UP);
537 /* Instantiate the regulators */
538 for (i = 0; i < ARRAY_SIZE(wm1190_regulators); i++)
539 wm8350_register_regulator(wm8350,
540 wm1190_regulators[i].regulator,
541 wm1190_regulators[i].initdata);
543 return 0;
546 static struct wm8350_platform_data __initdata smdk6410_wm8350_pdata = {
547 .init = smdk6410_wm8350_init,
548 .irq_high = 1,
549 .irq_base = IRQ_BOARD_START,
551 #endif
553 #ifdef CONFIG_SMDK6410_WM1192_EV1
554 static struct gpio_led wm1192_pmic_leds[] = {
556 .name = "PMIC:red:power",
557 .gpio = GPIO_BOARD_START + 3,
558 .default_state = LEDS_GPIO_DEFSTATE_ON,
562 static struct gpio_led_platform_data wm1192_pmic_led = {
563 .num_leds = ARRAY_SIZE(wm1192_pmic_leds),
564 .leds = wm1192_pmic_leds,
567 static struct platform_device wm1192_pmic_led_dev = {
568 .name = "leds-gpio",
569 .id = -1,
570 .dev = {
571 .platform_data = &wm1192_pmic_led,
575 static int wm1192_pre_init(struct wm831x *wm831x)
577 int ret;
579 /* Configure the IRQ line */
580 s3c_gpio_setpull(S3C64XX_GPN(12), S3C_GPIO_PULL_UP);
582 ret = platform_device_register(&wm1192_pmic_led_dev);
583 if (ret != 0)
584 dev_err(wm831x->dev, "Failed to add PMIC LED: %d\n", ret);
586 return 0;
589 static struct wm831x_backlight_pdata wm1192_backlight_pdata = {
590 .isink = 1,
591 .max_uA = 27554,
594 static struct regulator_init_data wm1192_dcdc3 = {
595 .constraints = {
596 .name = "PVDD_MEM+PVDD_GPS",
597 .always_on = 1,
601 static struct regulator_consumer_supply wm1192_ldo1_consumers[] = {
602 { .supply = "DVDD", .dev_name = "0-001b", }, /* WM8580 */
605 static struct regulator_init_data wm1192_ldo1 = {
606 .constraints = {
607 .name = "PVDD_LCD+PVDD_EXT",
608 .always_on = 1,
610 .consumer_supplies = wm1192_ldo1_consumers,
611 .num_consumer_supplies = ARRAY_SIZE(wm1192_ldo1_consumers),
614 static struct wm831x_status_pdata wm1192_led7_pdata = {
615 .name = "LED7:green:",
618 static struct wm831x_status_pdata wm1192_led8_pdata = {
619 .name = "LED8:green:",
622 static struct wm831x_pdata smdk6410_wm1192_pdata = {
623 .pre_init = wm1192_pre_init,
624 .irq_base = IRQ_BOARD_START,
626 .backlight = &wm1192_backlight_pdata,
627 .dcdc = {
628 &smdk6410_vddarm, /* DCDC1 */
629 &smdk6410_vddint, /* DCDC2 */
630 &wm1192_dcdc3,
632 .gpio_base = GPIO_BOARD_START,
633 .ldo = {
634 &wm1192_ldo1, /* LDO1 */
635 &smdk6410_vdduh_mmc, /* LDO2 */
636 NULL, /* LDO3 NC */
637 &smdk6410_vddotgi, /* LDO4 */
638 &smdk6410_vddotg, /* LDO5 */
639 &smdk6410_vddhi, /* LDO6 */
640 &smdk6410_vddaudio, /* LDO7 */
641 &smdk6410_vccm2mtv, /* LDO8 */
642 &smdk6410_vddpll, /* LDO9 */
643 &smdk6410_vccmc3bt, /* LDO10 */
644 &smdk6410_vddalive, /* LDO11 */
646 .status = {
647 &wm1192_led7_pdata,
648 &wm1192_led8_pdata,
651 #endif
653 static struct i2c_board_info i2c_devs0[] __initdata = {
654 { I2C_BOARD_INFO("24c08", 0x50), },
655 { I2C_BOARD_INFO("wm8580", 0x1b), },
657 #ifdef CONFIG_SMDK6410_WM1192_EV1
658 { I2C_BOARD_INFO("wm8312", 0x34),
659 .platform_data = &smdk6410_wm1192_pdata,
660 .irq = S3C_EINT(12),
662 #endif
664 #ifdef CONFIG_SMDK6410_WM1190_EV1
665 { I2C_BOARD_INFO("wm8350", 0x1a),
666 .platform_data = &smdk6410_wm8350_pdata,
667 .irq = S3C_EINT(12),
669 #endif
672 static struct i2c_board_info i2c_devs1[] __initdata = {
673 { I2C_BOARD_INFO("24c128", 0x57), }, /* Samsung S524AD0XD1 */
676 static struct s3c2410_ts_mach_info s3c_ts_platform __initdata = {
677 .delay = 10000,
678 .presc = 49,
679 .oversampling_shift = 2,
682 static void __init smdk6410_map_io(void)
684 u32 tmp;
686 s3c64xx_init_io(smdk6410_iodesc, ARRAY_SIZE(smdk6410_iodesc));
687 s3c24xx_init_clocks(12000000);
688 s3c24xx_init_uarts(smdk6410_uartcfgs, ARRAY_SIZE(smdk6410_uartcfgs));
690 /* set the LCD type */
692 tmp = __raw_readl(S3C64XX_SPCON);
693 tmp &= ~S3C64XX_SPCON_LCD_SEL_MASK;
694 tmp |= S3C64XX_SPCON_LCD_SEL_RGB;
695 __raw_writel(tmp, S3C64XX_SPCON);
697 /* remove the lcd bypass */
698 tmp = __raw_readl(S3C64XX_MODEM_MIFPCON);
699 tmp &= ~MIFPCON_LCD_BYPASS;
700 __raw_writel(tmp, S3C64XX_MODEM_MIFPCON);
703 static void __init smdk6410_machine_init(void)
705 u32 cs1;
707 s3c_i2c0_set_platdata(NULL);
708 s3c_i2c1_set_platdata(NULL);
709 s3c_fb_set_platdata(&smdk6410_lcd_pdata);
711 samsung_keypad_set_platdata(&smdk6410_keypad_data);
713 s3c24xx_ts_set_platdata(&s3c_ts_platform);
715 /* configure nCS1 width to 16 bits */
717 cs1 = __raw_readl(S3C64XX_SROM_BW) &
718 ~(S3C64XX_SROM_BW__CS_MASK << S3C64XX_SROM_BW__NCS1__SHIFT);
719 cs1 |= ((1 << S3C64XX_SROM_BW__DATAWIDTH__SHIFT) |
720 (1 << S3C64XX_SROM_BW__WAITENABLE__SHIFT) |
721 (1 << S3C64XX_SROM_BW__BYTEENABLE__SHIFT)) <<
722 S3C64XX_SROM_BW__NCS1__SHIFT;
723 __raw_writel(cs1, S3C64XX_SROM_BW);
725 /* set timing for nCS1 suitable for ethernet chip */
727 __raw_writel((0 << S3C64XX_SROM_BCX__PMC__SHIFT) |
728 (6 << S3C64XX_SROM_BCX__TACP__SHIFT) |
729 (4 << S3C64XX_SROM_BCX__TCAH__SHIFT) |
730 (1 << S3C64XX_SROM_BCX__TCOH__SHIFT) |
731 (0xe << S3C64XX_SROM_BCX__TACC__SHIFT) |
732 (4 << S3C64XX_SROM_BCX__TCOS__SHIFT) |
733 (0 << S3C64XX_SROM_BCX__TACS__SHIFT), S3C64XX_SROM_BC1);
735 gpio_request(S3C64XX_GPN(5), "LCD power");
736 gpio_request(S3C64XX_GPF(13), "LCD power");
738 i2c_register_board_info(0, i2c_devs0, ARRAY_SIZE(i2c_devs0));
739 i2c_register_board_info(1, i2c_devs1, ARRAY_SIZE(i2c_devs1));
741 s3c_ide_set_platdata(&smdk6410_ide_pdata);
743 platform_add_devices(smdk6410_devices, ARRAY_SIZE(smdk6410_devices));
746 MACHINE_START(SMDK6410, "SMDK6410")
747 /* Maintainer: Ben Dooks <ben-linux@fluff.org> */
748 .boot_params = S3C64XX_PA_SDRAM + 0x100,
750 .init_irq = s3c6410_init_irq,
751 .map_io = smdk6410_map_io,
752 .init_machine = smdk6410_machine_init,
753 .timer = &s3c24xx_timer,
754 MACHINE_END