sansa clip+: properly reset display using the reset pin

Change-Id: Ic4bb85cfca4e21d908e187381b868d3f7ef18f88
This commit is contained in:
Bertrik Sikken 2012-03-19 21:00:06 +01:00
parent be10817e1c
commit bb6ac6fcba

View file

@ -41,8 +41,10 @@ int lcd_hw_init(void)
/* configure GPIO B3 (display type detect) as input */
GPIOB_DIR &= ~(1<<3);
/* set GPIO A5 (display RESET# ?) */
/* reset display using GPIO A5 (display RESET#) */
GPIOA_DIR |= (1<<5);
GPIOA_PIN(5) = 0;
udelay(1000);
GPIOA_PIN(5) = (1<<5);
/* detect display type on GPIO B3 */