diff options
Diffstat (limited to 'arch/arm/mach-footbridge/include')
| -rw-r--r-- | arch/arm/mach-footbridge/include/mach/debug-macro.S | 21 | ||||
| -rw-r--r-- | arch/arm/mach-footbridge/include/mach/entry-macro.S | 6 | ||||
| -rw-r--r-- | arch/arm/mach-footbridge/include/mach/hardware.h | 34 | ||||
| -rw-r--r-- | arch/arm/mach-footbridge/include/mach/io.h | 21 | ||||
| -rw-r--r-- | arch/arm/mach-footbridge/include/mach/irqs.h | 2 | ||||
| -rw-r--r-- | arch/arm/mach-footbridge/include/mach/memory.h | 2 | ||||
| -rw-r--r-- | arch/arm/mach-footbridge/include/mach/system.h | 69 | ||||
| -rw-r--r-- | arch/arm/mach-footbridge/include/mach/timex.h | 18 | ||||
| -rw-r--r-- | arch/arm/mach-footbridge/include/mach/uncompress.h | 1 | ||||
| -rw-r--r-- | arch/arm/mach-footbridge/include/mach/vmalloc.h | 10 | 
10 files changed, 23 insertions, 161 deletions
diff --git a/arch/arm/mach-footbridge/include/mach/debug-macro.S b/arch/arm/mach-footbridge/include/mach/debug-macro.S index 3c9e0c40c67..02247f313e9 100644 --- a/arch/arm/mach-footbridge/include/mach/debug-macro.S +++ b/arch/arm/mach-footbridge/include/mach/debug-macro.S @@ -13,31 +13,19 @@  #include <asm/hardware/dec21285.h> -#ifndef CONFIG_DEBUG_DC21285_PORT -	/* For NetWinder debugging */ -		.macro	addruart, rp, rv -		mov	\rp, #0x000003f8 -		orr	\rv, \rp, #0x7c000000	@ physical -		orr	\rp, \rp, #0xff000000	@ virtual -		.endm - -#define UART_SHIFT	0 -#define FLOW_CONTROL -#include <asm/hardware/debug-8250.S> - -#else +#include <mach/hardware.h>  	/* For EBSA285 debugging */  		.equ	dc21285_high, ARMCSR_BASE & 0xff000000  		.equ	dc21285_low,  ARMCSR_BASE & 0x00ffffff -		.macro	addruart, rp, rv +		.macro	addruart, rp, rv, tmp  		.if	dc21285_low  		mov	\rp, #dc21285_low  		.else  		mov	\rp, #0  		.endif -		orr	\rv, \rp, #0x42000000 -		orr	\rp, \rp, #dc21285_high +		orr	\rv, \rp, #dc21285_high +		orr	\rp, \rp, #0x42000000  		.endm  		.macro	senduart,rd,rx @@ -52,4 +40,3 @@  		.macro	waituart,rd,rx  		.endm -#endif diff --git a/arch/arm/mach-footbridge/include/mach/entry-macro.S b/arch/arm/mach-footbridge/include/mach/entry-macro.S index d3847be0c66..dabbd5c54a7 100644 --- a/arch/arm/mach-footbridge/include/mach/entry-macro.S +++ b/arch/arm/mach-footbridge/include/mach/entry-macro.S @@ -14,9 +14,6 @@  		.equ	dc21285_high, ARMCSR_BASE & 0xff000000  		.equ	dc21285_low, ARMCSR_BASE & 0x00ffffff -		.macro	disable_fiq -		.endm -  		.macro  get_irqnr_preamble, base, tmp  		mov	\base, #dc21285_high  		.if	dc21285_low @@ -24,9 +21,6 @@  		.endif  		.endm -		.macro  arch_ret_to_user, tmp1, tmp2 -		.endm -  		.macro	get_irqnr_and_base, irqnr, irqstat, base, tmp  		ldr	\irqstat, [\base, #0x180]	@ get interrupts diff --git a/arch/arm/mach-footbridge/include/mach/hardware.h b/arch/arm/mach-footbridge/include/mach/hardware.h index 51dd902043a..02f6d7a706b 100644 --- a/arch/arm/mach-footbridge/include/mach/hardware.h +++ b/arch/arm/mach-footbridge/include/mach/hardware.h @@ -23,32 +23,35 @@   * 0xf9000000	0x50000000	1MB	Cache flush   * 0xf0000000	0x80000000	16MB	ISA memory   */ + +#ifdef CONFIG_MMU +#define MMU_IO(a, b)	(a) +#else +#define MMU_IO(a, b)	(b) +#endif +  #define XBUS_SIZE		0x00100000 -#define XBUS_BASE		0xff800000 +#define XBUS_BASE		MMU_IO(0xff800000, 0x40000000)  #define ARMCSR_SIZE		0x00100000 -#define ARMCSR_BASE		0xfe000000 +#define ARMCSR_BASE		MMU_IO(0xfe000000, 0x42000000)  #define WFLUSH_SIZE		0x00100000 -#define WFLUSH_BASE		0xfd000000 +#define WFLUSH_BASE		MMU_IO(0xfd000000, 0x78000000)  #define PCIIACK_SIZE		0x00100000 -#define PCIIACK_BASE		0xfc000000 +#define PCIIACK_BASE		MMU_IO(0xfc000000, 0x79000000)  #define PCICFG1_SIZE		0x01000000 -#define PCICFG1_BASE		0xfb000000 +#define PCICFG1_BASE		MMU_IO(0xfb000000, 0x7a000000)  #define PCICFG0_SIZE		0x01000000 -#define PCICFG0_BASE		0xfa000000 +#define PCICFG0_BASE		MMU_IO(0xfa000000, 0x7b000000)  #define PCIMEM_SIZE		0x01000000 -#define PCIMEM_BASE		0xf0000000 +#define PCIMEM_BASE		MMU_IO(0xf0000000, 0x80000000) -#define XBUS_LEDS		((volatile unsigned char *)(XBUS_BASE + 0x12000)) -#define XBUS_LED_AMBER		(1 << 0) -#define XBUS_LED_GREEN		(1 << 1) -#define XBUS_LED_RED		(1 << 2) -#define XBUS_LED_TOGGLE		(1 << 8) +#define XBUS_CS2		0x40012000  #define XBUS_SWITCH		((volatile unsigned char *)(XBUS_BASE + 0x12000))  #define XBUS_SWITCH_SWITCH	((*XBUS_SWITCH) & 15) @@ -86,16 +89,11 @@  #define CPLD_FLASH_WR_ENABLE	1  #ifndef __ASSEMBLY__ -extern spinlock_t nw_gpio_lock; +extern raw_spinlock_t nw_gpio_lock;  extern void nw_gpio_modify_op(unsigned int mask, unsigned int set);  extern void nw_gpio_modify_io(unsigned int mask, unsigned int in);  extern unsigned int nw_gpio_read(void);  extern void nw_cpld_modify(unsigned int mask, unsigned int set);  #endif -#define pcibios_assign_all_busses()	1 - -#define PCIBIOS_MIN_IO		0x1000 -#define PCIBIOS_MIN_MEM 	0x81000000 -  #endif diff --git a/arch/arm/mach-footbridge/include/mach/io.h b/arch/arm/mach-footbridge/include/mach/io.h index 101a4fe90bd..aba46388cc0 100644 --- a/arch/arm/mach-footbridge/include/mach/io.h +++ b/arch/arm/mach-footbridge/include/mach/io.h @@ -14,27 +14,10 @@  #ifndef __ASM_ARM_ARCH_IO_H  #define __ASM_ARM_ARCH_IO_H -#define PCIO_SIZE		0x00100000 -#define PCIO_BASE		0xff000000 - -#define IO_SPACE_LIMIT 0xffff -  /* - * Translation of various region addresses to virtual addresses + * Translation of various i/o addresses to host addresses for !CONFIG_MMU   */ +#define PCIO_BASE       0x7c000000  #define __io(a)			((void __iomem *)(PCIO_BASE + (a))) -#if 1 -#define __mem_pci(a)		(a) -#else - -static inline void __iomem *___mem_pci(void __iomem *p) -{ -	unsigned long a = (unsigned long)p; -	BUG_ON(a <= 0xc0000000 || a >= 0xe0000000); -	return p; -} - -#define __mem_pci(a)		___mem_pci(a) -#endif  #endif diff --git a/arch/arm/mach-footbridge/include/mach/irqs.h b/arch/arm/mach-footbridge/include/mach/irqs.h index 400551e43e4..61c714c4920 100644 --- a/arch/arm/mach-footbridge/include/mach/irqs.h +++ b/arch/arm/mach-footbridge/include/mach/irqs.h @@ -89,8 +89,6 @@  #define IRQ_NETWINDER_VGA	_ISA_IRQ(11)  #define IRQ_NETWINDER_SOUND	_ISA_IRQ(12) -#undef RTC_IRQ -#define RTC_IRQ		IRQ_ISA_RTC_ALARM  #define I8042_KBD_IRQ	IRQ_ISA_KEYBOARD  #define I8042_AUX_IRQ	(machine_is_netwinder() ? IRQ_NETWINDER_PS2MOUSE : IRQ_ISA_PS2MOUSE)  #define IRQ_FLOPPYDISK	IRQ_ISA_FLOPPY diff --git a/arch/arm/mach-footbridge/include/mach/memory.h b/arch/arm/mach-footbridge/include/mach/memory.h index 8d64f457408..5c6df377f96 100644 --- a/arch/arm/mach-footbridge/include/mach/memory.h +++ b/arch/arm/mach-footbridge/include/mach/memory.h @@ -62,7 +62,7 @@ extern unsigned long __bus_to_pfn(unsigned long);  /*   * Physical DRAM offset.   */ -#define PHYS_OFFSET		UL(0x00000000) +#define PLAT_PHYS_OFFSET		UL(0x00000000)  #define FLUSH_BASE_PHYS		0x50000000 diff --git a/arch/arm/mach-footbridge/include/mach/system.h b/arch/arm/mach-footbridge/include/mach/system.h deleted file mode 100644 index 0b293156620..00000000000 --- a/arch/arm/mach-footbridge/include/mach/system.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - *  arch/arm/mach-footbridge/include/mach/system.h - * - *  Copyright (C) 1996-1999 Russell King. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - */ -#include <linux/io.h> -#include <asm/hardware/dec21285.h> -#include <mach/hardware.h> -#include <asm/leds.h> -#include <asm/mach-types.h> - -static inline void arch_idle(void) -{ -	cpu_do_idle(); -} - -static inline void arch_reset(char mode, const char *cmd) -{ -	if (mode == 's') { -		/* -		 * Jump into the ROM -		 */ -		cpu_reset(0x41000000); -	} else { -		if (machine_is_netwinder()) { -			/* open up the SuperIO chip -			 */ -			outb(0x87, 0x370); -			outb(0x87, 0x370); - -			/* aux function group 1 (logical device 7) -			 */ -			outb(0x07, 0x370); -			outb(0x07, 0x371); - -			/* set GP16 for WD-TIMER output -			 */ -			outb(0xe6, 0x370); -			outb(0x00, 0x371); - -			/* set a RED LED and toggle WD_TIMER for rebooting -			 */ -			outb(0xc4, 0x338); -		} else { -			/*  -			 * Force the watchdog to do a CPU reset. -			 * -			 * After making sure that the watchdog is disabled -			 * (so we can change the timer registers) we first -			 * enable the timer to autoreload itself.  Next, the -			 * timer interval is set really short and any -			 * current interrupt request is cleared (so we can -			 * see an edge transition).  Finally, TIMER4 is -			 * enabled as the watchdog. -			 */ -			*CSR_SA110_CNTL &= ~(1 << 13); -			*CSR_TIMER4_CNTL = TIMER_CNTL_ENABLE | -					   TIMER_CNTL_AUTORELOAD | -					   TIMER_CNTL_DIV16; -			*CSR_TIMER4_LOAD = 0x2; -			*CSR_TIMER4_CLR  = 0; -			*CSR_SA110_CNTL |= (1 << 13); -		} -	} -} diff --git a/arch/arm/mach-footbridge/include/mach/timex.h b/arch/arm/mach-footbridge/include/mach/timex.h deleted file mode 100644 index d0fea9d6d4a..00000000000 --- a/arch/arm/mach-footbridge/include/mach/timex.h +++ /dev/null @@ -1,18 +0,0 @@ -/* - *  arch/arm/mach-footbridge/include/mach/timex.h - * - *  Copyright (C) 1998 Russell King - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - *  EBSA285 architecture timex specifications - */ - -/* - * We assume a constant here; this satisfies the maths in linux/timex.h - * and linux/time.h.  CLOCK_TICK_RATE is actually system dependent, but - * this must be a constant. - */ -#define CLOCK_TICK_RATE		(50000000/16) diff --git a/arch/arm/mach-footbridge/include/mach/uncompress.h b/arch/arm/mach-footbridge/include/mach/uncompress.h index 5dfa4428734..a69398c05a5 100644 --- a/arch/arm/mach-footbridge/include/mach/uncompress.h +++ b/arch/arm/mach-footbridge/include/mach/uncompress.h @@ -35,4 +35,3 @@ static inline void flush(void)   * nothing to do   */  #define arch_decomp_setup() -#define arch_decomp_wdog() diff --git a/arch/arm/mach-footbridge/include/mach/vmalloc.h b/arch/arm/mach-footbridge/include/mach/vmalloc.h deleted file mode 100644 index 0ffbb7c85e5..00000000000 --- a/arch/arm/mach-footbridge/include/mach/vmalloc.h +++ /dev/null @@ -1,10 +0,0 @@ -/* - *  arch/arm/mach-footbridge/include/mach/vmalloc.h - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - */ - - -#define VMALLOC_END       0xf0000000  | 
