Path: blob/master/arch/arm/mach-clps711x/include/mach/hardware.h
17633 views
/*1* arch/arm/mach-clps711x/include/mach/hardware.h2*3* This file contains the hardware definitions of the Prospector P720T.4*5* Copyright (C) 2000 Deep Blue Solutions Ltd.6*7* This program is free software; you can redistribute it and/or modify8* it under the terms of the GNU General Public License as published by9* the Free Software Foundation; either version 2 of the License, or10* (at your option) any later version.11*12* This program is distributed in the hope that it will be useful,13* but WITHOUT ANY WARRANTY; without even the implied warranty of14* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15* GNU General Public License for more details.16*17* You should have received a copy of the GNU General Public License18* along with this program; if not, write to the Free Software19* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA20*/21#ifndef __ASM_ARCH_HARDWARE_H22#define __ASM_ARCH_HARDWARE_H232425#define CLPS7111_VIRT_BASE 0xff00000026#define CLPS7111_BASE CLPS7111_VIRT_BASE2728/*29* The physical addresses that the external chip select signals map to is30* dependent on the setting of the nMEDCHG signal on EP7211 and EP721231* processors. CONFIG_EP72XX_BOOT_ROM is only available if these32* processors are in use.33*/34#ifndef CONFIG_EP72XX_ROM_BOOT35#define CS0_PHYS_BASE (0x00000000)36#define CS1_PHYS_BASE (0x10000000)37#define CS2_PHYS_BASE (0x20000000)38#define CS3_PHYS_BASE (0x30000000)39#define CS4_PHYS_BASE (0x40000000)40#define CS5_PHYS_BASE (0x50000000)41#define CS6_PHYS_BASE (0x60000000)42#define CS7_PHYS_BASE (0x70000000)43#else44#define CS0_PHYS_BASE (0x70000000)45#define CS1_PHYS_BASE (0x60000000)46#define CS2_PHYS_BASE (0x50000000)47#define CS3_PHYS_BASE (0x40000000)48#define CS4_PHYS_BASE (0x30000000)49#define CS5_PHYS_BASE (0x20000000)50#define CS6_PHYS_BASE (0x10000000)51#define CS7_PHYS_BASE (0x00000000)52#endif5354#if defined (CONFIG_ARCH_EP7211)5556#define EP7211_VIRT_BASE CLPS7111_VIRT_BASE57#define EP7211_BASE CLPS7111_VIRT_BASE58#include <asm/hardware/ep7211.h>5960#elif defined (CONFIG_ARCH_EP7212)6162#define EP7212_VIRT_BASE CLPS7111_VIRT_BASE63#define EP7212_BASE CLPS7111_VIRT_BASE64#include <asm/hardware/ep7212.h>6566#endif6768#define SYSPLD_VIRT_BASE 0xfe00000069#define SYSPLD_BASE SYSPLD_VIRT_BASE7071#if defined (CONFIG_ARCH_AUTCPU12)7273#define CS89712_VIRT_BASE CLPS7111_VIRT_BASE74#define CS89712_BASE CLPS7111_VIRT_BASE7576#include <asm/hardware/clps7111.h>77#include <asm/hardware/ep7212.h>78#include <asm/hardware/cs89712.h>7980#endif818283#if defined (CONFIG_ARCH_CDB89712)8485#include <asm/hardware/clps7111.h>86#include <asm/hardware/ep7212.h>87#include <asm/hardware/cs89712.h>8889/* static cdb89712_map_io() areas */90#define REGISTER_START 0x8000000091#define REGISTER_SIZE 0x400092#define REGISTER_BASE 0xff0000009394#define ETHER_START 0x2000000095#define ETHER_SIZE 0x100096#define ETHER_BASE 0xfe0000009798#endif99100101#if defined (CONFIG_ARCH_EDB7211)102103/*104* The extra 8 lines of the keyboard matrix are wired to chip select 3 (nCS3)105* and repeat across it. This is the mapping for it.106*107* In jumpered boot mode, nCS3 is mapped to 0x4000000, not 0x3000000. This108* was cause for much consternation and headscratching. This should probably109* be made a compile/run time kernel option.110*/111#define EP7211_PHYS_EXTKBD CS3_PHYS_BASE /* physical */112113#define EP7211_VIRT_EXTKBD (0xfd000000) /* virtual */114115116/*117* The CS8900A ethernet chip has its I/O registers wired to chip select 2118* (nCS2). This is the mapping for it.119*120* In jumpered boot mode, nCS2 is mapped to 0x5000000, not 0x2000000. This121* was cause for much consternation and headscratching. This should probably122* be made a compile/run time kernel option.123*/124#define EP7211_PHYS_CS8900A CS2_PHYS_BASE /* physical */125126#define EP7211_VIRT_CS8900A (0xfc000000) /* virtual */127128129/*130* The two flash banks are wired to chip selects 0 and 1. This is the mapping131* for them.132*133* nCS0 and nCS1 are at 0x70000000 and 0x60000000, respectively, when running134* in jumpered boot mode.135*/136#define EP7211_PHYS_FLASH1 CS0_PHYS_BASE /* physical */137#define EP7211_PHYS_FLASH2 CS1_PHYS_BASE /* physical */138139#define EP7211_VIRT_FLASH1 (0xfa000000) /* virtual */140#define EP7211_VIRT_FLASH2 (0xfb000000) /* virtual */141142#endif /* CONFIG_ARCH_EDB7211 */143144145/*146* Relevant bits in port D, which controls power to the various parts of147* the LCD on the EDB7211.148*/149#define EDB_PD1_LCD_DC_DC_EN (1<<1)150#define EDB_PD2_LCDEN (1<<2)151#define EDB_PD3_LCDBL (1<<3)152153154#if defined (CONFIG_ARCH_CEIVA)155156#define CEIVA_VIRT_BASE CLPS7111_VIRT_BASE157#define CEIVA_BASE CLPS7111_VIRT_BASE158159#include <asm/hardware/clps7111.h>160#include <asm/hardware/ep7212.h>161162163/*164* The two flash banks are wired to chip selects 0 and 1. This is the mapping165* for them.166*167* nCS0 and nCS1 are at 0x70000000 and 0x60000000, respectively, when running168* in jumpered boot mode.169*/170#define CEIVA_PHYS_FLASH1 CS0_PHYS_BASE /* physical */171#define CEIVA_PHYS_FLASH2 CS1_PHYS_BASE /* physical */172173#define CEIVA_VIRT_FLASH1 (0xfa000000) /* virtual */174#define CEIVA_VIRT_FLASH2 (0xfb000000) /* virtual */175176#define CEIVA_FLASH_SIZE 0x100000177#define CEIVA_FLASH_WIDTH 2178179/*180* SED1355 LCD controller181*/182#define CEIVA_PHYS_SED1355 CS2_PHYS_BASE183#define CEIVA_VIRT_SED1355 (0xfc000000)184185/*186* Relevant bits in port D, which controls power to the various parts of187* the LCD on the Ceiva Photo Max, and reset to the LCD controller.188*/189190// Reset line to SED1355 (must be high to operate)191#define CEIVA_PD1_LCDRST (1<<1)192// LCD panel enable (set to one, to enable LCD)193#define CEIVA_PD4_LCDEN (1<<4)194// Backlight (set to one, to turn on backlight195#define CEIVA_PD5_LCDBL (1<<5)196197/*198* Relevant bits in port B, which report the status of the buttons.199*/200201// White button202#define CEIVA_PB4_WHT_BTN (1<<4)203// Black button204#define CEIVA_PB0_BLK_BTN (1<<0)205#endif // #if defined (CONFIG_ARCH_CEIVA)206207#endif208209210