diff options
author | Marek Belisko <marek.belisko@open-nandra.com> | 2010-11-18 14:29:27 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-11-19 09:34:00 +0100 |
commit | 83a9266a08b1c2dd80d58712c7a1ffc7a7daddac (patch) | |
tree | fd8c79375b540488d9d77bf57fdd6adc9943016b | |
parent | 820873b5d6053ac2c355f1c1e31b89e3f42f2e9a (diff) | |
download | barebox-83a9266a08b1c2dd80d58712c7a1ffc7a7daddac.tar.gz barebox-83a9266a08b1c2dd80d58712c7a1ffc7a7daddac.tar.xz |
common: Add define for IOMEM helper macro.
IOMEM helper macro is used for address casting which then
is used in read(bwl)/write(bwl) functions.
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | include/common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h index 394542f762..a14bfc10ce 100644 --- a/include/common.h +++ b/include/common.h @@ -220,4 +220,6 @@ int memory_display(char *addr, ulong offs, ulong nbytes, int size); extern const char version_string[]; +#define IOMEM(addr) ((void __force __iomem *)(addr)) + #endif /* __COMMON_H_ */ |