summaryrefslogtreecommitdiff
path: root/drivers/sed13806.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/sed13806.c')
-rw-r--r--drivers/sed13806.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/sed13806.c b/drivers/sed13806.c
index 114a247..6996ca8 100644
--- a/drivers/sed13806.c
+++ b/drivers/sed13806.c
@@ -36,9 +36,13 @@
#define writeByte(ptrReg,value) \
*(volatile unsigned char *)(sed13806.isaBase + ptrReg) = value
+#ifdef CONFIG_TOTAL5200
+#define writeWord(ptrReg,value) \
+ (*(volatile unsigned short *)(sed13806.isaBase + ptrReg) = value)
+#else
#define writeWord(ptrReg,value) \
(*(volatile unsigned short *)(sed13806.isaBase + ptrReg) = ((value >> 8 ) & 0xff) | ((value << 8) & 0xff00))
-
+#endif
GraphicDevice sed13806;