iPod S5L87xx bootloader: Enable LCD sleep/awake test depending on target config, not on model

Change-Id: I7a3d86814e5f5b1c84ef73636f2094514aaf0120
This commit is contained in:
Vencislav Atanasov 2025-07-21 20:52:47 +02:00
parent bf286ef373
commit 620a190baf

View file

@ -348,7 +348,7 @@ extern int lcd_type;
static uint16_t alive[] = { 500,100,0, 0 }; static uint16_t alive[] = { 500,100,0, 0 };
static uint16_t alivelcd[] = { 2000,200,0, 0 }; static uint16_t alivelcd[] = { 2000,200,0, 0 };
#ifndef IPOD_6G #ifdef HAVE_LCD_SLEEP
static void sleep_test(void) static void sleep_test(void)
{ {
int sleep_tmo = 5; int sleep_tmo = 5;
@ -676,7 +676,7 @@ static void dump_bootflash(void)
static void devel_menu(void) static void devel_menu(void)
{ {
const char *items[] = { const char *items[] = {
#ifndef IPOD_6G #ifdef HAVE_LCD_SLEEP
"LCD sleep/awake test", "LCD sleep/awake test",
#endif #endif
"PMU info", "PMU info",
@ -694,7 +694,7 @@ static void devel_menu(void)
"Power off", "Power off",
}; };
void (*handlers[])(void) = { void (*handlers[])(void) = {
#ifndef IPOD_6G #ifdef HAVE_LCD_SLEEP
sleep_test, sleep_test,
#endif #endif
pmu_info, pmu_info,