summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorTobias Diedrich <ranma+coreboot@tdiedrich.de>2010-06-19 03:04:22 +0000
committerTobias Diedrich <ranma+coreboot@tdiedrich.de>2010-06-19 03:04:22 +0000
commit23f6bc9b3d2a5a79fc8ab78b373e830cad514116 (patch)
tree9223feb92d7a4a94c2445fa446b4c7d5a9095cc2 /firmware
parentb393f091c25d8bf3257258904741dfbbdc1db0eb (diff)
downloadrockbox-23f6bc9b3d2a5a79fc8ab78b373e830cad514116.tar.gz
rockbox-23f6bc9b3d2a5a79fc8ab78b373e830cad514116.tar.bz2
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')
-rw-r--r--firmware/target/arm/lcd-c200_c200v2.c21
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 @@
#include "kernel.h"
#include "system.h"
#ifdef SANSA_C200V2
-#include "system-target.h"
#include "dbop-as3525.h"
#endif
@@ -170,7 +169,7 @@ static inline void as3525_dbop_init(void)
DBOP_TIMPOL_01 = 0x6e167;
DBOP_TIMPOL_23 = 0xa167e06f;
- mdelay(20);
+ udelay(20000);
}
#endif
@@ -181,27 +180,27 @@ static void lcd_reset(void)
/* reset lcd */
GPIOB_DIR |= (1<<6);
GPIOB_PIN(6) = 0; /* pull reset low */
- mdelay(20);
+ udelay(20000);
GPIOB_PIN(6) = 1<<6; /* release reset */
- mdelay(20);
+ udelay(20000);
#endif
lcd_send_command(R_STANDBY_OFF, 0);
- mdelay(20);
+ udelay(20000);
lcd_send_command(R_OSCILLATION_MODE, 0x01);
- mdelay(20);
+ udelay(20000);
lcd_send_command(R_DCDC_AMP_ONOFF, 0x01);
- mdelay(20);
+ udelay(20000);
lcd_send_command(R_DCDC_AMP_ONOFF, 0x09);
- mdelay(20);
+ udelay(20000);
lcd_send_command(R_DCDC_AMP_ONOFF, 0x0b);
- mdelay(20);
+ udelay(20000);
lcd_send_command(R_DCDC_AMP_ONOFF, 0x0f);
- mdelay(20);
+ udelay(20000);
lcd_send_command(R_DRIVER_OUTPUT_MODE, 0x07);
@@ -231,7 +230,7 @@ static void lcd_reset(void)
lcd_send_command(R_X_ADDR_AREA, 0); /* x1 */
lcd_send_command(LCD_WIDTH - 1, 0); /* x2 */
- mdelay(100);
+ udelay(100000);
lcd_send_command(R_DISPLAY_ON, 0);
}