aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c2410/common-smdk.c
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2006-04-01 12:33:42 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-04-01 12:33:42 -0500
commitd3f4c571b6e596f9d39c596426269006a309d3b8 (patch)
tree291d0f60e379f1fa1b26941c75bd9354f2e7a708 /arch/arm/mach-s3c2410/common-smdk.c
parent532bda5d9cd2f94a9e374765c23858c7d8641f66 (diff)
[ARM] 3440/1: [S3C2410] make SMDK2410 and SMDK2440 similarities common
Patch from Ben Dooks The SMDK2410 and SMDK2440 boards have a number of items in common, including the LEDs, Ethernet, PCMCIA. Make a common SMDK support file. Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-s3c2410/common-smdk.c')
-rw-r--r--arch/arm/mach-s3c2410/common-smdk.c51
1 files changed, 51 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c2410/common-smdk.c b/arch/arm/mach-s3c2410/common-smdk.c
new file mode 100644
index 000000000000..b054f8ff53f7
--- /dev/null
+++ b/arch/arm/mach-s3c2410/common-smdk.c
@@ -0,0 +1,51 @@
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
36void __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}