diff options
author | Tobias Diedrich <ranma+coreboot@tdiedrich.de> | 2010-06-19 03:04:22 +0000 |
---|---|---|
committer | Tobias Diedrich <ranma+coreboot@tdiedrich.de> | 2010-06-19 03:04:22 +0000 |
commit | 23f6bc9b3d2a5a79fc8ab78b373e830cad514116 (patch) | |
tree | 9223feb92d7a4a94c2445fa446b4c7d5a9095cc2 /firmware/target/arm | |
parent | b393f091c25d8bf3257258904741dfbbdc1db0eb (diff) | |
download | rockbox-23f6bc9b3d2a5a79fc8ab78b373e830cad514116.tar.gz rockbox-23f6bc9b3d2a5a79fc8ab78b373e830cad514116.zip |
Of course there's no mdelay on c200(v1), so just use udelay
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26951 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm')
-rw-r--r-- | firmware/target/arm/lcd-c200_c200v2.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/firmware/target/arm/lcd-c200_c200v2.c b/firmware/target/arm/lcd-c200_c200v2.c index b4b66191fb..858828f88a 100644 --- a/firmware/target/arm/lcd-c200_c200v2.c +++ b/firmware/target/arm/lcd-c200_c200v2.c | |||
@@ -26,7 +26,6 @@ | |||
26 | #include "kernel.h" | 26 | #include "kernel.h" |
27 | #include "system.h" | 27 | #include "system.h" |
28 | #ifdef SANSA_C200V2 | 28 | #ifdef SANSA_C200V2 |
29 | #include "system-target.h" | ||
30 | #include "dbop-as3525.h" | 29 | #include "dbop-as3525.h" |
31 | #endif | 30 | #endif |
32 | 31 | ||
@@ -170,7 +169,7 @@ static inline void as3525_dbop_init(void) | |||
170 | DBOP_TIMPOL_01 = 0x6e167; | 169 | DBOP_TIMPOL_01 = 0x6e167; |
171 | DBOP_TIMPOL_23 = 0xa167e06f; | 170 | DBOP_TIMPOL_23 = 0xa167e06f; |
172 | 171 | ||
173 | mdelay(20); | 172 | udelay(20000); |
174 | } | 173 | } |
175 | 174 | ||
176 | #endif | 175 | #endif |
@@ -181,27 +180,27 @@ static void lcd_reset(void) | |||
181 | /* reset lcd */ | 180 | /* reset lcd */ |
182 | GPIOB_DIR |= (1<<6); | 181 | GPIOB_DIR |= (1<<6); |
183 | GPIOB_PIN(6) = 0; /* pull reset low */ | 182 | GPIOB_PIN(6) = 0; /* pull reset low */ |
184 | mdelay(20); | 183 | udelay(20000); |
185 | GPIOB_PIN(6) = 1<<6; /* release reset */ | 184 | GPIOB_PIN(6) = 1<<6; /* release reset */ |
186 | mdelay(20); | 185 | udelay(20000); |
187 | #endif | 186 | #endif |
188 | lcd_send_command(R_STANDBY_OFF, 0); | 187 | lcd_send_command(R_STANDBY_OFF, 0); |
189 | mdelay(20); | 188 | udelay(20000); |
190 | 189 | ||
191 | lcd_send_command(R_OSCILLATION_MODE, 0x01); | 190 | lcd_send_command(R_OSCILLATION_MODE, 0x01); |
192 | mdelay(20); | 191 | udelay(20000); |
193 | 192 | ||
194 | lcd_send_command(R_DCDC_AMP_ONOFF, 0x01); | 193 | lcd_send_command(R_DCDC_AMP_ONOFF, 0x01); |
195 | mdelay(20); | 194 | udelay(20000); |
196 | 195 | ||
197 | lcd_send_command(R_DCDC_AMP_ONOFF, 0x09); | 196 | lcd_send_command(R_DCDC_AMP_ONOFF, 0x09); |
198 | mdelay(20); | 197 | udelay(20000); |
199 | 198 | ||
200 | lcd_send_command(R_DCDC_AMP_ONOFF, 0x0b); | 199 | lcd_send_command(R_DCDC_AMP_ONOFF, 0x0b); |
201 | mdelay(20); | 200 | udelay(20000); |
202 | 201 | ||
203 | lcd_send_command(R_DCDC_AMP_ONOFF, 0x0f); | 202 | lcd_send_command(R_DCDC_AMP_ONOFF, 0x0f); |
204 | mdelay(20); | 203 | udelay(20000); |
205 | 204 | ||
206 | lcd_send_command(R_DRIVER_OUTPUT_MODE, 0x07); | 205 | lcd_send_command(R_DRIVER_OUTPUT_MODE, 0x07); |
207 | 206 | ||
@@ -231,7 +230,7 @@ static void lcd_reset(void) | |||
231 | lcd_send_command(R_X_ADDR_AREA, 0); /* x1 */ | 230 | lcd_send_command(R_X_ADDR_AREA, 0); /* x1 */ |
232 | lcd_send_command(LCD_WIDTH - 1, 0); /* x2 */ | 231 | lcd_send_command(LCD_WIDTH - 1, 0); /* x2 */ |
233 | 232 | ||
234 | mdelay(100); | 233 | udelay(100000); |
235 | 234 | ||
236 | lcd_send_command(R_DISPLAY_ON, 0); | 235 | lcd_send_command(R_DISPLAY_ON, 0); |
237 | } | 236 | } |