summaryrefslogtreecommitdiffstats
path: root/firmware/export/pp6100.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2014-05-05 23:23:50 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2014-05-11 19:56:43 +0200
commit85390865b572664d5bc4e289445b1875f58fcc4f (patch)
tree90af65cea89c41ff3a1b46bd2aab3a093886bee6 /firmware/export/pp6100.h
parent46cd8ea824bcb2dbc79b76964fd429262f50ddc9 (diff)
downloadrockbox-85390865b572664d5bc4e289445b1875f58fcc4f.tar.gz
rockbox-85390865b572664d5bc4e289445b1875f58fcc4f.tar.bz2
rockbox-85390865b572664d5bc4e289445b1875f58fcc4f.zip
sansaview: fix lcd code
The lcd driver now works but is awfully slow. The trick is to put it in system mode instead of RGB and setup 16bpp. The GRAM data can then be sent directly with the SPI but since it's bit-banged and the CPU running at slow speed, full screen refresh takes over a second, even with a slightly optmised version. The OF uses a DMA mechanism with a proper LCD controller but the setup is much more complicated and doesn't work at the moment. Change-Id: I6c95d91de31bff97d0a5848b8e2078c21deb5895
Diffstat (limited to 'firmware/export/pp6100.h')
-rw-r--r--firmware/export/pp6100.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/export/pp6100.h b/firmware/export/pp6100.h
index cbfb7c5028..68d8af83f7 100644
--- a/firmware/export/pp6100.h
+++ b/firmware/export/pp6100.h
@@ -104,4 +104,6 @@
#define GPIOS 18
#define GPIOT 19
+#define DEV_INIT3 (*(volatile unsigned long *)(0x70000014))
+
#endif