Sansa clip+: fix display brightness for players with newer OLED controller type (and reorganise the variant detection a bit in the process)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27522 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Bertrik Sikken 2010-07-22 15:31:24 +00:00
parent 10e79de27c
commit 55a4520f07
7 changed files with 49 additions and 76 deletions

View file

@ -26,7 +26,7 @@
#include "system.h"
#include "cpu.h"
void lcd_hw_init(int *offset)
int lcd_hw_init(void)
{
bitset32(&CGU_PERI, CGU_SSP_CLOCK_ENABLE);
@ -41,7 +41,7 @@ void lcd_hw_init(int *offset)
GPIOB_PIN(7) = 0;
GPIOA_PIN(5) = (1<<5);
*offset = GPIOB_PIN(3) ? 0 : 2;
return GPIOB_PIN(3) ? 1 : 0;
}
void lcd_write_command(int byte)
@ -68,3 +68,9 @@ void lcd_write_data(const fb_data* p_bytes, int count)
SSP_DATA = *p_bytes++;
}
}
void lcd_enable_power(bool onoff)
{
(void) onoff;
}