diff options
Diffstat (limited to 'arch/arm/mach-footbridge/include')
-rw-r--r-- | arch/arm/mach-footbridge/include/mach/hardware.h | 14 | ||||
-rw-r--r-- | arch/arm/mach-footbridge/include/mach/io.h | 3 | ||||
-rw-r--r-- | arch/arm/mach-footbridge/include/mach/isa-dma.h (renamed from arch/arm/mach-footbridge/include/mach/dma.h) | 2 | ||||
-rw-r--r-- | arch/arm/mach-footbridge/include/mach/memory.h | 9 |
4 files changed, 17 insertions, 11 deletions
diff --git a/arch/arm/mach-footbridge/include/mach/hardware.h b/arch/arm/mach-footbridge/include/mach/hardware.h index ffaea90486f9..51dd902043ad 100644 --- a/arch/arm/mach-footbridge/include/mach/hardware.h +++ b/arch/arm/mach-footbridge/include/mach/hardware.h | |||
@@ -12,8 +12,6 @@ | |||
12 | #ifndef __ASM_ARCH_HARDWARE_H | 12 | #ifndef __ASM_ARCH_HARDWARE_H |
13 | #define __ASM_ARCH_HARDWARE_H | 13 | #define __ASM_ARCH_HARDWARE_H |
14 | 14 | ||
15 | #include <mach/memory.h> | ||
16 | |||
17 | /* Virtual Physical Size | 15 | /* Virtual Physical Size |
18 | * 0xff800000 0x40000000 1MB X-Bus | 16 | * 0xff800000 0x40000000 1MB X-Bus |
19 | * 0xff000000 0x7c000000 1MB PCI I/O space | 17 | * 0xff000000 0x7c000000 1MB PCI I/O space |
@@ -28,9 +26,6 @@ | |||
28 | #define XBUS_SIZE 0x00100000 | 26 | #define XBUS_SIZE 0x00100000 |
29 | #define XBUS_BASE 0xff800000 | 27 | #define XBUS_BASE 0xff800000 |
30 | 28 | ||
31 | #define PCIO_SIZE 0x00100000 | ||
32 | #define PCIO_BASE 0xff000000 | ||
33 | |||
34 | #define ARMCSR_SIZE 0x00100000 | 29 | #define ARMCSR_SIZE 0x00100000 |
35 | #define ARMCSR_BASE 0xfe000000 | 30 | #define ARMCSR_BASE 0xfe000000 |
36 | 31 | ||
@@ -91,10 +86,11 @@ | |||
91 | #define CPLD_FLASH_WR_ENABLE 1 | 86 | #define CPLD_FLASH_WR_ENABLE 1 |
92 | 87 | ||
93 | #ifndef __ASSEMBLY__ | 88 | #ifndef __ASSEMBLY__ |
94 | extern void gpio_modify_op(int mask, int set); | 89 | extern spinlock_t nw_gpio_lock; |
95 | extern void gpio_modify_io(int mask, int in); | 90 | extern void nw_gpio_modify_op(unsigned int mask, unsigned int set); |
96 | extern int gpio_read(void); | 91 | extern void nw_gpio_modify_io(unsigned int mask, unsigned int in); |
97 | extern void cpld_modify(int mask, int set); | 92 | extern unsigned int nw_gpio_read(void); |
93 | extern void nw_cpld_modify(unsigned int mask, unsigned int set); | ||
98 | #endif | 94 | #endif |
99 | 95 | ||
100 | #define pcibios_assign_all_busses() 1 | 96 | #define pcibios_assign_all_busses() 1 |
diff --git a/arch/arm/mach-footbridge/include/mach/io.h b/arch/arm/mach-footbridge/include/mach/io.h index a7b066239996..101a4fe90bde 100644 --- a/arch/arm/mach-footbridge/include/mach/io.h +++ b/arch/arm/mach-footbridge/include/mach/io.h | |||
@@ -14,7 +14,8 @@ | |||
14 | #ifndef __ASM_ARM_ARCH_IO_H | 14 | #ifndef __ASM_ARM_ARCH_IO_H |
15 | #define __ASM_ARM_ARCH_IO_H | 15 | #define __ASM_ARM_ARCH_IO_H |
16 | 16 | ||
17 | #include <mach/hardware.h> | 17 | #define PCIO_SIZE 0x00100000 |
18 | #define PCIO_BASE 0xff000000 | ||
18 | 19 | ||
19 | #define IO_SPACE_LIMIT 0xffff | 20 | #define IO_SPACE_LIMIT 0xffff |
20 | 21 | ||
diff --git a/arch/arm/mach-footbridge/include/mach/dma.h b/arch/arm/mach-footbridge/include/mach/isa-dma.h index 62afd213effb..5bd4a0d338a8 100644 --- a/arch/arm/mach-footbridge/include/mach/dma.h +++ b/arch/arm/mach-footbridge/include/mach/isa-dma.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/mach-footbridge/include/mach/dma.h | 2 | * arch/arm/mach-footbridge/include/mach/isa-dma.h |
3 | * | 3 | * |
4 | * Architecture DMA routines | 4 | * Architecture DMA routines |
5 | * | 5 | * |
diff --git a/arch/arm/mach-footbridge/include/mach/memory.h b/arch/arm/mach-footbridge/include/mach/memory.h index 6ae2f1a07ab9..cb16e59d87b6 100644 --- a/arch/arm/mach-footbridge/include/mach/memory.h +++ b/arch/arm/mach-footbridge/include/mach/memory.h | |||
@@ -30,9 +30,18 @@ | |||
30 | extern unsigned long __virt_to_bus(unsigned long); | 30 | extern unsigned long __virt_to_bus(unsigned long); |
31 | extern unsigned long __bus_to_virt(unsigned long); | 31 | extern unsigned long __bus_to_virt(unsigned long); |
32 | #endif | 32 | #endif |
33 | #define __virt_to_bus __virt_to_bus | ||
34 | #define __bus_to_virt __bus_to_virt | ||
33 | 35 | ||
34 | #elif defined(CONFIG_FOOTBRIDGE_HOST) | 36 | #elif defined(CONFIG_FOOTBRIDGE_HOST) |
35 | 37 | ||
38 | /* | ||
39 | * The footbridge is programmed to expose the system RAM at the corresponding | ||
40 | * address. So, if PAGE_OFFSET is 0xc0000000, RAM appears at 0xe0000000. | ||
41 | * If 0x80000000, then its exposed at 0xa0000000 on the bus. etc. | ||
42 | * The only requirement is that the RAM isn't placed at bus address 0 which | ||
43 | * would clash with VGA cards. | ||
44 | */ | ||
36 | #define __virt_to_bus(x) ((x) - 0xe0000000) | 45 | #define __virt_to_bus(x) ((x) - 0xe0000000) |
37 | #define __bus_to_virt(x) ((x) + 0xe0000000) | 46 | #define __bus_to_virt(x) ((x) + 0xe0000000) |
38 | 47 | ||