diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2016-05-28 16:50:07 +0100 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2016-05-28 16:50:07 +0100 |
commit | ae7dd5388dca29acca5b07a591f23d95b5fbcf28 (patch) | |
tree | ffec97af85c16c372e22e70a0641d8fce39b45ab /firmware/target/arm/imx233/debug-imx233.c | |
parent | c926a5269e4af6119d54711becc72d7e94d9d5a9 (diff) | |
download | rockbox-ae7dd5388dca29acca5b07a591f23d95b5fbcf28.tar.gz rockbox-ae7dd5388dca29acca5b07a591f23d95b5fbcf28.zip |
imx233: fix red
stop pretending that stmp3600 and stmp3700 have a 4.2V power rail
Change-Id: If2506ed3e7c5db96dedc668f0931d59a5197dd88
Diffstat (limited to 'firmware/target/arm/imx233/debug-imx233.c')
-rw-r--r-- | firmware/target/arm/imx233/debug-imx233.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/debug-imx233.c b/firmware/target/arm/imx233/debug-imx233.c index 979f743601..01058c40fd 100644 --- a/firmware/target/arm/imx233/debug-imx233.c +++ b/firmware/target/arm/imx233/debug-imx233.c | |||
@@ -420,6 +420,8 @@ bool dbg_hw_info_powermgmt(void) | |||
420 | } | 420 | } |
421 | } | 421 | } |
422 | 422 | ||
423 | #if IMX233_SUBTARGET >= 3780 | ||
424 | /* stmp < 3780 does not have a 4.2V rail and thus cannot do this magic trick */ | ||
423 | bool dbg_hw_info_power2(void) | 425 | bool dbg_hw_info_power2(void) |
424 | { | 426 | { |
425 | lcd_setfont(FONT_SYSFIXED); | 427 | lcd_setfont(FONT_SYSFIXED); |
@@ -504,6 +506,7 @@ bool dbg_hw_info_power2(void) | |||
504 | yield(); | 506 | yield(); |
505 | } | 507 | } |
506 | } | 508 | } |
509 | #endif /* IMX233_SUBTARGET >= 3780 */ | ||
507 | 510 | ||
508 | bool dbg_hw_info_rtc(void) | 511 | bool dbg_hw_info_rtc(void) |
509 | { | 512 | { |
@@ -1192,7 +1195,9 @@ static struct | |||
1192 | {"dma", dbg_hw_info_dma}, | 1195 | {"dma", dbg_hw_info_dma}, |
1193 | {"lradc", dbg_hw_info_lradc}, | 1196 | {"lradc", dbg_hw_info_lradc}, |
1194 | {"power", dbg_hw_info_power}, | 1197 | {"power", dbg_hw_info_power}, |
1198 | #if IMX233_SUBTARGET >= 3780 | ||
1195 | {"power2", dbg_hw_info_power2}, | 1199 | {"power2", dbg_hw_info_power2}, |
1200 | #endif | ||
1196 | {"powermgmt", dbg_hw_info_powermgmt}, | 1201 | {"powermgmt", dbg_hw_info_powermgmt}, |
1197 | {"rtc", dbg_hw_info_rtc}, | 1202 | {"rtc", dbg_hw_info_rtc}, |
1198 | {"dcp", dbg_hw_info_dcp}, | 1203 | {"dcp", dbg_hw_info_dcp}, |