| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* | 
| Lennert Buytenhek | c852ac8 | 2006-09-18 23:26:25 +0100 | [diff] [blame] | 2 | * include/asm-arm/arch-iop33x/hardware.h | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | */ | 
| Lennert Buytenhek | c852ac8 | 2006-09-18 23:26:25 +0100 | [diff] [blame] | 4 |  | 
|  | 5 | #ifndef __HARDWARE_H | 
|  | 6 | #define __HARDWARE_H | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 |  | 
|  | 8 | #include <asm/types.h> | 
|  | 9 |  | 
|  | 10 | /* | 
|  | 11 | * Note about PCI IO space mappings | 
|  | 12 | * | 
|  | 13 | * To make IO space accesses efficient, we store virtual addresses in | 
|  | 14 | * the IO resources. | 
|  | 15 | * | 
|  | 16 | * The PCI IO space is located at virtual 0xfe000000 from physical | 
|  | 17 | * 0x90000000.  The PCI BARs must be programmed with physical addresses, | 
|  | 18 | * but when we read them, we convert them to virtual addresses.  See | 
| Lennert Buytenhek | c852ac8 | 2006-09-18 23:26:25 +0100 | [diff] [blame] | 19 | * arch/arm/mach-iop3xx/iop3xx-pci.c | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 | */ | 
| Lennert Buytenhek | c852ac8 | 2006-09-18 23:26:25 +0100 | [diff] [blame] | 21 | #define pcibios_assign_all_busses()	1 | 
| Lennert Buytenhek | 7e9740b | 2006-09-18 23:17:36 +0100 | [diff] [blame] | 22 | #define PCIBIOS_MIN_IO		0x00000000 | 
|  | 23 | #define PCIBIOS_MIN_MEM		0x00000000 | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 24 |  | 
| Lennert Buytenhek | c680b77 | 2006-09-18 23:24:52 +0100 | [diff] [blame] | 25 | #ifndef __ASSEMBLY__ | 
| Lennert Buytenhek | c852ac8 | 2006-09-18 23:26:25 +0100 | [diff] [blame] | 26 | void iop33x_init_irq(void); | 
|  | 27 |  | 
| Lennert Buytenhek | c680b77 | 2006-09-18 23:24:52 +0100 | [diff] [blame] | 28 | extern struct platform_device iop33x_uart0_device; | 
|  | 29 | extern struct platform_device iop33x_uart1_device; | 
|  | 30 | #endif | 
|  | 31 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 32 |  | 
|  | 33 | /* | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 34 | * Generic chipset bits | 
|  | 35 | * | 
|  | 36 | */ | 
| Lennert Buytenhek | c852ac8 | 2006-09-18 23:26:25 +0100 | [diff] [blame] | 37 | #include "iop33x.h" | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 38 |  | 
|  | 39 | /* | 
|  | 40 | * Board specific bits | 
|  | 41 | */ | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 42 | #include "iq80331.h" | 
|  | 43 | #include "iq80332.h" | 
|  | 44 |  | 
| Lennert Buytenhek | c852ac8 | 2006-09-18 23:26:25 +0100 | [diff] [blame] | 45 |  | 
|  | 46 | #endif |