summaryrefslogtreecommitdiff
path: root/firmware/export/as3525.h
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-04-03 17:10:44 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-04-03 17:10:44 +0000
commite1a1df69fc5c77bf57c5bb51ca5a084070886872 (patch)
treeb0728426f7109d36e5cc30df33b4754712611764 /firmware/export/as3525.h
parent27f29904eccceee1725b4dd1d004748f76531e0a (diff)
downloadrockbox-e1a1df69fc5c77bf57c5bb51ca5a084070886872.tar.gz
rockbox-e1a1df69fc5c77bf57c5bb51ca5a084070886872.zip
Clipv2: fix grey lcd output
We can write to DBOP_DOUT in 8 bits mode : bits 7..0 are mapped to the LCD, not bits 15..12 and 3..0 like on Clipv1 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25455 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/as3525.h')
-rw-r--r--firmware/export/as3525.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/export/as3525.h b/firmware/export/as3525.h
index 3c0c2a3ecf..4a9ab5f40e 100644
--- a/firmware/export/as3525.h
+++ b/firmware/export/as3525.h
@@ -115,6 +115,7 @@
115#define DBOP_CTRL (*(volatile unsigned long *)(DBOP_BASE + 0x08)) 115#define DBOP_CTRL (*(volatile unsigned long *)(DBOP_BASE + 0x08))
116#define DBOP_STAT (*(volatile unsigned long *)(DBOP_BASE + 0x0C)) 116#define DBOP_STAT (*(volatile unsigned long *)(DBOP_BASE + 0x0C))
117/* default is 16bit, but we switch to 32bit for some targets for better speed */ 117/* default is 16bit, but we switch to 32bit for some targets for better speed */
118#define DBOP_DOUT8 (*(volatile unsigned char*)(DBOP_BASE + 0x10))
118#define DBOP_DOUT (*(volatile unsigned short*)(DBOP_BASE + 0x10)) 119#define DBOP_DOUT (*(volatile unsigned short*)(DBOP_BASE + 0x10))
119#define DBOP_DOUT16 (*(volatile unsigned short*)(DBOP_BASE + 0x10)) 120#define DBOP_DOUT16 (*(volatile unsigned short*)(DBOP_BASE + 0x10))
120#define DBOP_DOUT32 (*(volatile unsigned long *)(DBOP_BASE + 0x10)) 121#define DBOP_DOUT32 (*(volatile unsigned long *)(DBOP_BASE + 0x10))