mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
Sansa Clip: revert 19353
If we don't set pin B6 to 1, display can go off at random times git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19364 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6471b3c81a
commit
9856a37de3
1 changed files with 2 additions and 0 deletions
|
|
@ -186,10 +186,12 @@ void lcd_init_device(void)
|
||||||
ams3525_dbop_init();
|
ams3525_dbop_init();
|
||||||
|
|
||||||
GPIOA_DIR |= 0x33; /* pins 5:4 and 1:0 out */
|
GPIOA_DIR |= 0x33; /* pins 5:4 and 1:0 out */
|
||||||
|
GPIOB_DIR |= 0x40; /* pin 6 out */
|
||||||
|
|
||||||
GPIOA_PIN(1) = (1<<1);
|
GPIOA_PIN(1) = (1<<1);
|
||||||
GPIOA_PIN(0) = (1<<0);
|
GPIOA_PIN(0) = (1<<0);
|
||||||
GPIOA_PIN(4) = 0;
|
GPIOA_PIN(4) = 0;
|
||||||
|
GPIOB_PIN(6) = (1<<6);
|
||||||
|
|
||||||
/* Set display clock (divide ratio = 1) and oscillator frequency (1) */
|
/* Set display clock (divide ratio = 1) and oscillator frequency (1) */
|
||||||
lcd_write_command(LCD_SET_DISPLAY_CLOCK_AND_OSC_FREQ);
|
lcd_write_command(LCD_SET_DISPLAY_CLOCK_AND_OSC_FREQ);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue