-
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] S3C24XX: Add S3C_GPIO_END definition
Add the definition for S3C_GPIO_END to allow the PM code to build. This means moving the GPIO bank numbers to a separate file to allow the gpio and regs-gpio to include them. Including regs-gpio.h into gpio.h causes too many build problems and adding gpio.h would mean editing a large number of files. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
- Loading branch information
Ben Dooks
committed
Mar 8, 2009
1 parent
d2b07fe
commit 67c2add
Showing
3 changed files
with
27 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* arch/arm/mach-s3c2410/include/mach/gpio-nrs.h | ||
* | ||
* Copyright (c) 2008 Simtec Electronics | ||
* http://armlinux.simtec.co.uk/ | ||
* Ben Dooks <ben@simtec.co.uk> | ||
* | ||
* S3C2410 - GPIO bank numbering | ||
* | ||
* 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. | ||
*/ | ||
|
||
#define S3C2410_GPIONO(bank,offset) ((bank) + (offset)) | ||
|
||
#define S3C2410_GPIO_BANKA (32*0) | ||
#define S3C2410_GPIO_BANKB (32*1) | ||
#define S3C2410_GPIO_BANKC (32*2) | ||
#define S3C2410_GPIO_BANKD (32*3) | ||
#define S3C2410_GPIO_BANKE (32*4) | ||
#define S3C2410_GPIO_BANKF (32*5) | ||
#define S3C2410_GPIO_BANKG (32*6) | ||
#define S3C2410_GPIO_BANKH (32*7) |
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