1*4882a593Smuzhiyun /* 2*4882a593Smuzhiyun * linux/include/asm-arm/arch-pxa/hardware.h 3*4882a593Smuzhiyun * 4*4882a593Smuzhiyun * Author: Nicolas Pitre 5*4882a593Smuzhiyun * Created: Jun 15, 2001 6*4882a593Smuzhiyun * Copyright: MontaVista Software Inc. 7*4882a593Smuzhiyun * 8*4882a593Smuzhiyun * This program is free software; you can redistribute it and/or modify 9*4882a593Smuzhiyun * it under the terms of the GNU General Public License version 2 as 10*4882a593Smuzhiyun * published by the Free Software Foundation. 11*4882a593Smuzhiyun * 12*4882a593Smuzhiyun * Note: This file was taken from linux-2.4.19-rmk4-pxa1 13*4882a593Smuzhiyun * 14*4882a593Smuzhiyun * - 2003/01/20 implementation specifics activated 15*4882a593Smuzhiyun * Robert Schwebel <r.schwebel@pengutronix.de> 16*4882a593Smuzhiyun */ 17*4882a593Smuzhiyun 18*4882a593Smuzhiyun #ifndef __ASM_ARCH_HARDWARE_H 19*4882a593Smuzhiyun #define __ASM_ARCH_HARDWARE_H 20*4882a593Smuzhiyun 21*4882a593Smuzhiyun #include <asm/mach-types.h> 22*4882a593Smuzhiyun 23*4882a593Smuzhiyun /* 24*4882a593Smuzhiyun * Define CONFIG_CPU_MONAHANS in case some CPU of the PXA3xx family is selected. 25*4882a593Smuzhiyun * PXA300/310/320 all have distinct register mappings in some cases, that's why 26*4882a593Smuzhiyun * the exact CPU has to be selected. CONFIG_CPU_MONAHANS is a helper for common 27*4882a593Smuzhiyun * drivers and compatibility glue with old source then. 28*4882a593Smuzhiyun */ 29*4882a593Smuzhiyun #ifndef CONFIG_CPU_MONAHANS 30*4882a593Smuzhiyun #if defined(CONFIG_CPU_PXA300) || \ 31*4882a593Smuzhiyun defined(CONFIG_CPU_PXA310) || \ 32*4882a593Smuzhiyun defined(CONFIG_CPU_PXA320) 33*4882a593Smuzhiyun #define CONFIG_CPU_MONAHANS 34*4882a593Smuzhiyun #endif 35*4882a593Smuzhiyun #endif 36*4882a593Smuzhiyun 37*4882a593Smuzhiyun /* 38*4882a593Smuzhiyun * These are statically mapped PCMCIA IO space for designs using it as a 39*4882a593Smuzhiyun * generic IO bus, typically with ISA parts, hardwired IDE interfaces, etc. 40*4882a593Smuzhiyun * The actual PCMCIA code is mapping required IO region at run time. 41*4882a593Smuzhiyun */ 42*4882a593Smuzhiyun #define PCMCIA_IO_0_BASE 0xf6000000 43*4882a593Smuzhiyun #define PCMCIA_IO_1_BASE 0xf7000000 44*4882a593Smuzhiyun 45*4882a593Smuzhiyun 46*4882a593Smuzhiyun /* 47*4882a593Smuzhiyun * We requires absolute addresses. 48*4882a593Smuzhiyun */ 49*4882a593Smuzhiyun #define PCIO_BASE 0 50*4882a593Smuzhiyun 51*4882a593Smuzhiyun /* 52*4882a593Smuzhiyun * Workarounds for at least 2 errata so far require this. 53*4882a593Smuzhiyun * The mapping is set in mach-pxa/generic.c. 54*4882a593Smuzhiyun */ 55*4882a593Smuzhiyun #define UNCACHED_PHYS_0 0xff000000 56*4882a593Smuzhiyun #define UNCACHED_ADDR UNCACHED_PHYS_0 57*4882a593Smuzhiyun 58*4882a593Smuzhiyun /* 59*4882a593Smuzhiyun * Intel PXA internal I/O mappings: 60*4882a593Smuzhiyun * 61*4882a593Smuzhiyun * 0x40000000 - 0x41ffffff <--> 0xf8000000 - 0xf9ffffff 62*4882a593Smuzhiyun * 0x44000000 - 0x45ffffff <--> 0xfa000000 - 0xfbffffff 63*4882a593Smuzhiyun * 0x48000000 - 0x49ffffff <--> 0xfc000000 - 0xfdffffff 64*4882a593Smuzhiyun */ 65*4882a593Smuzhiyun 66*4882a593Smuzhiyun #include "pxa-regs.h" 67*4882a593Smuzhiyun 68*4882a593Smuzhiyun #ifndef __ASSEMBLY__ 69*4882a593Smuzhiyun 70*4882a593Smuzhiyun /* 71*4882a593Smuzhiyun * GPIO edge detection for IRQs: 72*4882a593Smuzhiyun * IRQs are generated on Falling-Edge, Rising-Edge, or both. 73*4882a593Smuzhiyun * This must be called *before* the corresponding IRQ is registered. 74*4882a593Smuzhiyun * Use this instead of directly setting GRER/GFER. 75*4882a593Smuzhiyun */ 76*4882a593Smuzhiyun #define GPIO_FALLING_EDGE 1 77*4882a593Smuzhiyun #define GPIO_RISING_EDGE 2 78*4882a593Smuzhiyun #define GPIO_BOTH_EDGES 3 79*4882a593Smuzhiyun 80*4882a593Smuzhiyun #endif 81*4882a593Smuzhiyun 82*4882a593Smuzhiyun 83*4882a593Smuzhiyun /* 84*4882a593Smuzhiyun * Implementation specifics 85*4882a593Smuzhiyun */ 86*4882a593Smuzhiyun 87*4882a593Smuzhiyun #ifdef CONFIG_ARCH_LUBBOCK 88*4882a593Smuzhiyun #include "lubbock.h" 89*4882a593Smuzhiyun #endif 90*4882a593Smuzhiyun 91*4882a593Smuzhiyun #ifdef CONFIG_ARCH_PXA_IDP 92*4882a593Smuzhiyun #include "idp.h" 93*4882a593Smuzhiyun #endif 94*4882a593Smuzhiyun 95*4882a593Smuzhiyun #ifdef CONFIG_ARCH_PXA_CERF 96*4882a593Smuzhiyun #include "cerf.h" 97*4882a593Smuzhiyun #endif 98*4882a593Smuzhiyun 99*4882a593Smuzhiyun #ifdef CONFIG_ARCH_CSB226 100*4882a593Smuzhiyun #include "csb226.h" 101*4882a593Smuzhiyun #endif 102*4882a593Smuzhiyun 103*4882a593Smuzhiyun #ifdef CONFIG_ARCH_INNOKOM 104*4882a593Smuzhiyun #include "innokom.h" 105*4882a593Smuzhiyun #endif 106*4882a593Smuzhiyun 107*4882a593Smuzhiyun #ifdef CONFIG_ARCH_PLEB 108*4882a593Smuzhiyun #include "pleb.h" 109*4882a593Smuzhiyun #endif 110*4882a593Smuzhiyun 111*4882a593Smuzhiyun #endif /* _ASM_ARCH_HARDWARE_H */ 112