mach-n30.c 15.4 KB
Newer Older
1 2
/* Machine specific code for the Acer n30, Acer N35, Navman PiN 570,
 * Yakumo AlphaX and Airis NC05 PDAs.
L
Linus Torvalds 已提交
3 4 5 6
 *
 * Copyright (c) 2003-2005 Simtec Electronics
 *	Ben Dooks <ben@simtec.co.uk>
 *
7
 * Copyright (c) 2005-2008 Christer Weinigel <christer@weinigel.se>
L
Linus Torvalds 已提交
8 9 10 11 12 13 14
 *
 * There is a wiki with more information about the n30 port at
 * http://handhelds.org/moin/moin.cgi/AcerN30Documentation .
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
15
 */
L
Linus Torvalds 已提交
16 17 18

#include <linux/kernel.h>
#include <linux/types.h>
19

20
#include <linux/gpio_keys.h>
21
#include <linux/init.h>
22
#include <linux/gpio.h>
23
#include <linux/input.h>
24
#include <linux/interrupt.h>
25
#include <linux/platform_device.h>
26 27
#include <linux/serial_core.h>
#include <linux/timer.h>
28
#include <linux/io.h>
29
#include <linux/mmc/host.h>
L
Linus Torvalds 已提交
30

31
#include <mach/hardware.h>
L
Linus Torvalds 已提交
32 33 34
#include <asm/irq.h>
#include <asm/mach-types.h>

35
#include <mach/fb.h>
36
#include <linux/platform_data/leds-s3c24xx.h>
37 38
#include <mach/regs-gpio.h>
#include <mach/regs-lcd.h>
39 40 41 42 43

#include <asm/mach/arch.h>
#include <asm/mach/irq.h>
#include <asm/mach/map.h>

44
#include <linux/platform_data/i2c-s3c2410.h>
45
#include <plat/regs-serial.h>
L
Linus Torvalds 已提交
46

47
#include <plat/clock.h>
48 49
#include <plat/cpu.h>
#include <plat/devs.h>
50 51
#include <linux/platform_data/mmc-s3cmci.h>
#include <linux/platform_data/usb-s3c2410_udc.h>
L
Linus Torvalds 已提交
52

53 54
#include "common.h"

L
Linus Torvalds 已提交
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
static struct map_desc n30_iodesc[] __initdata = {
	/* nothing here yet */
};

static struct s3c2410_uartcfg n30_uartcfgs[] = {
	/* Normal serial port */
	[0] = {
		.hwport	     = 0,
		.flags	     = 0,
		.ucon	     = 0x2c5,
		.ulcon	     = 0x03,
		.ufcon	     = 0x51,
	},
	/* IR port */
	[1] = {
		.hwport	     = 1,
		.flags	     = 0,
		.uart_flags  = UPF_CONS_FLOW,
		.ucon	     = 0x2c5,
		.ulcon	     = 0x43,
		.ufcon	     = 0x51,
	},
77 78
	/* On the N30 the bluetooth controller is connected here.
	 * On the N35 and variants the GPS receiver is connected here. */
L
Linus Torvalds 已提交
79 80 81 82 83 84 85 86 87
	[2] = {
		.hwport	     = 2,
		.flags	     = 0,
		.ucon	     = 0x2c5,
		.ulcon	     = 0x03,
		.ufcon	     = 0x51,
	},
};

88
static struct s3c2410_udc_mach_info n30_udc_cfg __initdata = {
89
	.vbus_pin		= S3C2410_GPG(1),
90
	.vbus_pin_inverted	= 0,
91
	.pullup_pin		= S3C2410_GPB(3),
92 93
};

94 95
static struct gpio_keys_button n30_buttons[] = {
	{
96
		.gpio		= S3C2410_GPF(0),
97 98 99 100 101
		.code		= KEY_POWER,
		.desc		= "Power",
		.active_low	= 0,
	},
	{
102
		.gpio		= S3C2410_GPG(9),
103 104 105 106 107
		.code		= KEY_UP,
		.desc		= "Thumbwheel Up",
		.active_low	= 0,
	},
	{
108
		.gpio		= S3C2410_GPG(8),
109 110 111 112 113
		.code		= KEY_DOWN,
		.desc		= "Thumbwheel Down",
		.active_low	= 0,
	},
	{
114
		.gpio		= S3C2410_GPG(7),
115 116 117 118 119
		.code		= KEY_ENTER,
		.desc		= "Thumbwheel Press",
		.active_low	= 0,
	},
	{
120
		.gpio		= S3C2410_GPF(7),
121 122 123 124 125
		.code		= KEY_HOMEPAGE,
		.desc		= "Home",
		.active_low	= 0,
	},
	{
126
		.gpio		= S3C2410_GPF(6),
127 128 129 130 131
		.code		= KEY_CALENDAR,
		.desc		= "Calendar",
		.active_low	= 0,
	},
	{
132
		.gpio		= S3C2410_GPF(5),
133 134 135 136 137
		.code		= KEY_ADDRESSBOOK,
		.desc		= "Contacts",
		.active_low	= 0,
	},
	{
138
		.gpio		= S3C2410_GPF(4),
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157
		.code		= KEY_MAIL,
		.desc		= "Mail",
		.active_low	= 0,
	},
};

static struct gpio_keys_platform_data n30_button_data = {
	.buttons	= n30_buttons,
	.nbuttons	= ARRAY_SIZE(n30_buttons),
};

static struct platform_device n30_button_device = {
	.name		= "gpio-keys",
	.id		= -1,
	.dev		= {
		.platform_data	= &n30_button_data,
	}
};

158 159
static struct gpio_keys_button n35_buttons[] = {
	{
160
		.gpio		= S3C2410_GPF(0),
161
		.code		= KEY_POWER,
162
		.type		= EV_PWR,
163 164
		.desc		= "Power",
		.active_low	= 0,
165
		.wakeup		= 1,
166 167
	},
	{
168
		.gpio		= S3C2410_GPG(9),
169 170 171 172 173
		.code		= KEY_UP,
		.desc		= "Joystick Up",
		.active_low	= 0,
	},
	{
174
		.gpio		= S3C2410_GPG(8),
175 176 177 178 179
		.code		= KEY_DOWN,
		.desc		= "Joystick Down",
		.active_low	= 0,
	},
	{
180
		.gpio		= S3C2410_GPG(6),
181 182 183 184 185
		.code		= KEY_DOWN,
		.desc		= "Joystick Left",
		.active_low	= 0,
	},
	{
186
		.gpio		= S3C2410_GPG(5),
187 188 189 190 191
		.code		= KEY_DOWN,
		.desc		= "Joystick Right",
		.active_low	= 0,
	},
	{
192
		.gpio		= S3C2410_GPG(7),
193 194 195 196 197
		.code		= KEY_ENTER,
		.desc		= "Joystick Press",
		.active_low	= 0,
	},
	{
198
		.gpio		= S3C2410_GPF(7),
199 200 201 202 203
		.code		= KEY_HOMEPAGE,
		.desc		= "Home",
		.active_low	= 0,
	},
	{
204
		.gpio		= S3C2410_GPF(6),
205 206 207 208 209
		.code		= KEY_CALENDAR,
		.desc		= "Calendar",
		.active_low	= 0,
	},
	{
210
		.gpio		= S3C2410_GPF(5),
211 212 213 214 215
		.code		= KEY_ADDRESSBOOK,
		.desc		= "Contacts",
		.active_low	= 0,
	},
	{
216
		.gpio		= S3C2410_GPF(4),
217 218 219 220 221
		.code		= KEY_MAIL,
		.desc		= "Mail",
		.active_low	= 0,
	},
	{
222
		.gpio		= S3C2410_GPF(3),
223 224 225 226 227
		.code		= SW_RADIO,
		.desc		= "GPS Antenna",
		.active_low	= 0,
	},
	{
228
		.gpio		= S3C2410_GPG(2),
229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248
		.code		= SW_HEADPHONE_INSERT,
		.desc		= "Headphone",
		.active_low	= 0,
	},
};

static struct gpio_keys_platform_data n35_button_data = {
	.buttons	= n35_buttons,
	.nbuttons	= ARRAY_SIZE(n35_buttons),
};

static struct platform_device n35_button_device = {
	.name		= "gpio-keys",
	.id		= -1,
	.num_resources	= 0,
	.dev		= {
		.platform_data	= &n35_button_data,
	}
};

C
Christer Weinigel 已提交
249 250 251
/* This is the bluetooth LED on the device. */
static struct s3c24xx_led_platdata n30_blue_led_pdata = {
	.name		= "blue_led",
252
	.gpio		= S3C2410_GPG(6),
C
Christer Weinigel 已提交
253 254 255
	.def_trigger	= "",
};

L
Lucas De Marchi 已提交
256
/* This is the blue LED on the device. Originally used to indicate GPS activity
257 258 259 260 261 262 263
 * by flashing. */
static struct s3c24xx_led_platdata n35_blue_led_pdata = {
	.name		= "blue_led",
	.gpio		= S3C2410_GPD(8),
	.def_trigger	= "",
};

C
Christer Weinigel 已提交
264 265 266 267 268 269 270
/* This LED is driven by the battery microcontroller, and is blinking
 * red, blinking green or solid green when the battery is low,
 * charging or full respectively.  By driving GPD9 low, it's possible
 * to force the LED to blink red, so call that warning LED.  */
static struct s3c24xx_led_platdata n30_warning_led_pdata = {
	.name		= "warning_led",
	.flags          = S3C24XX_LEDF_ACTLOW,
271
	.gpio		= S3C2410_GPD(9),
C
Christer Weinigel 已提交
272 273 274
	.def_trigger	= "",
};

275 276 277 278 279 280 281
static struct s3c24xx_led_platdata n35_warning_led_pdata = {
	.name		= "warning_led",
	.flags          = S3C24XX_LEDF_ACTLOW | S3C24XX_LEDF_TRISTATE,
	.gpio		= S3C2410_GPD(9),
	.def_trigger	= "",
};

C
Christer Weinigel 已提交
282 283 284 285 286 287 288 289
static struct platform_device n30_blue_led = {
	.name		= "s3c24xx_led",
	.id		= 1,
	.dev		= {
		.platform_data	= &n30_blue_led_pdata,
	},
};

290 291 292 293 294 295 296 297
static struct platform_device n35_blue_led = {
	.name		= "s3c24xx_led",
	.id		= 1,
	.dev		= {
		.platform_data	= &n35_blue_led_pdata,
	},
};

C
Christer Weinigel 已提交
298 299 300 301 302 303 304 305
static struct platform_device n30_warning_led = {
	.name		= "s3c24xx_led",
	.id		= 2,
	.dev		= {
		.platform_data	= &n30_warning_led_pdata,
	},
};

306 307 308 309 310 311 312 313
static struct platform_device n35_warning_led = {
	.name		= "s3c24xx_led",
	.id		= 2,
	.dev		= {
		.platform_data	= &n35_warning_led_pdata,
	},
};

C
Christer Weinigel 已提交
314
static struct s3c2410fb_display n30_display __initdata = {
315 316 317 318 319 320 321 322 323 324 325 326 327 328
	.type		= S3C2410_LCDCON1_TFT,
	.width		= 240,
	.height		= 320,
	.pixclock	= 170000,

	.xres		= 240,
	.yres		= 320,
	.bpp		= 16,
	.left_margin	= 3,
	.right_margin	= 40,
	.hsync_len	= 40,
	.upper_margin	= 2,
	.lower_margin	= 3,
	.vsync_len	= 2,
C
Christer Weinigel 已提交
329 330 331 332 333

	.lcdcon5 = S3C2410_LCDCON5_INVVLINE | S3C2410_LCDCON5_INVVFRAME,
};

static struct s3c2410fb_mach_info n30_fb_info __initdata = {
334 335
	.displays	= &n30_display,
	.num_displays	= 1,
C
Christer Weinigel 已提交
336
	.default_display = 0,
337
	.lpcsel		= 0x06,
C
Christer Weinigel 已提交
338 339
};

340 341 342 343 344
static void n30_sdi_set_power(unsigned char power_mode, unsigned short vdd)
{
	switch (power_mode) {
	case MMC_POWER_ON:
	case MMC_POWER_UP:
345
		gpio_set_value(S3C2410_GPG(4), 1);
346 347 348
		break;
	case MMC_POWER_OFF:
	default:
349
		gpio_set_value(S3C2410_GPG(4), 0);
350 351 352 353
		break;
	}
}

354 355 356 357
static struct s3c24xx_mci_pdata n30_mci_cfg __initdata = {
	.gpio_detect	= S3C2410_GPF(1),
	.gpio_wprotect  = S3C2410_GPG(10),
	.ocr_avail	= MMC_VDD_32_33,
358
	.set_power	= n30_sdi_set_power,
359 360
};

L
Linus Torvalds 已提交
361 362 363
static struct platform_device *n30_devices[] __initdata = {
	&s3c_device_lcd,
	&s3c_device_wdt,
364
	&s3c_device_i2c0,
L
Linus Torvalds 已提交
365
	&s3c_device_iis,
366
	&s3c_device_ohci,
367
	&s3c_device_rtc,
L
Linus Torvalds 已提交
368
	&s3c_device_usbgadget,
369
	&s3c_device_sdi,
370
	&n30_button_device,
C
Christer Weinigel 已提交
371 372
	&n30_blue_led,
	&n30_warning_led,
L
Linus Torvalds 已提交
373 374
};

375 376 377
static struct platform_device *n35_devices[] __initdata = {
	&s3c_device_lcd,
	&s3c_device_wdt,
378
	&s3c_device_i2c0,
379
	&s3c_device_iis,
380
	&s3c_device_rtc,
381
	&s3c_device_usbgadget,
382
	&s3c_device_sdi,
383
	&n35_button_device,
384 385
	&n35_blue_led,
	&n35_warning_led,
386 387
};

388
static struct s3c2410_platform_i2c __initdata n30_i2ccfg = {
L
Linus Torvalds 已提交
389 390
	.flags		= 0,
	.slave_addr	= 0x10,
391
	.frequency	= 10*1000,
L
Linus Torvalds 已提交
392 393
};

394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531
/* Lots of hardcoded stuff, but it sets up the hardware in a useful
 * state so that we can boot Linux directly from flash. */
static void __init n30_hwinit(void)
{
	/* GPA0-11 special functions -- unknown what they do
	 * GPA12 N30 special function -- unknown what it does
	 *       N35/PiN output -- unknown what it does
	 *
	 * A12 is nGCS1 on the N30 and an output on the N35/PiN.  I
	 * don't think it does anything useful on the N30, so I ought
	 * to make it an output there too since it always driven to 0
	 * as far as I can tell. */
	if (machine_is_n30())
		__raw_writel(0x007fffff, S3C2410_GPACON);
	if (machine_is_n35())
		__raw_writel(0x007fefff, S3C2410_GPACON);
	__raw_writel(0x00000000, S3C2410_GPADAT);

	/* GPB0 TOUT0 backlight level
	 * GPB1 output 1=backlight on
	 * GPB2 output IrDA enable 0=transceiver enabled, 1=disabled
	 * GPB3 output USB D+ pull up 0=disabled, 1=enabled
	 * GPB4 N30 output -- unknown function
	 *      N30/PiN GPS control 0=GPS enabled, 1=GPS disabled
	 * GPB5 output -- unknown function
	 * GPB6 input -- unknown function
	 * GPB7 output -- unknown function
	 * GPB8 output -- probably LCD driver enable
	 * GPB9 output -- probably LCD VSYNC driver enable
	 * GPB10 output -- probably LCD HSYNC driver enable
	 */
	__raw_writel(0x00154556, S3C2410_GPBCON);
	__raw_writel(0x00000750, S3C2410_GPBDAT);
	__raw_writel(0x00000073, S3C2410_GPBUP);

	/* GPC0 input RS232 DCD/DSR/RI
	 * GPC1 LCD
	 * GPC2 output RS232 DTR?
	 * GPC3 input RS232 DCD/DSR/RI
	 * GPC4 LCD
	 * GPC5 output 0=NAND write enabled, 1=NAND write protect
	 * GPC6 input -- unknown function
	 * GPC7 input charger status 0=charger connected
	 *      this input can be triggered by power on the USB device
	 *      port too, but will go back to disconnected soon after.
	 * GPC8 N30/N35 output -- unknown function, always driven to 1
	 *      PiN input -- unknown function, always read as 1
	 *      Make it an input with a pull up for all models.
	 * GPC9-15 LCD
	 */
	__raw_writel(0xaaa80618, S3C2410_GPCCON);
	__raw_writel(0x0000014c, S3C2410_GPCDAT);
	__raw_writel(0x0000fef2, S3C2410_GPCUP);

	/* GPD0 input -- unknown function
	 * GPD1-D7 LCD
	 * GPD8 N30 output -- unknown function
	 *      N35/PiN output 1=GPS LED on
	 * GPD9 output 0=power led blinks red, 1=normal power led function
	 * GPD10 output -- unknown function
	 * GPD11-15 LCD drivers
	 */
	__raw_writel(0xaa95aaa4, S3C2410_GPDCON);
	__raw_writel(0x00000601, S3C2410_GPDDAT);
	__raw_writel(0x0000fbfe, S3C2410_GPDUP);

	/* GPE0-4 I2S audio bus
	 * GPE5-10 SD/MMC bus
	 * E11-13 outputs -- unknown function, probably power management
	 * E14-15 I2C bus connected to the battery controller
	 */
	__raw_writel(0xa56aaaaa, S3C2410_GPECON);
	__raw_writel(0x0000efc5, S3C2410_GPEDAT);
	__raw_writel(0x0000f81f, S3C2410_GPEUP);

	/* GPF0  input 0=power button pressed
	 * GPF1  input SD/MMC switch 0=card present
	 * GPF2  N30 1=reset button pressed (inverted compared to the rest)
	 *	 N35/PiN 0=reset button pressed
	 * GPF3  N30/PiN input -- unknown function
	 *       N35 input GPS antenna position, 0=antenna closed, 1=open
	 * GPF4  input 0=button 4 pressed
	 * GPF5  input 0=button 3 pressed
	 * GPF6  input 0=button 2 pressed
	 * GPF7  input 0=button 1 pressed
	 */
	__raw_writel(0x0000aaaa, S3C2410_GPFCON);
	__raw_writel(0x00000000, S3C2410_GPFDAT);
	__raw_writel(0x000000ff, S3C2410_GPFUP);

	/* GPG0  input RS232 DCD/DSR/RI
	 * GPG1  input 1=USB gadget port has power from a host
	 * GPG2  N30 input -- unknown function
	 *       N35/PiN input 0=headphones plugged in, 1=not plugged in
	 * GPG3  N30 output -- unknown function
	 *       N35/PiN input with unknown function
	 * GPG4  N30 output 0=MMC enabled, 1=MMC disabled
	 * GPG5  N30 output 0=BlueTooth chip disabled, 1=enabled
	 *       N35/PiN input joystick right
	 * GPG6  N30 output 0=blue led on, 1=off
	 *       N35/PiN input joystick left
	 * GPG7  input 0=thumbwheel pressed
	 * GPG8  input 0=thumbwheel down
	 * GPG9  input 0=thumbwheel up
	 * GPG10 input SD/MMC write protect switch
	 * GPG11 N30 input -- unknown function
	 *       N35 output 0=GPS antenna powered, 1=not powered
	 *       PiN output -- unknown function
	 * GPG12-15 touch screen functions
	 *
	 * The pullups differ between the models, so enable all
	 * pullups that are enabled on any of the models.
	 */
	if (machine_is_n30())
		__raw_writel(0xff0a956a, S3C2410_GPGCON);
	if (machine_is_n35())
		__raw_writel(0xff4aa92a, S3C2410_GPGCON);
	__raw_writel(0x0000e800, S3C2410_GPGDAT);
	__raw_writel(0x0000f86f, S3C2410_GPGUP);

	/* GPH0/1/2/3 RS232 serial port
	 * GPH4/5 IrDA serial port
	 * GPH6/7  N30 BlueTooth serial port
	 *         N35/PiN GPS receiver
	 * GPH8 input -- unknown function
	 * GPH9 CLKOUT0 HCLK -- unknown use
	 * GPH10 CLKOUT1 FCLK -- unknown use
	 *
	 * The pull ups for H6/H7 are enabled on N30 but not on the
	 * N35/PiN.  I suppose is useful for a budget model of the N30
	 * with no bluetooh.  It doesn't hurt to have the pull ups
	 * enabled on the N35, so leave them enabled for all models.
	 */
	__raw_writel(0x0028aaaa, S3C2410_GPHCON);
	__raw_writel(0x000005ef, S3C2410_GPHDAT);
	__raw_writel(0x0000063f, S3C2410_GPHUP);
}

532
static void __init n30_map_io(void)
L
Linus Torvalds 已提交
533 534
{
	s3c24xx_init_io(n30_iodesc, ARRAY_SIZE(n30_iodesc));
535
	n30_hwinit();
L
Linus Torvalds 已提交
536 537 538 539
	s3c24xx_init_clocks(0);
	s3c24xx_init_uarts(n30_uartcfgs, ARRAY_SIZE(n30_uartcfgs));
}

540
/* GPB3 is the line that controls the pull-up for the USB D+ line */
L
Linus Torvalds 已提交
541

542
static void __init n30_init(void)
L
Linus Torvalds 已提交
543
{
544 545
	WARN_ON(gpio_request(S3C2410_GPG(4), "mmc power"));

C
Christer Weinigel 已提交
546
	s3c24xx_fb_set_platdata(&n30_fb_info);
547
	s3c24xx_udc_set_platdata(&n30_udc_cfg);
548
	s3c24xx_mci_set_platdata(&n30_mci_cfg);
549
	s3c_i2c0_set_platdata(&n30_i2ccfg);
L
Linus Torvalds 已提交
550

551 552 553 554 555 556
	/* Turn off suspend on both USB ports, and switch the
	 * selectable USB port to USB device mode. */

	s3c2410_modify_misccr(S3C2410_MISCCR_USBHOST |
			      S3C2410_MISCCR_USBSUSPND0 |
			      S3C2410_MISCCR_USBSUSPND1, 0x0);
557

558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579
	if (machine_is_n30()) {
		/* Turn off suspend on both USB ports, and switch the
		 * selectable USB port to USB device mode. */
		s3c2410_modify_misccr(S3C2410_MISCCR_USBHOST |
				      S3C2410_MISCCR_USBSUSPND0 |
				      S3C2410_MISCCR_USBSUSPND1, 0x0);

		platform_add_devices(n30_devices, ARRAY_SIZE(n30_devices));
	}

	if (machine_is_n35()) {
		/* Turn off suspend and switch the selectable USB port
		 * to USB device mode.  Turn on suspend for the host
		 * port since it is not connected on the N35.
		 *
		 * Actually, the host port is available at some pads
		 * on the back of the device, so it would actually be
		 * possible to add a USB device inside the N35 if you
		 * are willing to do some hardware modifications. */
		s3c2410_modify_misccr(S3C2410_MISCCR_USBHOST |
				      S3C2410_MISCCR_USBSUSPND0 |
				      S3C2410_MISCCR_USBSUSPND1,
580
				      S3C2410_MISCCR_USBSUSPND0);
581 582 583

		platform_add_devices(n35_devices, ARRAY_SIZE(n35_devices));
	}
L
Linus Torvalds 已提交
584 585 586
}

MACHINE_START(N30, "Acer-N30")
587 588 589
	/* Maintainer: Christer Weinigel <christer@weinigel.se>,
				Ben Dooks <ben-linux@fluff.org>
	*/
590
	.atag_offset	= 0x100,
S
Stephen Warren 已提交
591
	.init_time	= s3c24xx_timer_init,
L
Linus Torvalds 已提交
592
	.init_machine	= n30_init,
593
	.init_irq	= s3c24xx_init_irq,
L
Linus Torvalds 已提交
594
	.map_io		= n30_map_io,
595
	.restart	= s3c2410_restart,
L
Linus Torvalds 已提交
596
MACHINE_END
597 598 599 600

MACHINE_START(N35, "Acer-N35")
	/* Maintainer: Christer Weinigel <christer@weinigel.se>
	*/
601
	.atag_offset	= 0x100,
S
Stephen Warren 已提交
602
	.init_time	= s3c24xx_timer_init,
603
	.init_machine	= n30_init,
604
	.init_irq	= s3c24xx_init_irq,
605
	.map_io		= n30_map_io,
606
	.restart	= s3c2410_restart,
607
MACHINE_END