Path: blob/master/arch/sh/include/cpu-sh3/cpu/gpio.h
17531 views
/*1* include/asm-sh/cpu-sh3/gpio.h2*3* Copyright (C) 2007 Markus Brunner, Mark Jonas4*5* Addresses for the Pin Function Controller6*7* This file is subject to the terms and conditions of the GNU General Public8* License. See the file "COPYING" in the main directory of this archive9* for more details.10*/11#ifndef _CPU_SH3_GPIO_H12#define _CPU_SH3_GPIO_H1314#if defined(CONFIG_CPU_SUBTYPE_SH7720) || \15defined(CONFIG_CPU_SUBTYPE_SH7721)1617/* Control registers */18#define PORT_PACR 0xA4050100UL19#define PORT_PBCR 0xA4050102UL20#define PORT_PCCR 0xA4050104UL21#define PORT_PDCR 0xA4050106UL22#define PORT_PECR 0xA4050108UL23#define PORT_PFCR 0xA405010AUL24#define PORT_PGCR 0xA405010CUL25#define PORT_PHCR 0xA405010EUL26#define PORT_PJCR 0xA4050110UL27#define PORT_PKCR 0xA4050112UL28#define PORT_PLCR 0xA4050114UL29#define PORT_PMCR 0xA4050116UL30#define PORT_PPCR 0xA4050118UL31#define PORT_PRCR 0xA405011AUL32#define PORT_PSCR 0xA405011CUL33#define PORT_PTCR 0xA405011EUL34#define PORT_PUCR 0xA4050120UL35#define PORT_PVCR 0xA4050122UL3637/* Data registers */38#define PORT_PADR 0xA4050140UL39/* Address of PORT_PBDR is wrong in the datasheet, see errata 2005-09-21 */40#define PORT_PBDR 0xA4050142UL41#define PORT_PCDR 0xA4050144UL42#define PORT_PDDR 0xA4050146UL43#define PORT_PEDR 0xA4050148UL44#define PORT_PFDR 0xA405014AUL45#define PORT_PGDR 0xA405014CUL46#define PORT_PHDR 0xA405014EUL47#define PORT_PJDR 0xA4050150UL48#define PORT_PKDR 0xA4050152UL49#define PORT_PLDR 0xA4050154UL50#define PORT_PMDR 0xA4050156UL51#define PORT_PPDR 0xA4050158UL52#define PORT_PRDR 0xA405015AUL53#define PORT_PSDR 0xA405015CUL54#define PORT_PTDR 0xA405015EUL55#define PORT_PUDR 0xA4050160UL56#define PORT_PVDR 0xA4050162UL5758/* Pin Select Registers */59#define PORT_PSELA 0xA4050124UL60#define PORT_PSELB 0xA4050126UL61#define PORT_PSELC 0xA4050128UL62#define PORT_PSELD 0xA405012AUL6364#elif defined(CONFIG_CPU_SUBTYPE_SH7709)6566/* Control registers */67#define PORT_PACR 0xa4000100UL68#define PORT_PBCR 0xa4000102UL69#define PORT_PCCR 0xa4000104UL70#define PORT_PFCR 0xa400010aUL7172/* Data registers */73#define PORT_PADR 0xa4000120UL74#define PORT_PBDR 0xa4000122UL75#define PORT_PCDR 0xa4000124UL76#define PORT_PFDR 0xa400012aUL7778#endif7980#endif818283