summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorNobuhiro Iwamatsu <iwamatsu@nigauri.org>2007-11-25 02:32:13 +0900
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>2007-11-29 01:17:31 +0900
commitfebd86b969b975289ed948f1ac0eb9722da41ced (patch)
treec7f56683085967599cd55c20f7a139a14a53df73 /drivers
parent7fc792895be3c0edf423c4038992b40345672a12 (diff)
downloadu-boot-imx-febd86b969b975289ed948f1ac0eb9722da41ced.zip
u-boot-imx-febd86b969b975289ed948f1ac0eb9722da41ced.tar.gz
u-boot-imx-febd86b969b975289ed948f1ac0eb9722da41ced.tar.bz2
sh: Update SuperH SCIF driver
- Changed volatile unsigned to vu_. - Changed Makefile for kconfig. Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Diffstat (limited to 'drivers')
-rwxr-xr-xdrivers/Makefile1
-rw-r--r--drivers/serial_sh.c30
2 files changed, 16 insertions, 15 deletions
diff --git a/drivers/Makefile b/drivers/Makefile
index 480b358..e23b011 100755
--- a/drivers/Makefile
+++ b/drivers/Makefile
@@ -65,6 +65,7 @@ COBJS-y += sed156x.o
COBJS-y += serial.o
COBJS-y += serial_max3100.o
COBJS-y += serial_xuartlite.o
+COBJS-y += serial_sh.o
COBJS-y += sm501.o
COBJS-y += smiLynxEM.o
COBJS-y += usbtty.o
diff --git a/drivers/serial_sh.c b/drivers/serial_sh.c
index fca92fd..7818632 100644
--- a/drivers/serial_sh.c
+++ b/drivers/serial_sh.c
@@ -30,24 +30,24 @@
#error "Default SCIF doesn't set....."
#endif
-#define SCSMR (volatile unsigned short *)(SCIF_BASE + 0x0)
-#define SCBRR (volatile unsigned char *)(SCIF_BASE + 0x4)
-#define SCSCR (volatile unsigned short *)(SCIF_BASE + 0x8)
-#define SCFTDR (volatile unsigned char *)(SCIF_BASE + 0xC)
-#define SCFSR (volatile unsigned short *)(SCIF_BASE + 0x10)
-#define SCFRDR (volatile unsigned char *)(SCIF_BASE + 0x14)
-#define SCFCR (volatile unsigned short *)(SCIF_BASE + 0x18)
-#define SCFDR (volatile unsigned short *)(SCIF_BASE + 0x1C)
+#define SCSMR (vu_short *)(SCIF_BASE + 0x0)
+#define SCBRR (vu_char *)(SCIF_BASE + 0x4)
+#define SCSCR (vu_short *)(SCIF_BASE + 0x8)
+#define SCFTDR (vu_char *)(SCIF_BASE + 0xC)
+#define SCFSR (vu_short *)(SCIF_BASE + 0x10)
+#define SCFRDR (vu_char *)(SCIF_BASE + 0x14)
+#define SCFCR (vu_short *)(SCIF_BASE + 0x18)
+#define SCFDR (vu_short *)(SCIF_BASE + 0x1C)
#if defined(CONFIG_SH4A)
-#define SCRFDR (volatile unsigned short *)(SCIF_BASE + 0x20)
-#define SCSPTR (volatile unsigned short *)(SCIF_BASE + 0x24)
-#define SCLSR (volatile unsigned short *)(SCIF_BASE + 0x28)
-#define SCRER (volatile unsigned short *)(SCIF_BASE + 0x2C)
+#define SCRFDR (vu_short *)(SCIF_BASE + 0x20)
+#define SCSPTR (vu_short *)(SCIF_BASE + 0x24)
+#define SCLSR (vu_short *)(SCIF_BASE + 0x28)
+#define SCRER (vu_short *)(SCIF_BASE + 0x2C)
#elif defined (CONFIG_SH4)
-#define SCSPTR (volatile unsigned short *)(SCIF_BASE + 0x20)
-#define SCLSR (volatile unsigned short *)(SCIF_BASE + 0x24)
+#define SCSPTR (vu_short *)(SCIF_BASE + 0x20)
+#define SCLSR (vu_short *)(SCIF_BASE + 0x24)
#elif defined (CONFIG_SH3)
-#define SCLSR (volatile unsigned short *)(SCIF_BASE + 0x24)
+#define SCLSR (vu_short *)(SCIF_BASE + 0x24)
#endif
#define SCR_RE (1 << 4)