[Fix Red] define lcd_awake for targets with lcd_sleep

Change-Id: I62f8f7908f2877d4b255075120f87e3c9a375f66
This commit is contained in:
William Wilgus 2025-01-05 12:08:18 -05:00
parent 734cc3e8d1
commit 5d9b01b9ed
11 changed files with 54 additions and 0 deletions

View file

@ -171,6 +171,11 @@ void INIT_ATTR lcd_init_device(void)
lcd_sync_settings(); lcd_sync_settings();
} }
void lcd_awake(void)
{
/* Nothing to do */
}
void lcd_sleep(void) void lcd_sleep(void)
{ {
if (!lcd_powered) if (!lcd_powered)

View file

@ -305,6 +305,11 @@ static void lcd_power_off(void)
lcd_write_reg(R_POWER_CONTROL1, 0x0000); lcd_write_reg(R_POWER_CONTROL1, 0x0000);
} }
void lcd_awake(void)
{
/* Nothing to do */
}
void lcd_sleep(void) void lcd_sleep(void)
{ {
if (power_on) if (power_on)

View file

@ -259,6 +259,11 @@ static void lcd_power_off(void)
/* The method is unknown */ /* The method is unknown */
} }
void lcd_awake(void)
{
/* Nothing to do */
}
void lcd_sleep(void) void lcd_sleep(void)
{ {
if (power_on) if (power_on)

View file

@ -274,6 +274,11 @@ static void lcd_power_off(void)
lcd_write_reg(R_POWER_CONTROL3, 0x080d); lcd_write_reg(R_POWER_CONTROL3, 0x080d);
} }
void lcd_awake(void)
{
/* Nothing to do */
}
void lcd_sleep(void) void lcd_sleep(void)
{ {
if (power_on) if (power_on)

View file

@ -260,6 +260,11 @@ static void LCD_SPI_powerdown(void)
LCD_CTRL_clock(false); LCD_CTRL_clock(false);
} }
void lcd_awake(void)
{
/* Nothing to do */
}
void lcd_sleep(void) void lcd_sleep(void)
{ {
if (lcd_powered) if (lcd_powered)

View file

@ -417,6 +417,11 @@ static void lcd_power_off(void)
lcd_write_reg(R_POWER_CONTROL1, 0x0000); lcd_write_reg(R_POWER_CONTROL1, 0x0000);
} }
void lcd_awake(void)
{
/* Nothing to do */
}
void lcd_sleep(void) void lcd_sleep(void)
{ {
if (power_on) if (power_on)

View file

@ -457,6 +457,11 @@ void lcd_enable(bool on)
#endif #endif
#if defined(HAVE_LCD_SLEEP) #if defined(HAVE_LCD_SLEEP)
void lcd_awake(void)
{
/* Nothing to do */
}
void lcd_sleep(void) void lcd_sleep(void)
{ {
LCD_REG_6 &= ~1; LCD_REG_6 &= ~1;

View file

@ -345,6 +345,11 @@ static void lcd_power_off(void)
lcd_write_reg(R_POWER_CONTROL1, 0x0000); lcd_write_reg(R_POWER_CONTROL1, 0x0000);
} }
void lcd_awake(void)
{
/* Nothing to do */
}
void lcd_sleep(void) void lcd_sleep(void)
{ {
if (power_on) if (power_on)

View file

@ -177,6 +177,10 @@ void lcd_enable(bool on)
} }
} }
void lcd_awake(void)
{
/* Nothing to do */
}
void lcd_sleep(void) void lcd_sleep(void)
{ {

View file

@ -48,3 +48,8 @@ void lcd_sleep(void)
{ {
backlight_hw_off(); backlight_hw_off();
} }
void lcd_awake(void)
{
/* Nothing to do */
}

View file

@ -512,6 +512,11 @@ void lcd_enable(bool en)
# error "Do not define HAVE_LCD_SLEEP if target has LCD_X1000_FASTSLEEP" # error "Do not define HAVE_LCD_SLEEP if target has LCD_X1000_FASTSLEEP"
#endif #endif
void lcd_awake(void)
{
/* Nothing to do */
}
void lcd_sleep(void) void lcd_sleep(void)
{ {
if(!lcd_sleeping) { if(!lcd_sleeping) {