[U-Boot-Users] [PATCH] PHYSADDR is for physical address, KSEG1ADDR is for uncached

Vlad Lungu vlad at comsys.ro
Thu Oct 11 20:41:38 CEST 2007


IMO, KSEG1 should work for AU1X00 too, but I can't test it

Signed-off-by: Vlad Lungu <vlad at comsys.ro>
Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi at necel.com>

---
 include/asm-mips/addrspace.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/asm-mips/addrspace.h b/include/asm-mips/addrspace.h
index b8214b1..0e6abd7 100644
--- a/include/asm-mips/addrspace.h
+++ b/include/asm-mips/addrspace.h
@@ -49,7 +49,7 @@
    cannot access physical memory directly from core */
 #define UNCACHED_SDRAM(a) (((unsigned long)(a)) | 0x20000000)
 #else  /* !CONFIG_AU1X00 */
-#define UNCACHED_SDRAM(a) PHYSADDR(a)
+#define UNCACHED_SDRAM(a) KSEG1ADDR(a)
 #endif /* CONFIG_AU1X00 */
 #endif /* __ASSEMBLY__ */
 /*
--
1.5.2.2






More information about the U-Boot mailing list