summaryrefslogtreecommitdiff
path: root/include/asm-arm/arch-at91/io.h
diff options
context:
space:
mode:
authorJens Scharsig <js_at_ng@scharsoft.de>2010-02-03 22:46:01 +0100
committerTom Rix <Tom.Rix@windriver.com>2010-02-12 12:31:54 -0600
commit5d8e359c38d3ab80015e47d0cab792efe75cacf9 (patch)
treef849cd642eddfc10a66dd76d8e39ec01413b946b /include/asm-arm/arch-at91/io.h
parent425de62d40f84524b90e776b141b060cd438a9fe (diff)
downloadu-boot-imx-5d8e359c38d3ab80015e47d0cab792efe75cacf9.zip
u-boot-imx-5d8e359c38d3ab80015e47d0cab792efe75cacf9.tar.gz
u-boot-imx-5d8e359c38d3ab80015e47d0cab792efe75cacf9.tar.bz2
add c structures for SoC access
* add's c structures for SoC access to pheriperials head files Signed-off-by: Jens Scharsig <js_at_ng@scharsoft.de>
Diffstat (limited to 'include/asm-arm/arch-at91/io.h')
-rw-r--r--include/asm-arm/arch-at91/io.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-arm/arch-at91/io.h b/include/asm-arm/arch-at91/io.h
index f09b2df..38d185e 100644
--- a/include/asm-arm/arch-at91/io.h
+++ b/include/asm-arm/arch-at91/io.h
@@ -23,6 +23,8 @@
#include <asm/io.h>
+#ifdef CONFIG_AT91_LEGACY
+
static inline unsigned int at91_sys_read(unsigned int reg_offset)
{
void *addr = (void *)AT91_BASE_SYS;
@@ -36,5 +38,6 @@ static inline void at91_sys_write(unsigned int reg_offset, unsigned long value)
__raw_writel(value, addr + reg_offset);
}
+#endif
#endif