-
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.
sh: Add gpio.h stubs for PFC definitions.
This adds the PFC definitions for SH-3, as well as consolidating the gpio.h mess within sh-sci. Stub in sh64, as it's the odd one out between the sh-sci architectures (sh, sh64, h8300) in this capacity. Signed-off by: Markus Brunner <super.firetwister@gmail.com> Signed-off by: Mark Jonas <toertel@gmail.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
- Loading branch information
Markus Brunner
authored and
Paul Mundt
committed
Sep 21, 2007
1 parent
f7f8634
commit dfc5ed2
Showing
3 changed files
with
93 additions
and
0 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,66 @@ | ||
/* | ||
* include/asm-sh/cpu-sh3/gpio.h | ||
* | ||
* Copyright (C) 2007 Markus Brunner, Mark Jonas | ||
* | ||
* Addresses for the Pin Function Controller | ||
* | ||
* This file is subject to the terms and conditions of the GNU General Public | ||
* License. See the file "COPYING" in the main directory of this archive | ||
* for more details. | ||
*/ | ||
#ifndef _CPU_SH3_GPIO_H | ||
#define _CPU_SH3_GPIO_H | ||
|
||
#if defined(CONFIG_CPU_SUBTYPE_SH7720) | ||
|
||
/* Control registers */ | ||
#define PORT_PACR 0xA4050100UL | ||
#define PORT_PBCR 0xA4050102UL | ||
#define PORT_PCCR 0xA4050104UL | ||
#define PORT_PDCR 0xA4050106UL | ||
#define PORT_PECR 0xA4050108UL | ||
#define PORT_PFCR 0xA405010AUL | ||
#define PORT_PGCR 0xA405010CUL | ||
#define PORT_PHCR 0xA405010EUL | ||
#define PORT_PJCR 0xA4050110UL | ||
#define PORT_PKCR 0xA4050112UL | ||
#define PORT_PLCR 0xA4050114UL | ||
#define PORT_PMCR 0xA4050116UL | ||
#define PORT_PPCR 0xA4050118UL | ||
#define PORT_PRCR 0xA405011AUL | ||
#define PORT_PSCR 0xA405011CUL | ||
#define PORT_PTCR 0xA405011EUL | ||
#define PORT_PUCR 0xA4050120UL | ||
#define PORT_PVCR 0xA4050122UL | ||
|
||
/* Data registers */ | ||
#define PORT_PADR 0xA4050140UL | ||
/* Address of PORT_PBDR is wrong in the datasheet, see errata 2005-09-21 */ | ||
#define PORT_PBDR 0xA4050142UL | ||
#define PORT_PCDR 0xA4050144UL | ||
#define PORT_PDDR 0xA4050146UL | ||
#define PORT_PEDR 0xA4050148UL | ||
#define PORT_PFDR 0xA405014AUL | ||
#define PORT_PGDR 0xA405014CUL | ||
#define PORT_PHDR 0xA405014EUL | ||
#define PORT_PJDR 0xA4050150UL | ||
#define PORT_PKDR 0xA4050152UL | ||
#define PORT_PLDR 0xA4050154UL | ||
#define PORT_PMDR 0xA4050156UL | ||
#define PORT_PPDR 0xA4050158UL | ||
#define PORT_PRDR 0xA405015AUL | ||
#define PORT_PSDR 0xA405015CUL | ||
#define PORT_PTDR 0xA405015EUL | ||
#define PORT_PUDR 0xA4050160UL | ||
#define PORT_PVDR 0xA4050162UL | ||
|
||
/* Pin Select Registers */ | ||
#define PORT_PSELA 0xA4050124UL | ||
#define PORT_PSELB 0xA4050126UL | ||
#define PORT_PSELC 0xA4050128UL | ||
#define PORT_PSELD 0xA405012AUL | ||
|
||
#endif | ||
|
||
#endif |
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,19 @@ | ||
/* | ||
* include/asm-sh/gpio.h | ||
* | ||
* Copyright (C) 2007 Markus Brunner, Mark Jonas | ||
* | ||
* Addresses for the Pin Function Controller | ||
* | ||
* This file is subject to the terms and conditions of the GNU General Public | ||
* License. See the file "COPYING" in the main directory of this archive | ||
* for more details. | ||
*/ | ||
#ifndef __ASM_SH_GPIO_H | ||
#define __ASM_SH_GPIO_H | ||
|
||
#if defined(CONFIG_CPU_SH3) | ||
#include <asm/cpu/gpio.h> | ||
#endif | ||
|
||
#endif /* __ASM_SH_GPIO_H */ |
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,8 @@ | ||
#ifndef __ASM_SH64_GPIO_H | ||
#define __ASM_SH64_GPIO_H | ||
|
||
/* | ||
* This is just a stub, so that every arch using sh-sci has a gpio.h | ||
*/ | ||
|
||
#endif /* __ASM_SH64_GPIO_H */ |