Ben Dooks | d3f4c57 | 2006-04-01 18:33:42 +0100 | [diff] [blame] | 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 | |
Ben Dooks | 66ce229 | 2006-04-02 10:00:08 +0100 | [diff] [blame^] | 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); |
Ben Dooks | d3f4c57 | 2006-04-01 18:33:42 +0100 | [diff] [blame] | 49 | |
| 50 | s3c2410_pm_init(); |
| 51 | } |