summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2010-06-05 15:57:32 +0000
committerBertrik Sikken <bertrik@sikken.nl>2010-06-05 15:57:32 +0000
commit20856e1c104bcec80670fa77c58975905af1095a (patch)
treed6e150efd947121aaa698f90446e2c6b1cf7c3e4 /firmware/target/arm/as3525
parent797abbed54f83effc82c9ef13aa1d09438ada9d9 (diff)
downloadrockbox-20856e1c104bcec80670fa77c58975905af1095a.tar.gz
rockbox-20856e1c104bcec80670fa77c58975905af1095a.zip
Move delay a bit in dbop_read_input for ams sansa targets using the DBOP port for button readout
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26585 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525')
-rw-r--r--firmware/target/arm/as3525/dbop-as3525.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/dbop-as3525.c b/firmware/target/arm/as3525/dbop-as3525.c
index 66202b70b7..87bc46e145 100644
--- a/firmware/target/arm/as3525/dbop-as3525.c
+++ b/firmware/target/arm/as3525/dbop-as3525.c
@@ -83,10 +83,11 @@ unsigned short dbop_read_input(void)
83 /* make sure that the DBOP FIFO is empty */ 83 /* make sure that the DBOP FIFO is empty */
84 while ((DBOP_STAT & (1<<10)) == 0); 84 while ((DBOP_STAT & (1<<10)) == 0);
85 85
86 /* write DBOP_DOUT to pre-charge DBOP data lines with a defined level */
87 DBOP_TIMPOL_23 = 0xe007e007; /* no strobe towards lcd */
88 int delay = 10; 86 int delay = 10;
89 while (delay--) asm volatile ("nop\n"); 87 while (delay--) asm volatile ("nop\n");
88
89 /* write DBOP_DOUT to pre-charge DBOP data lines with a defined level */
90 DBOP_TIMPOL_23 = 0xe007e007; /* no strobe towards lcd */
90 DBOP_CTRL = (1 << 19) | /* tri-state output */ 91 DBOP_CTRL = (1 << 19) | /* tri-state output */
91 (1 << 16) | /* enw=1 (enable write) */ 92 (1 << 16) | /* enw=1 (enable write) */
92 (1 << 12); /* ow=1 (16-bit data width) */ 93 (1 << 12); /* ow=1 (16-bit data width) */