1 Sep 2011 19:06
bertrik: r30408 - trunk/firmware/target/arm/as3525/sansa-clipzip
<mailer <at> svn.rockbox.org>
2011-09-01 17:06:19 GMT
2011-09-01 17:06:19 GMT
Date: 2011-09-01 19:06:19 +0200 (Thu, 01 Sep 2011)
New Revision: 30408
Log Message:
sansa clipzip: implement lcd reset in the lcd driver
Modified:
trunk/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c
Modified: trunk/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c
===================================================================
--- trunk/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c 2011-09-01 16:59:30 UTC (rev 30407)
+++ trunk/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c 2011-09-01 17:06:19 UTC (rev 30408)
<at> <at> -22,7 +22,6 <at> <at>
#include "config.h"
#include "lcd.h"
-#include "lcd-clip.h"
#include "system.h"
#include "cpu.h"
<at> <at> -35,7 +34,7 <at> <at>
#endif
/* initialises the host lcd hardware, returns the lcd type */
-int lcd_hw_init(void)
+static int lcd_hw_init(void)
{
/* configure SSP */
bitset32(&CGU_PERI, CGU_SSP_CLOCK_ENABLE);
<at> <at> -58,9 +57,11 <at> <at>
/* configure GPIO B3 (lcd type detect) as input */
GPIOB_DIR &= ~(1<<3);
- /* configure GPIO A5 (lcd reset# ?) as output and set low */
+ /* configure GPIO A5 (lcd reset#) as output and perform lcd reset */
GPIOA_DIR |= (1 << 5);
GPIOA_PIN(5) = 0;
+ sleep(HZ * 50/1000);
+ GPIOA_PIN(5) = (1 << 5);
/* detect lcd type on GPIO B3 */
return GPIOB_PIN(3) ? 1 : 0;
_______________________________________________
rockbox-cvs mailing list
rockbox-cvs <at> cool.haxx.se
http://cool.haxx.se/cgi-bin/mailman/listinfo/rockbox-cvs
RSS Feed