Path: blob/master/arch/arm/mach-footbridge/include/mach/hardware.h
17633 views
/*1* arch/arm/mach-footbridge/include/mach/hardware.h2*3* Copyright (C) 1998-1999 Russell King.4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License version 2 as7* published by the Free Software Foundation.8*9* This file contains the hardware definitions of the EBSA-285.10*/11#ifndef __ASM_ARCH_HARDWARE_H12#define __ASM_ARCH_HARDWARE_H1314/* Virtual Physical Size15* 0xff800000 0x40000000 1MB X-Bus16* 0xff000000 0x7c000000 1MB PCI I/O space17* 0xfe000000 0x42000000 1MB CSR18* 0xfd000000 0x78000000 1MB Outbound write flush (not supported)19* 0xfc000000 0x79000000 1MB PCI IACK/special space20* 0xfb000000 0x7a000000 16MB PCI Config type 121* 0xfa000000 0x7b000000 16MB PCI Config type 022* 0xf9000000 0x50000000 1MB Cache flush23* 0xf0000000 0x80000000 16MB ISA memory24*/2526#ifdef CONFIG_MMU27#define MMU_IO(a, b) (a)28#else29#define MMU_IO(a, b) (b)30#endif3132#define XBUS_SIZE 0x0010000033#define XBUS_BASE MMU_IO(0xff800000, 0x40000000)3435#define ARMCSR_SIZE 0x0010000036#define ARMCSR_BASE MMU_IO(0xfe000000, 0x42000000)3738#define WFLUSH_SIZE 0x0010000039#define WFLUSH_BASE MMU_IO(0xfd000000, 0x78000000)4041#define PCIIACK_SIZE 0x0010000042#define PCIIACK_BASE MMU_IO(0xfc000000, 0x79000000)4344#define PCICFG1_SIZE 0x0100000045#define PCICFG1_BASE MMU_IO(0xfb000000, 0x7a000000)4647#define PCICFG0_SIZE 0x0100000048#define PCICFG0_BASE MMU_IO(0xfa000000, 0x7b000000)4950#define PCIMEM_SIZE 0x0100000051#define PCIMEM_BASE MMU_IO(0xf0000000, 0x80000000)5253#define XBUS_LEDS ((volatile unsigned char *)(XBUS_BASE + 0x12000))54#define XBUS_LED_AMBER (1 << 0)55#define XBUS_LED_GREEN (1 << 1)56#define XBUS_LED_RED (1 << 2)57#define XBUS_LED_TOGGLE (1 << 8)5859#define XBUS_SWITCH ((volatile unsigned char *)(XBUS_BASE + 0x12000))60#define XBUS_SWITCH_SWITCH ((*XBUS_SWITCH) & 15)61#define XBUS_SWITCH_J17_13 ((*XBUS_SWITCH) & (1 << 4))62#define XBUS_SWITCH_J17_11 ((*XBUS_SWITCH) & (1 << 5))63#define XBUS_SWITCH_J17_9 ((*XBUS_SWITCH) & (1 << 6))6465#define UNCACHEABLE_ADDR (ARMCSR_BASE + 0x108)666768/* PIC irq control */69#define PIC_LO 0x2070#define PIC_MASK_LO 0x2171#define PIC_HI 0xA072#define PIC_MASK_HI 0xA17374/* GPIO pins */75#define GPIO_CCLK 0x80076#define GPIO_DSCLK 0x40077#define GPIO_E2CLK 0x20078#define GPIO_IOLOAD 0x10079#define GPIO_RED_LED 0x08080#define GPIO_WDTIMER 0x04081#define GPIO_DATA 0x02082#define GPIO_IOCLK 0x01083#define GPIO_DONE 0x00884#define GPIO_FAN 0x00485#define GPIO_GREEN_LED 0x00286#define GPIO_RESET 0x0018788/* CPLD pins */89#define CPLD_DS_ENABLE 890#define CPLD_7111_DISABLE 491#define CPLD_UNMUTE 292#define CPLD_FLASH_WR_ENABLE 19394#ifndef __ASSEMBLY__95extern spinlock_t nw_gpio_lock;96extern void nw_gpio_modify_op(unsigned int mask, unsigned int set);97extern void nw_gpio_modify_io(unsigned int mask, unsigned int in);98extern unsigned int nw_gpio_read(void);99extern void nw_cpld_modify(unsigned int mask, unsigned int set);100#endif101102#define pcibios_assign_all_busses() 1103104#define PCIBIOS_MIN_IO 0x1000105#define PCIBIOS_MIN_MEM 0x81000000106107#endif108109110