Path: blob/master/arch/arm/mach-footbridge/include/mach/hardware.h
26299 views
/* SPDX-License-Identifier: GPL-2.0-only */1/*2* arch/arm/mach-footbridge/include/mach/hardware.h3*4* Copyright (C) 1998-1999 Russell King.5*6* This file contains the hardware definitions of the EBSA-285.7*/8#ifndef __ASM_ARCH_HARDWARE_H9#define __ASM_ARCH_HARDWARE_H1011/* Virtual Physical Size12* 0xff800000 0x40000000 1MB X-Bus13* 0xff000000 0x7c000000 1MB PCI I/O space14* 0xfe000000 0x42000000 1MB CSR15* 0xfd000000 0x78000000 1MB Outbound write flush (not supported)16* 0xfc000000 0x79000000 1MB PCI IACK/special space17* 0xfb000000 0x7a000000 16MB PCI Config type 118* 0xfa000000 0x7b000000 16MB PCI Config type 019* 0xf9000000 0x50000000 1MB Cache flush20* 0xf0000000 0x80000000 16MB ISA memory21*/2223#define XBUS_SIZE 0x0010000024#define XBUS_BASE 0xff8000002526#define ARMCSR_SIZE 0x0010000027#define ARMCSR_BASE 0xfe0000002829#define WFLUSH_SIZE 0x0010000030#define WFLUSH_BASE 0xfd0000003132#define PCIIACK_SIZE 0x0010000033#define PCIIACK_BASE 0xfc0000003435#define PCICFG1_SIZE 0x0100000036#define PCICFG1_BASE 0xfb0000003738#define PCICFG0_SIZE 0x0100000039#define PCICFG0_BASE 0xfa0000004041#define PCIMEM_SIZE 0x0100000042#define PCIMEM_BASE 0xf00000004344#define XBUS_CS2 0x400120004546#define XBUS_SWITCH ((volatile unsigned char *)(XBUS_BASE + 0x12000))47#define XBUS_SWITCH_SWITCH ((*XBUS_SWITCH) & 15)48#define XBUS_SWITCH_J17_13 ((*XBUS_SWITCH) & (1 << 4))49#define XBUS_SWITCH_J17_11 ((*XBUS_SWITCH) & (1 << 5))50#define XBUS_SWITCH_J17_9 ((*XBUS_SWITCH) & (1 << 6))5152#define UNCACHEABLE_ADDR (ARMCSR_BASE + 0x108) /* CSR_ROMBASEMASK */535455/* PIC irq control */56#define PIC_LO 0x2057#define PIC_MASK_LO 0x2158#define PIC_HI 0xA059#define PIC_MASK_HI 0xA16061/* GPIO pins */62#define GPIO_CCLK 0x80063#define GPIO_DSCLK 0x40064#define GPIO_E2CLK 0x20065#define GPIO_IOLOAD 0x10066#define GPIO_RED_LED 0x08067#define GPIO_WDTIMER 0x04068#define GPIO_DATA 0x02069#define GPIO_IOCLK 0x01070#define GPIO_DONE 0x00871#define GPIO_FAN 0x00472#define GPIO_GREEN_LED 0x00273#define GPIO_RESET 0x0017475/* CPLD pins */76#define CPLD_DS_ENABLE 877#define CPLD_7111_DISABLE 478#define CPLD_UNMUTE 279#define CPLD_FLASH_WR_ENABLE 18081#ifndef __ASSEMBLY__82extern raw_spinlock_t nw_gpio_lock;83extern void nw_gpio_modify_op(unsigned int mask, unsigned int set);84extern void nw_gpio_modify_io(unsigned int mask, unsigned int in);85extern unsigned int nw_gpio_read(void);86extern void nw_cpld_modify(unsigned int mask, unsigned int set);87#endif8889#endif909192