Path: blob/master/arch/arm/mach-integrator/include/mach/platform.h
15162 views
/*1* This program is free software; you can redistribute it and/or modify2* it under the terms of the GNU General Public License as published by3* the Free Software Foundation; either version 2 of the License, or4* (at your option) any later version.5*6* This program is distributed in the hope that it will be useful,7* but WITHOUT ANY WARRANTY; without even the implied warranty of8* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9* GNU General Public License for more details.10*11* You should have received a copy of the GNU General Public License12* along with this program; if not, write to the Free Software13* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA14*/15/* DO NOT EDIT!! - this file automatically generated16* from .s file by awk -f s2h.awk17*/18/**************************************************************************19* * Copyright © ARM Limited 1998. All rights reserved.20* ***********************************************************************/21/* ************************************************************************22*23* Integrator address map24*25* ***********************************************************************/2627#ifndef __address_h28#define __address_h 12930/* ========================================================================31* Integrator definitions32* ========================================================================33* ------------------------------------------------------------------------34* Memory definitions35* ------------------------------------------------------------------------36* Integrator memory map37*38*/39#define INTEGRATOR_BOOT_ROM_LO 0x0000000040#define INTEGRATOR_BOOT_ROM_HI 0x2000000041#define INTEGRATOR_BOOT_ROM_BASE INTEGRATOR_BOOT_ROM_HI /* Normal position */42#define INTEGRATOR_BOOT_ROM_SIZE SZ_512K4344/*45* New Core Modules have different amounts of SSRAM, the amount of SSRAM46* fitted can be found in HDR_STAT.47*48* The symbol INTEGRATOR_SSRAM_SIZE is kept, however this now refers to49* the minimum amount of SSRAM fitted on any core module.50*51* New Core Modules also alias the SSRAM.52*53*/54#define INTEGRATOR_SSRAM_BASE 0x0000000055#define INTEGRATOR_SSRAM_ALIAS_BASE 0x1080000056#define INTEGRATOR_SSRAM_SIZE SZ_256K5758#define INTEGRATOR_FLASH_BASE 0x2400000059#define INTEGRATOR_FLASH_SIZE SZ_32M6061#define INTEGRATOR_MBRD_SSRAM_BASE 0x2800000062#define INTEGRATOR_MBRD_SSRAM_SIZE SZ_512K6364/*65* SDRAM is a SIMM therefore the size is not known.66*67*/68#define INTEGRATOR_SDRAM_BASE 0x000400006970#define INTEGRATOR_SDRAM_ALIAS_BASE 0x8000000071#define INTEGRATOR_HDR0_SDRAM_BASE 0x8000000072#define INTEGRATOR_HDR1_SDRAM_BASE 0x9000000073#define INTEGRATOR_HDR2_SDRAM_BASE 0xA000000074#define INTEGRATOR_HDR3_SDRAM_BASE 0xB00000007576/*77* Logic expansion modules78*79*/80#define INTEGRATOR_LOGIC_MODULES_BASE 0xC000000081#define INTEGRATOR_LOGIC_MODULE0_BASE 0xC000000082#define INTEGRATOR_LOGIC_MODULE1_BASE 0xD000000083#define INTEGRATOR_LOGIC_MODULE2_BASE 0xE000000084#define INTEGRATOR_LOGIC_MODULE3_BASE 0xF00000008586/* ------------------------------------------------------------------------87* Integrator header card registers88* ------------------------------------------------------------------------89*90*/91#define INTEGRATOR_HDR_ID_OFFSET 0x0092#define INTEGRATOR_HDR_PROC_OFFSET 0x0493#define INTEGRATOR_HDR_OSC_OFFSET 0x0894#define INTEGRATOR_HDR_CTRL_OFFSET 0x0C95#define INTEGRATOR_HDR_STAT_OFFSET 0x1096#define INTEGRATOR_HDR_LOCK_OFFSET 0x1497#define INTEGRATOR_HDR_SDRAM_OFFSET 0x2098#define INTEGRATOR_HDR_INIT_OFFSET 0x24 /* CM9x6 */99#define INTEGRATOR_HDR_IC_OFFSET 0x40100#define INTEGRATOR_HDR_SPDBASE_OFFSET 0x100101#define INTEGRATOR_HDR_SPDTOP_OFFSET 0x200102103#define INTEGRATOR_HDR_BASE 0x10000000104#define INTEGRATOR_HDR_ID (INTEGRATOR_HDR_BASE + INTEGRATOR_HDR_ID_OFFSET)105#define INTEGRATOR_HDR_PROC (INTEGRATOR_HDR_BASE + INTEGRATOR_HDR_PROC_OFFSET)106#define INTEGRATOR_HDR_OSC (INTEGRATOR_HDR_BASE + INTEGRATOR_HDR_OSC_OFFSET)107#define INTEGRATOR_HDR_CTRL (INTEGRATOR_HDR_BASE + INTEGRATOR_HDR_CTRL_OFFSET)108#define INTEGRATOR_HDR_STAT (INTEGRATOR_HDR_BASE + INTEGRATOR_HDR_STAT_OFFSET)109#define INTEGRATOR_HDR_LOCK (INTEGRATOR_HDR_BASE + INTEGRATOR_HDR_LOCK_OFFSET)110#define INTEGRATOR_HDR_SDRAM (INTEGRATOR_HDR_BASE + INTEGRATOR_HDR_SDRAM_OFFSET)111#define INTEGRATOR_HDR_INIT (INTEGRATOR_HDR_BASE + INTEGRATOR_HDR_INIT_OFFSET)112#define INTEGRATOR_HDR_IC (INTEGRATOR_HDR_BASE + INTEGRATOR_HDR_IC_OFFSET)113#define INTEGRATOR_HDR_SPDBASE (INTEGRATOR_HDR_BASE + INTEGRATOR_HDR_SPDBASE_OFFSET)114#define INTEGRATOR_HDR_SPDTOP (INTEGRATOR_HDR_BASE + INTEGRATOR_HDR_SPDTOP_OFFSET)115116#define INTEGRATOR_HDR_CTRL_LED 0x01117#define INTEGRATOR_HDR_CTRL_MBRD_DETECH 0x02118#define INTEGRATOR_HDR_CTRL_REMAP 0x04119#define INTEGRATOR_HDR_CTRL_RESET 0x08120#define INTEGRATOR_HDR_CTRL_HIGHVECTORS 0x10121#define INTEGRATOR_HDR_CTRL_BIG_ENDIAN 0x20122#define INTEGRATOR_HDR_CTRL_FASTBUS 0x40123#define INTEGRATOR_HDR_CTRL_SYNC 0x80124125#define INTEGRATOR_HDR_OSC_CORE_10MHz 0x102126#define INTEGRATOR_HDR_OSC_CORE_15MHz 0x107127#define INTEGRATOR_HDR_OSC_CORE_20MHz 0x10C128#define INTEGRATOR_HDR_OSC_CORE_25MHz 0x111129#define INTEGRATOR_HDR_OSC_CORE_30MHz 0x116130#define INTEGRATOR_HDR_OSC_CORE_35MHz 0x11B131#define INTEGRATOR_HDR_OSC_CORE_40MHz 0x120132#define INTEGRATOR_HDR_OSC_CORE_45MHz 0x125133#define INTEGRATOR_HDR_OSC_CORE_50MHz 0x12A134#define INTEGRATOR_HDR_OSC_CORE_55MHz 0x12F135#define INTEGRATOR_HDR_OSC_CORE_60MHz 0x134136#define INTEGRATOR_HDR_OSC_CORE_65MHz 0x139137#define INTEGRATOR_HDR_OSC_CORE_70MHz 0x13E138#define INTEGRATOR_HDR_OSC_CORE_75MHz 0x143139#define INTEGRATOR_HDR_OSC_CORE_80MHz 0x148140#define INTEGRATOR_HDR_OSC_CORE_85MHz 0x14D141#define INTEGRATOR_HDR_OSC_CORE_90MHz 0x152142#define INTEGRATOR_HDR_OSC_CORE_95MHz 0x157143#define INTEGRATOR_HDR_OSC_CORE_100MHz 0x15C144#define INTEGRATOR_HDR_OSC_CORE_105MHz 0x161145#define INTEGRATOR_HDR_OSC_CORE_110MHz 0x166146#define INTEGRATOR_HDR_OSC_CORE_115MHz 0x16B147#define INTEGRATOR_HDR_OSC_CORE_120MHz 0x170148#define INTEGRATOR_HDR_OSC_CORE_125MHz 0x175149#define INTEGRATOR_HDR_OSC_CORE_130MHz 0x17A150#define INTEGRATOR_HDR_OSC_CORE_135MHz 0x17F151#define INTEGRATOR_HDR_OSC_CORE_140MHz 0x184152#define INTEGRATOR_HDR_OSC_CORE_145MHz 0x189153#define INTEGRATOR_HDR_OSC_CORE_150MHz 0x18E154#define INTEGRATOR_HDR_OSC_CORE_155MHz 0x193155#define INTEGRATOR_HDR_OSC_CORE_160MHz 0x198156#define INTEGRATOR_HDR_OSC_CORE_MASK 0x7FF157158#define INTEGRATOR_HDR_OSC_MEM_10MHz 0x10C000159#define INTEGRATOR_HDR_OSC_MEM_15MHz 0x116000160#define INTEGRATOR_HDR_OSC_MEM_20MHz 0x120000161#define INTEGRATOR_HDR_OSC_MEM_25MHz 0x12A000162#define INTEGRATOR_HDR_OSC_MEM_30MHz 0x134000163#define INTEGRATOR_HDR_OSC_MEM_33MHz 0x13A000164#define INTEGRATOR_HDR_OSC_MEM_40MHz 0x148000165#define INTEGRATOR_HDR_OSC_MEM_50MHz 0x15C000166#define INTEGRATOR_HDR_OSC_MEM_60MHz 0x170000167#define INTEGRATOR_HDR_OSC_MEM_66MHz 0x17C000168#define INTEGRATOR_HDR_OSC_MEM_MASK 0x7FF000169170#define INTEGRATOR_HDR_OSC_BUS_MODE_CM7x0 0x0171#define INTEGRATOR_HDR_OSC_BUS_MODE_CM9x0 0x0800000172#define INTEGRATOR_HDR_OSC_BUS_MODE_CM9x6 0x1000000173#define INTEGRATOR_HDR_OSC_BUS_MODE_CM10x00 0x1800000174#define INTEGRATOR_HDR_OSC_BUS_MODE_MASK 0x1800000175176#define INTEGRATOR_HDR_SDRAM_SPD_OK (1 << 5)177178179/* ------------------------------------------------------------------------180* Integrator system registers181* ------------------------------------------------------------------------182*183*/184185/*186* System Controller187*188*/189#define INTEGRATOR_SC_ID_OFFSET 0x00190#define INTEGRATOR_SC_OSC_OFFSET 0x04191#define INTEGRATOR_SC_CTRLS_OFFSET 0x08192#define INTEGRATOR_SC_CTRLC_OFFSET 0x0C193#define INTEGRATOR_SC_DEC_OFFSET 0x10194#define INTEGRATOR_SC_ARB_OFFSET 0x14195#define INTEGRATOR_SC_PCIENABLE_OFFSET 0x18196#define INTEGRATOR_SC_LOCK_OFFSET 0x1C197198#define INTEGRATOR_SC_BASE 0x11000000199#define INTEGRATOR_SC_ID (INTEGRATOR_SC_BASE + INTEGRATOR_SC_ID_OFFSET)200#define INTEGRATOR_SC_OSC (INTEGRATOR_SC_BASE + INTEGRATOR_SC_OSC_OFFSET)201#define INTEGRATOR_SC_CTRLS (INTEGRATOR_SC_BASE + INTEGRATOR_SC_CTRLS_OFFSET)202#define INTEGRATOR_SC_CTRLC (INTEGRATOR_SC_BASE + INTEGRATOR_SC_CTRLC_OFFSET)203#define INTEGRATOR_SC_DEC (INTEGRATOR_SC_BASE + INTEGRATOR_SC_DEC_OFFSET)204#define INTEGRATOR_SC_ARB (INTEGRATOR_SC_BASE + INTEGRATOR_SC_ARB_OFFSET)205#define INTEGRATOR_SC_PCIENABLE (INTEGRATOR_SC_BASE + INTEGRATOR_SC_PCIENABLE_OFFSET)206#define INTEGRATOR_SC_LOCK (INTEGRATOR_SC_BASE + INTEGRATOR_SC_LOCK_OFFSET)207208#define INTEGRATOR_SC_OSC_SYS_10MHz 0x20209#define INTEGRATOR_SC_OSC_SYS_15MHz 0x34210#define INTEGRATOR_SC_OSC_SYS_20MHz 0x48211#define INTEGRATOR_SC_OSC_SYS_25MHz 0x5C212#define INTEGRATOR_SC_OSC_SYS_33MHz 0x7C213#define INTEGRATOR_SC_OSC_SYS_MASK 0xFF214215#define INTEGRATOR_SC_OSC_PCI_25MHz 0x100216#define INTEGRATOR_SC_OSC_PCI_33MHz 0x0217#define INTEGRATOR_SC_OSC_PCI_MASK 0x100218219#define INTEGRATOR_SC_CTRL_SOFTRST (1 << 0)220#define INTEGRATOR_SC_CTRL_nFLVPPEN (1 << 1)221#define INTEGRATOR_SC_CTRL_nFLWP (1 << 2)222#define INTEGRATOR_SC_CTRL_URTS0 (1 << 4)223#define INTEGRATOR_SC_CTRL_UDTR0 (1 << 5)224#define INTEGRATOR_SC_CTRL_URTS1 (1 << 6)225#define INTEGRATOR_SC_CTRL_UDTR1 (1 << 7)226227/*228* External Bus Interface229*230*/231#define INTEGRATOR_EBI_BASE 0x12000000232233#define INTEGRATOR_EBI_CSR0_OFFSET 0x00234#define INTEGRATOR_EBI_CSR1_OFFSET 0x04235#define INTEGRATOR_EBI_CSR2_OFFSET 0x08236#define INTEGRATOR_EBI_CSR3_OFFSET 0x0C237#define INTEGRATOR_EBI_LOCK_OFFSET 0x20238239#define INTEGRATOR_EBI_CSR0 (INTEGRATOR_EBI_BASE + INTEGRATOR_EBI_CSR0_OFFSET)240#define INTEGRATOR_EBI_CSR1 (INTEGRATOR_EBI_BASE + INTEGRATOR_EBI_CSR1_OFFSET)241#define INTEGRATOR_EBI_CSR2 (INTEGRATOR_EBI_BASE + INTEGRATOR_EBI_CSR2_OFFSET)242#define INTEGRATOR_EBI_CSR3 (INTEGRATOR_EBI_BASE + INTEGRATOR_EBI_CSR3_OFFSET)243#define INTEGRATOR_EBI_LOCK (INTEGRATOR_EBI_BASE + INTEGRATOR_EBI_LOCK_OFFSET)244245#define INTEGRATOR_EBI_8_BIT 0x00246#define INTEGRATOR_EBI_16_BIT 0x01247#define INTEGRATOR_EBI_32_BIT 0x02248#define INTEGRATOR_EBI_WRITE_ENABLE 0x04249#define INTEGRATOR_EBI_SYNC 0x08250#define INTEGRATOR_EBI_WS_2 0x00251#define INTEGRATOR_EBI_WS_3 0x10252#define INTEGRATOR_EBI_WS_4 0x20253#define INTEGRATOR_EBI_WS_5 0x30254#define INTEGRATOR_EBI_WS_6 0x40255#define INTEGRATOR_EBI_WS_7 0x50256#define INTEGRATOR_EBI_WS_8 0x60257#define INTEGRATOR_EBI_WS_9 0x70258#define INTEGRATOR_EBI_WS_10 0x80259#define INTEGRATOR_EBI_WS_11 0x90260#define INTEGRATOR_EBI_WS_12 0xA0261#define INTEGRATOR_EBI_WS_13 0xB0262#define INTEGRATOR_EBI_WS_14 0xC0263#define INTEGRATOR_EBI_WS_15 0xD0264#define INTEGRATOR_EBI_WS_16 0xE0265#define INTEGRATOR_EBI_WS_17 0xF0266267268#define INTEGRATOR_CT_BASE 0x13000000 /* Counter/Timers */269#define INTEGRATOR_IC_BASE 0x14000000 /* Interrupt Controller */270#define INTEGRATOR_RTC_BASE 0x15000000 /* Real Time Clock */271#define INTEGRATOR_UART0_BASE 0x16000000 /* UART 0 */272#define INTEGRATOR_UART1_BASE 0x17000000 /* UART 1 */273#define INTEGRATOR_KBD_BASE 0x18000000 /* Keyboard */274#define INTEGRATOR_MOUSE_BASE 0x19000000 /* Mouse */275276/*277* LED's & Switches278*279*/280#define INTEGRATOR_DBG_ALPHA_OFFSET 0x00281#define INTEGRATOR_DBG_LEDS_OFFSET 0x04282#define INTEGRATOR_DBG_SWITCH_OFFSET 0x08283284#define INTEGRATOR_DBG_BASE 0x1A000000285#define INTEGRATOR_DBG_ALPHA (INTEGRATOR_DBG_BASE + INTEGRATOR_DBG_ALPHA_OFFSET)286#define INTEGRATOR_DBG_LEDS (INTEGRATOR_DBG_BASE + INTEGRATOR_DBG_LEDS_OFFSET)287#define INTEGRATOR_DBG_SWITCH (INTEGRATOR_DBG_BASE + INTEGRATOR_DBG_SWITCH_OFFSET)288289#define INTEGRATOR_AP_GPIO_BASE 0x1B000000 /* GPIO */290291#define INTEGRATOR_CP_MMC_BASE 0x1C000000 /* MMC */292#define INTEGRATOR_CP_AACI_BASE 0x1D000000 /* AACI */293#define INTEGRATOR_CP_ETH_BASE 0xC8000000 /* Ethernet */294#define INTEGRATOR_CP_GPIO_BASE 0xC9000000 /* GPIO */295#define INTEGRATOR_CP_SIC_BASE 0xCA000000 /* SIC */296#define INTEGRATOR_CP_CTL_BASE 0xCB000000 /* CP system control */297298/* ------------------------------------------------------------------------299* KMI keyboard/mouse definitions300* ------------------------------------------------------------------------301*/302/* PS2 Keyboard interface */303#define KMI0_BASE INTEGRATOR_KBD_BASE304305/* PS2 Mouse interface */306#define KMI1_BASE INTEGRATOR_MOUSE_BASE307308/* KMI definitions are now in include/asm-arm/hardware/amba_kmi.h -- rmk */309310/* ------------------------------------------------------------------------311* Where in the memory map does PCI live?312* ------------------------------------------------------------------------313* This represents a fairly liberal usage of address space. Even though314* the V3 only has two windows (therefore we need to map stuff on the fly),315* we maintain the same addresses, even if they're not mapped.316*317*/318#define PHYS_PCI_MEM_BASE 0x40000000 /* 512M to xxx */319/* unused 256M from A0000000-AFFFFFFF might be used for I2O ???320*/321#define PHYS_PCI_IO_BASE 0x60000000 /* 16M to xxx */322/* unused (128-16)M from B1000000-B7FFFFFF323*/324#define PHYS_PCI_CONFIG_BASE 0x61000000 /* 16M to xxx */325/* unused ((128-16)M - 64K) from XXX326*/327#define PHYS_PCI_V3_BASE 0x62000000328329/* ------------------------------------------------------------------------330* Integrator Interrupt Controllers331* ------------------------------------------------------------------------332*333* Offsets from interrupt controller base334*335* System Controller interrupt controller base is336*337* INTEGRATOR_IC_BASE + (header_number << 6)338*339* Core Module interrupt controller base is340*341* INTEGRATOR_HDR_IC342*343*/344#define IRQ_STATUS 0345#define IRQ_RAW_STATUS 0x04346#define IRQ_ENABLE 0x08347#define IRQ_ENABLE_SET 0x08348#define IRQ_ENABLE_CLEAR 0x0C349350#define INT_SOFT_SET 0x10351#define INT_SOFT_CLEAR 0x14352353#define FIQ_STATUS 0x20354#define FIQ_RAW_STATUS 0x24355#define FIQ_ENABLE 0x28356#define FIQ_ENABLE_SET 0x28357#define FIQ_ENABLE_CLEAR 0x2C358359360/* ------------------------------------------------------------------------361* Interrupts362* ------------------------------------------------------------------------363*364*365* Each Core Module has two interrupts controllers, one on the core module366* itself and one in the system controller on the motherboard. The367* READ_INT macro in target.s reads both interrupt controllers and returns368* a 32 bit bitmask, bits 0 to 23 are interrupts from the system controller369* and bits 24 to 31 are from the core module.370*371* The following definitions relate to the bitmask returned by READ_INT.372*373*/374375/* ------------------------------------------------------------------------376* LED's377* ------------------------------------------------------------------------378*379*/380#define GREEN_LED 0x01381#define YELLOW_LED 0x02382#define RED_LED 0x04383#define GREEN_LED_2 0x08384#define ALL_LEDS 0x0F385386#define LED_BANK INTEGRATOR_DBG_LEDS387388/*389* Timer definitions390*391* Only use timer 1 & 2392* (both run at 24MHz and will need the clock divider set to 16).393*394* Timer 0 runs at bus frequency395*/396397#define INTEGRATOR_TIMER0_BASE INTEGRATOR_CT_BASE398#define INTEGRATOR_TIMER1_BASE (INTEGRATOR_CT_BASE + 0x100)399#define INTEGRATOR_TIMER2_BASE (INTEGRATOR_CT_BASE + 0x200)400401#define TICKS_PER_uSEC 24402403/*404* These are useconds NOT ticks.405*406*/407#define mSEC_1 1000408#define mSEC_10 (mSEC_1 * 10)409410#define INTEGRATOR_CSR_BASE 0x10000000411#define INTEGRATOR_CSR_SIZE 0x10000000412413#endif414415416