diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/target/arm/as3525/sansa-e200v2/button-e200v2.c | 3 | ||||
-rw-r--r-- | firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/sansa-e200v2/button-e200v2.c b/firmware/target/arm/as3525/sansa-e200v2/button-e200v2.c index 915475353c..0e0e157a54 100644 --- a/firmware/target/arm/as3525/sansa-e200v2/button-e200v2.c +++ b/firmware/target/arm/as3525/sansa-e200v2/button-e200v2.c | |||
@@ -154,6 +154,9 @@ unsigned short button_read_dbop(void) | |||
154 | DBOP_CTRL |= (1<<15); /* start read */ | 154 | DBOP_CTRL |= (1<<15); /* start read */ |
155 | while (!(DBOP_STAT & (1<<16))); /* wait for valid data */ | 155 | while (!(DBOP_STAT & (1<<16))); /* wait for valid data */ |
156 | 156 | ||
157 | int delay=10; | ||
158 | while(delay--); /* short delay before reading */ | ||
159 | |||
157 | _dbop_din = DBOP_DIN; /* Read dbop data*/ | 160 | _dbop_din = DBOP_DIN; /* Read dbop data*/ |
158 | 161 | ||
159 | /* Reset dbop for output */ | 162 | /* Reset dbop for output */ |
diff --git a/firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c b/firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c index 840d3c4c3c..ece773f2fa 100644 --- a/firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c +++ b/firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c | |||
@@ -138,6 +138,10 @@ static void lcd_write_cmd(int cmd) | |||
138 | /* Wait for fifo to empty */ | 138 | /* Wait for fifo to empty */ |
139 | while ((DBOP_STAT & (1<<10)) == 0); | 139 | while ((DBOP_STAT & (1<<10)) == 0); |
140 | 140 | ||
141 | /* Fuze OF has this loop and it seems to help us now also */ | ||
142 | int delay=8; | ||
143 | while(delay--); | ||
144 | |||
141 | DBOP_TIMPOL_23 = 0xa167e06f; | 145 | DBOP_TIMPOL_23 = 0xa167e06f; |
142 | } | 146 | } |
143 | 147 | ||