summaryrefslogtreecommitdiff
path: root/arch/sparc/cpu/leon2
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2013-03-05 14:40:04 +0000
committerTom Rini <trini@ti.com>2013-03-15 16:14:02 -0400
commit68794b9f73b8d4aef3ee968c567229ef4eab1f3f (patch)
tree29ae77d3ad34d3f98aaa1ae79e10eb5d49bcb842 /arch/sparc/cpu/leon2
parenteb33809f70e3d3a2c1fba043e56cca8fccedbe0c (diff)
downloadu-boot-imx-68794b9f73b8d4aef3ee968c567229ef4eab1f3f.zip
u-boot-imx-68794b9f73b8d4aef3ee968c567229ef4eab1f3f.tar.gz
u-boot-imx-68794b9f73b8d4aef3ee968c567229ef4eab1f3f.tar.bz2
sparc: Fix build warnings in serial.c
These macros are already defined in io.h so should not be declared in serial.c. serial.c:38:0: warning: "READ_BYTE" redefined /home/sjg/c/src/third_party/u-boot/files/include/asm/io.h:36:0: note: this is the location of the previous definition serial.c:39:0: warning: "READ_HWORD" redefined /home/sjg/c/src/third_party/u-boot/files/include/asm/io.h:37:0: note: this is the location of the previous definition serial.c:40:0: warning: "READ_WORD" redefined /home/sjg/c/src/third_party/u-boot/files/include/asm/io.h:38:0: note: this is the location of the previous definition serial.c:41:0: warning: "READ_DWORD" redefined /home/sjg/c/src/third_party/u-boot/files/include/asm/io.h:39:0: note: this is the location of the previous definition Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sparc/cpu/leon2')
-rw-r--r--arch/sparc/cpu/leon2/serial.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/sparc/cpu/leon2/serial.c b/arch/sparc/cpu/leon2/serial.c
index 40d5b01..b41ee01 100644
--- a/arch/sparc/cpu/leon2/serial.c
+++ b/arch/sparc/cpu/leon2/serial.c
@@ -31,16 +31,6 @@
DECLARE_GLOBAL_DATA_PTR;
-/* Force cache miss each time a serial controller reg is read */
-#define CACHE_BYPASS 1
-
-#ifdef CACHE_BYPASS
-#define READ_BYTE(var) SPARC_NOCACHE_READ_BYTE((unsigned int)&(var))
-#define READ_HWORD(var) SPARC_NOCACHE_READ_HWORD((unsigned int)&(var))
-#define READ_WORD(var) SPARC_NOCACHE_READ((unsigned int)&(var))
-#define READ_DWORD(var) SPARC_NOCACHE_READ_DWORD((unsigned int)&(var))
-#endif
-
static int leon2_serial_init(void)
{
LEON2_regs *leon2 = (LEON2_regs *) LEON2_PREGS;