]> pilppa.org Git - linux-2.6-omap-h63xx.git/blob - arch/arm/mach-s3c2410/common-smdk.c
[ARM] 3440/1: [S3C2410] make SMDK2410 and SMDK2440 similarities common
[linux-2.6-omap-h63xx.git] / arch / arm / mach-s3c2410 / common-smdk.c
1 /* linux/arch/arm/mach-s3c2410/common-smdk.c
2  *
3  * Copyright (c) 2006 Simtec Electronics
4  *      Ben Dooks <ben@simtec.co.uk>
5  *
6  * Common code for SMDK2410 and SMDK2440 boards
7  *
8  * http://www.fluff.org/ben/smdk2440/
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/types.h>
17 #include <linux/interrupt.h>
18 #include <linux/list.h>
19 #include <linux/timer.h>
20 #include <linux/init.h>
21 #include <linux/platform_device.h>
22
23 #include <asm/mach/arch.h>
24 #include <asm/mach/map.h>
25 #include <asm/mach/irq.h>
26
27 #include <asm/hardware.h>
28 #include <asm/io.h>
29 #include <asm/irq.h>
30 #include <asm/mach-types.h>
31
32 #include <asm/arch/regs-gpio.h>
33
34 #include "pm.h"
35
36 void __init smdk_machine_init(void)
37 {
38         /* Configure the LEDs (even if we have no LED support)*/
39
40         s3c2410_gpio_cfgpin(S3C2410_GPF4, S3C2410_GPF4_OUTP);
41         s3c2410_gpio_cfgpin(S3C2410_GPF5, S3C2410_GPF5_OUTP);
42         s3c2410_gpio_cfgpin(S3C2410_GPF6, S3C2410_GPF6_OUTP);
43         s3c2410_gpio_cfgpin(S3C2410_GPF7, S3C2410_GPF7_OUTP);
44
45         s3c2410_gpio_setpin(S3C2410_GPF4, 0);
46         s3c2410_gpio_setpin(S3C2410_GPF5, 0);
47         s3c2410_gpio_setpin(S3C2410_GPF6, 0);
48         s3c2410_gpio_setpin(S3C2410_GPF7, 0);
49
50         s3c2410_pm_init();
51 }