[ARM] 3447/1: [S3C2410] SMDK - default LEDs to off
[linux-2.6/openmoko-kernel/knife-kernel.git] / arch / arm / mach-s3c2410 / common-smdk.c
blobf903dc2ab29bccc4b1ed49fe1811c3bae6753d62
1 /* linux/arch/arm/mach-s3c2410/common-smdk.c
3 * Copyright (c) 2006 Simtec Electronics
4 * Ben Dooks <ben@simtec.co.uk>
6 * Common code for SMDK2410 and SMDK2440 boards
8 * http://www.fluff.org/ben/smdk2440/
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.
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>
23 #include <asm/mach/arch.h>
24 #include <asm/mach/map.h>
25 #include <asm/mach/irq.h>
27 #include <asm/hardware.h>
28 #include <asm/io.h>
29 #include <asm/irq.h>
30 #include <asm/mach-types.h>
32 #include <asm/arch/regs-gpio.h>
34 #include "pm.h"
36 void __init smdk_machine_init(void)
38 /* Configure the LEDs (even if we have no LED support)*/
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);
45 s3c2410_gpio_setpin(S3C2410_GPF4, 1);
46 s3c2410_gpio_setpin(S3C2410_GPF5, 1);
47 s3c2410_gpio_setpin(S3C2410_GPF6, 1);
48 s3c2410_gpio_setpin(S3C2410_GPF7, 1);
50 s3c2410_pm_init();