summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx233/debug-imx233.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2017-07-31 00:59:23 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2017-07-31 01:04:24 +0200
commit17e48e81af9359e33c1d4c983b4705f6b1b86c78 (patch)
tree1561e557164c294c89c7d131645e9331f5bbd051 /firmware/target/arm/imx233/debug-imx233.c
parentce39850e6b17bec0988d3748e0c99964675c12e5 (diff)
downloadrockbox-17e48e81af9359e33c1d4c983b4705f6b1b86c78.tar.gz
rockbox-17e48e81af9359e33c1d4c983b4705f6b1b86c78.zip
imx233: don't print stmp3780 debug info on stmp3700
Change-Id: Iffad6f39b62af496e6bb5975610807228c2986c7
Diffstat (limited to 'firmware/target/arm/imx233/debug-imx233.c')
-rw-r--r--firmware/target/arm/imx233/debug-imx233.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/imx233/debug-imx233.c b/firmware/target/arm/imx233/debug-imx233.c
index c5646a1c91..a084437e6a 100644
--- a/firmware/target/arm/imx233/debug-imx233.c
+++ b/firmware/target/arm/imx233/debug-imx233.c
@@ -233,9 +233,7 @@ bool dbg_hw_info_power(void)
233#define DISP_REGULATOR(name) \ 233#define DISP_REGULATOR(name) \
234 imx233_power_get_regulator(REGULATOR_##name, &trg, &bo); \ 234 imx233_power_get_regulator(REGULATOR_##name, &trg, &bo); \
235 imx233_power_get_regulator_linreg(REGULATOR_##name, &en, &linreg); \ 235 imx233_power_get_regulator_linreg(REGULATOR_##name, &en, &linreg); \
236 if(en) snprintf(buf, sizeof(buf), "%d", linreg); \ 236 lcd_putsf(0, line++, "%6s %4d %4d %d", #name, trg, bo, linreg); \
237 else snprintf(buf, sizeof(buf), " "); \
238 lcd_putsf(0, line++, "%6s %4d %4d %s", #name, trg, bo, buf); \
239 237
240 DISP_REGULATOR(VDDD); 238 DISP_REGULATOR(VDDD);
241#if IMX233_SUBTARGET >= 3700 239#if IMX233_SUBTARGET >= 3700
@@ -248,11 +246,13 @@ bool dbg_hw_info_power(void)
248 lcd_putsf(0, line++, "dcdc: pll: %d freq: %d", info.dcdc_sel_pllclk, info.dcdc_freqsel); 246 lcd_putsf(0, line++, "dcdc: pll: %d freq: %d", info.dcdc_sel_pllclk, info.dcdc_freqsel);
249 lcd_putsf(0, line++, "chrg: %d mA / %d mA", info.charge_current, info.stop_current); 247 lcd_putsf(0, line++, "chrg: %d mA / %d mA", info.charge_current, info.stop_current);
250 lcd_putsf(0, line++, "chrging: %d batadj: %d", info.charging, info.batt_adj); 248 lcd_putsf(0, line++, "chrging: %d batadj: %d", info.charging, info.batt_adj);
249#if IMX233_SUBTARGET >= 3780
251 lcd_putsf(0, line++, "4.2: en: %d dcdc: %d", info._4p2_enable, info._4p2_dcdc); 250 lcd_putsf(0, line++, "4.2: en: %d dcdc: %d", info._4p2_enable, info._4p2_dcdc);
252 lcd_putsf(0, line++, "4.2: cmptrip: %d", info._4p2_cmptrip); 251 lcd_putsf(0, line++, "4.2: cmptrip: %d", info._4p2_cmptrip);
253 lcd_putsf(0, line++, "4.2: dropout: %d", info._4p2_dropout); 252 lcd_putsf(0, line++, "4.2: dropout: %d", info._4p2_dropout);
254 lcd_putsf(0, line++, "5v: pwd_4.2_charge: %d", info._5v_pwd_charge_4p2); 253 lcd_putsf(0, line++, "5v: pwd_4.2_charge: %d", info._5v_pwd_charge_4p2);
255 lcd_putsf(0, line++, "5v: chrglim: %d mA", info._5v_charge_4p2_limit); 254 lcd_putsf(0, line++, "5v: chrglim: %d mA", info._5v_charge_4p2_limit);
255#endif
256 lcd_putsf(0, line++, "5v: dcdc: %d xfer: %d", info._5v_enable_dcdc, info._5v_dcdc_xfer); 256 lcd_putsf(0, line++, "5v: dcdc: %d xfer: %d", info._5v_enable_dcdc, info._5v_dcdc_xfer);
257 lcd_putsf(0, line++, "5v: thr: %d mV", info._5v_vbusvalid_thr); 257 lcd_putsf(0, line++, "5v: thr: %d mV", info._5v_vbusvalid_thr);
258 lcd_putsf(0, line++, "5v: use: %d cmps: %d", info._5v_vbusvalid_detect, info._5v_vbus_cmps); 258 lcd_putsf(0, line++, "5v: use: %d cmps: %d", info._5v_vbusvalid_detect, info._5v_vbus_cmps);