mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
One more try: Fix remaining reds and yellows
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20335 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7e7d8ebfef
commit
9771c9c771
8 changed files with 80 additions and 77 deletions
|
|
@ -181,29 +181,6 @@ static void LCD_SPI_stop(void)
|
|||
s3c_regclr32(&CLKCON, 0x40000); /* disable SPI clock */
|
||||
}
|
||||
|
||||
static void LCD_SPI_powerdown(void)
|
||||
{
|
||||
lcd_powered = false;
|
||||
|
||||
LCD_SPI_start();
|
||||
LCD_SPI_setreg(0x04, 0x00);
|
||||
LCD_SPI_stop();
|
||||
|
||||
reset_LCD(false); /* This makes a big difference on power */
|
||||
LCD_CTRL_clock(false);
|
||||
}
|
||||
|
||||
static void LCD_SPI_powerup(void)
|
||||
{
|
||||
LCD_CTRL_clock(true);
|
||||
|
||||
LCD_SPI_start();
|
||||
LCD_SPI_setreg(0x04, 0x01);
|
||||
LCD_SPI_stop();
|
||||
|
||||
lcd_powered = true;
|
||||
}
|
||||
|
||||
static void LCD_SPI_init(void)
|
||||
{
|
||||
/*
|
||||
|
|
@ -281,6 +258,18 @@ void lcd_init_device(void)
|
|||
}
|
||||
|
||||
#if defined(HAVE_LCD_SLEEP)
|
||||
static void LCD_SPI_powerdown(void)
|
||||
{
|
||||
lcd_powered = false;
|
||||
|
||||
LCD_SPI_start();
|
||||
LCD_SPI_setreg(0x04, 0x00);
|
||||
LCD_SPI_stop();
|
||||
|
||||
reset_LCD(false); /* This makes a big difference on power */
|
||||
LCD_CTRL_clock(false);
|
||||
}
|
||||
|
||||
void lcd_sleep(void)
|
||||
{
|
||||
if (lcd_powered)
|
||||
|
|
@ -295,6 +284,17 @@ void lcd_sleep(void)
|
|||
#endif
|
||||
|
||||
#if defined(HAVE_LCD_ENABLE)
|
||||
static void LCD_SPI_powerup(void)
|
||||
{
|
||||
LCD_CTRL_clock(true);
|
||||
|
||||
LCD_SPI_start();
|
||||
LCD_SPI_setreg(0x04, 0x01);
|
||||
LCD_SPI_stop();
|
||||
|
||||
lcd_powered = true;
|
||||
}
|
||||
|
||||
void lcd_enable(bool state)
|
||||
{
|
||||
if (state == lcd_on)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue