projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add c structures for SoC access
[platform/kernel/u-boot.git]
/
include
/
asm-arm
/
arch-at91
/
io.h
diff --git
a/include/asm-arm/arch-at91/io.h
b/include/asm-arm/arch-at91/io.h
index
f09b2df
..
38d185e
100644
(file)
--- 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