diff options
Diffstat (limited to 'arch/arm/mach-picoxcell/include/mach/map.h')
-rw-r--r-- | arch/arm/mach-picoxcell/include/mach/map.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/arm/mach-picoxcell/include/mach/map.h b/arch/arm/mach-picoxcell/include/mach/map.h new file mode 100644 index 000000000000..c06afad218bb --- /dev/null +++ b/arch/arm/mach-picoxcell/include/mach/map.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2011 Picochip Ltd., Jamie Iles | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License as published by | ||
6 | * the Free Software Foundation; either version 2 of the License, or | ||
7 | * (at your option) any later version. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | */ | ||
14 | #ifndef __PICOXCELL_MAP_H__ | ||
15 | #define __PICOXCELL_MAP_H__ | ||
16 | |||
17 | #define PHYS_TO_IO(x) (((x) & 0x00ffffff) | 0xfe000000) | ||
18 | |||
19 | #ifdef __ASSEMBLY__ | ||
20 | #define IO_ADDRESS(x) PHYS_TO_IO((x)) | ||
21 | #else | ||
22 | #define IO_ADDRESS(x) (void __iomem __force *)(PHYS_TO_IO((x))) | ||
23 | #endif | ||
24 | |||
25 | #endif /* __PICOXCELL_MAP_H__ */ | ||