--- arch/arm/mach-footbridge/include/mach/hardware.h 2009-12-28 17:08:47.000000000 -0500 +++ arch/arm/mach-footbridge/include/mach/hardware.h 2009-12-26 03:51:59.000000000 -0500 @@ -23,6 +23,10 @@ * 0xf9000000 0x50000000 1MB Cache flush * 0xf0000000 0x80000000 16MB ISA memory */ + +#ifdef CONFIG_MMU + +/* Virtual addresses */ #define XBUS_SIZE 0x00100000 #define XBUS_BASE 0xff800000 @@ -44,6 +48,33 @@ #define PCIMEM_SIZE 0x01000000 #define PCIMEM_BASE 0xf0000000 +#else + +/* Physical addresses*/ +#define XBUS_SIZE 0x00100000 +#define XBUS_BASE 0x40000000 + +#define ARMCSR_SIZE 0x00100000 +#define ARMCSR_BASE 0x42000000 + +#define WFLUSH_SIZE 0x00100000 +#define WFLUSH_BASE 0x78000000 + +#define PCIIACK_SIZE 0x00100000 +#define PCIIACK_BASE 0x79000000 + +#define PCICFG1_SIZE 0x01000000 +#define PCICFG1_BASE 0x7a000000 + +#define PCICFG0_SIZE 0x01000000 +#define PCICFG0_BASE 0x7b000000 + +#define PCIMEM_SIZE 0x01000000 +#define PCIMEM_BASE 0x80000000 + +#endif + + #define XBUS_LEDS ((volatile unsigned char *)(XBUS_BASE + 0x12000)) #define XBUS_LED_AMBER (1 << 0) #define XBUS_LED_GREEN (1 << 1) --- arch/arm/mach-footbridge/include/mach/io.h 2009-12-28 17:08:47.000000000 -0500 +++ arch/arm/mach-footbridge/include/mach/io.h 2009-12-26 03:51:51.000000000 -0500 @@ -14,8 +14,20 @@ #ifndef __ASM_ARM_ARCH_IO_H #define __ASM_ARM_ARCH_IO_H -#define PCIO_SIZE 0x00100000 -#define PCIO_BASE 0xff000000 + +#ifdef CONFIG_MMU + +/* Virtual addresses */ +#define PCIO_SIZE 0x00100000 +#define PCIO_BASE 0xff000000 + +#else + +/* Physical addresses */ +#define PCIO_SIZE 0x00100000 +#define PCIO_BASE 0x7c000000 + +#endif #define IO_SPACE_LIMIT 0xffff