diff options
Diffstat (limited to 'include/asm-arm/arch-omap/io.h')
| -rw-r--r-- | include/asm-arm/arch-omap/io.h | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/include/asm-arm/arch-omap/io.h b/include/asm-arm/arch-omap/io.h index 3d5bcd545082..f5bcc9a1aed6 100644 --- a/include/asm-arm/arch-omap/io.h +++ b/include/asm-arm/arch-omap/io.h | |||
| @@ -52,23 +52,33 @@ | |||
| 52 | * ---------------------------------------------------------------------------- | 52 | * ---------------------------------------------------------------------------- |
| 53 | */ | 53 | */ |
| 54 | 54 | ||
| 55 | #define PCIO_BASE 0 | ||
| 56 | |||
| 55 | #if defined(CONFIG_ARCH_OMAP1) | 57 | #if defined(CONFIG_ARCH_OMAP1) |
| 58 | |||
| 56 | #define IO_PHYS 0xFFFB0000 | 59 | #define IO_PHYS 0xFFFB0000 |
| 57 | #define IO_OFFSET -0x01000000 /* Virtual IO = 0xfefb0000 */ | 60 | #define IO_OFFSET 0x01000000 /* Virtual IO = 0xfefb0000 */ |
| 58 | #define IO_SIZE 0x40000 | 61 | #define IO_SIZE 0x40000 |
| 62 | #define IO_VIRT (IO_PHYS - IO_OFFSET) | ||
| 63 | #define IO_ADDRESS(pa) ((pa) - IO_OFFSET) | ||
| 64 | #define io_p2v(pa) ((pa) - IO_OFFSET) | ||
| 65 | #define io_v2p(va) ((va) + IO_OFFSET) | ||
| 59 | 66 | ||
| 60 | #elif defined(CONFIG_ARCH_OMAP2) | 67 | #elif defined(CONFIG_ARCH_OMAP2) |
| 61 | #define IO_PHYS 0x48000000 /* L4 peripherals; other stuff has to be mapped * | ||
| 62 | * manually. */ | ||
| 63 | #define IO_OFFSET 0x90000000 /* Virtual IO = 0xd8000000 */ | ||
| 64 | #define IO_SIZE 0x08000000 | ||
| 65 | #endif | ||
| 66 | 68 | ||
| 67 | #define IO_VIRT (IO_PHYS + IO_OFFSET) | 69 | /* We map both L3 and L4 on OMAP2 */ |
| 68 | #define IO_ADDRESS(x) ((x) + IO_OFFSET) | 70 | #define L3_24XX_PHYS L3_24XX_BASE /* 0x68000000 */ |
| 69 | #define PCIO_BASE 0 | 71 | #define L3_24XX_VIRT 0xf8000000 |
| 70 | #define io_p2v(x) ((x) + IO_OFFSET) | 72 | #define L3_24XX_SIZE SZ_1M /* 44kB of 128MB used, want 1MB sect */ |
| 71 | #define io_v2p(x) ((x) - IO_OFFSET) | 73 | #define L4_24XX_PHYS L4_24XX_BASE /* 0x48000000 */ |
| 74 | #define L4_24XX_VIRT 0xd8000000 | ||
| 75 | #define L4_24XX_SIZE SZ_1M /* 1MB of 128MB used, want 1MB sect */ | ||
| 76 | #define IO_OFFSET 0x90000000 | ||
| 77 | #define IO_ADDRESS(pa) ((pa) + IO_OFFSET) /* Works for L3 and L4 */ | ||
| 78 | #define io_p2v(pa) ((pa) + IO_OFFSET) /* Works for L3 and L4 */ | ||
| 79 | #define io_v2p(va) ((va) - IO_OFFSET) /* Works for L3 and L4 */ | ||
| 80 | |||
| 81 | #endif | ||
| 72 | 82 | ||
| 73 | #ifndef __ASSEMBLER__ | 83 | #ifndef __ASSEMBLER__ |
| 74 | 84 | ||
