1
0
Fork 0
forked from len0rd/rockbox

imx233: fix red

stop pretending that stmp3600 and stmp3700 have a 4.2V power rail

Change-Id: If2506ed3e7c5db96dedc668f0931d59a5197dd88
This commit is contained in:
Amaury Pouly 2016-05-28 16:50:07 +01:00
parent c926a5269e
commit ae7dd5388d
2 changed files with 12 additions and 0 deletions

View file

@ -420,6 +420,8 @@ bool dbg_hw_info_powermgmt(void)
}
}
#if IMX233_SUBTARGET >= 3780
/* stmp < 3780 does not have a 4.2V rail and thus cannot do this magic trick */
bool dbg_hw_info_power2(void)
{
lcd_setfont(FONT_SYSFIXED);
@ -504,6 +506,7 @@ bool dbg_hw_info_power2(void)
yield();
}
}
#endif /* IMX233_SUBTARGET >= 3780 */
bool dbg_hw_info_rtc(void)
{
@ -1192,7 +1195,9 @@ static struct
{"dma", dbg_hw_info_dma},
{"lradc", dbg_hw_info_lradc},
{"power", dbg_hw_info_power},
#if IMX233_SUBTARGET >= 3780
{"power2", dbg_hw_info_power2},
#endif
{"powermgmt", dbg_hw_info_powermgmt},
{"rtc", dbg_hw_info_rtc},
{"dcp", dbg_hw_info_dcp},