-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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>
- Loading branch information
Ben Dooks
authored and
Russell King
committed
Apr 1, 2006
1 parent
532bda5
commit d3f4c57
Showing
6 changed files
with
84 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* linux/arch/arm/mach-s3c2410/common-smdk.c | ||
* | ||
* Copyright (c) 2006 Simtec Electronics | ||
* Ben Dooks <ben@simtec.co.uk> | ||
* | ||
* Common code for SMDK2410 and SMDK2440 boards | ||
* | ||
* http://www.fluff.org/ben/smdk2440/ | ||
* | ||
* 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. | ||
*/ | ||
|
||
#include <linux/kernel.h> | ||
#include <linux/types.h> | ||
#include <linux/interrupt.h> | ||
#include <linux/list.h> | ||
#include <linux/timer.h> | ||
#include <linux/init.h> | ||
#include <linux/platform_device.h> | ||
|
||
#include <asm/mach/arch.h> | ||
#include <asm/mach/map.h> | ||
#include <asm/mach/irq.h> | ||
|
||
#include <asm/hardware.h> | ||
#include <asm/io.h> | ||
#include <asm/irq.h> | ||
#include <asm/mach-types.h> | ||
|
||
#include <asm/arch/regs-gpio.h> | ||
|
||
#include "pm.h" | ||
|
||
void __init smdk_machine_init(void) | ||
{ | ||
/* Configure the LEDs (even if we have no LED support)*/ | ||
|
||
s3c2410_gpio_cfgpin(S3C2410_GPF4, S3C2410_GPF4_OUTP); | ||
s3c2410_gpio_cfgpin(S3C2410_GPF5, S3C2410_GPF5_OUTP); | ||
s3c2410_gpio_cfgpin(S3C2410_GPF6, S3C2410_GPF6_OUTP); | ||
s3c2410_gpio_cfgpin(S3C2410_GPF7, S3C2410_GPF7_OUTP); | ||
|
||
s3c2410_gpio_setpin(S3C2410_GPF4, 0); | ||
s3c2410_gpio_setpin(S3C2410_GPF5, 0); | ||
s3c2410_gpio_setpin(S3C2410_GPF6, 0); | ||
s3c2410_gpio_setpin(S3C2410_GPF7, 0); | ||
|
||
s3c2410_pm_init(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* linux/arch/arm/mach-s3c2410/common-smdk.h | ||
* | ||
* Copyright (c) 2006 Simtec Electronics | ||
* Ben Dooks <ben@simtec.co.uk> | ||
* | ||
* Common code for SMDK2410 and SMDK2440 boards | ||
* | ||
* http://www.fluff.org/ben/smdk2440/ | ||
* | ||
* 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. | ||
*/ | ||
|
||
extern void smdk_machine_init(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters