@@ -120,10 +120,10 @@ static void help_debug(void)
120
120
wputs ("debug commands (alias 'd')" );
121
121
wputs (" debug pll - dump pll configuration" );
122
122
#ifdef CSR_HDMI_IN0_BASE
123
- wputs (" debug input0 - debug dvisampler0" );
123
+ wputs (" debug input0 <on/off> - debug dvisampler0" );
124
124
#endif
125
125
#ifdef CSR_HDMI_IN1_BASE
126
- wputs (" debug input1 - debug dvisampler1" );
126
+ wputs (" debug input1 <on/off> - debug dvisampler1" );
127
127
#endif
128
128
#ifdef CSR_SDRAM_CONTROLLER_BANDWIDTH_UPDATE_ADDR
129
129
wputs (" debug ddr - show DDR bandwidth" );
@@ -1051,13 +1051,25 @@ void ci_service(void)
1051
1051
debug_pll ();
1052
1052
#ifdef CSR_HDMI_IN0_BASE
1053
1053
else if (strcmp (token , "input0 ") == 0 ) {
1054
- hdmi_in0_debug = !hdmi_in0_debug ;
1054
+ token = get_token (& str );
1055
+ if (strcmp (token , "off ") == 0 )
1056
+ hdmi_in0_debug = 0 ;
1057
+ else if (strcmp (token , "on ") == 0 )
1058
+ hdmi_in0_debug = 1 ;
1059
+ else
1060
+ hdmi_in0_debug = !hdmi_in0_debug ;
1055
1061
wprintf ("HDMI Input 0 debug %s \r \n ", hdmi_in0_debug ? "on " : "off ");
1056
1062
}
1057
1063
#endif
1058
1064
#ifdef CSR_HDMI_IN1_BASE
1059
1065
else if (strcmp (token , "input1 ") == 0 ) {
1060
- hdmi_in1_debug = !hdmi_in1_debug ;
1066
+ token = get_token (& str );
1067
+ if (strcmp (token , "off ") == 0 )
1068
+ hdmi_in1_debug = 0 ;
1069
+ else if (strcmp (token , "on ") == 0 )
1070
+ hdmi_in1_debug = 1 ;
1071
+ else
1072
+ hdmi_in1_debug = !hdmi_in1_debug ;
1061
1073
wprintf ("HDMI Input 1 debug %s \r \n ", hdmi_in1_debug ? "on " : "off ");
1062
1074
}
1063
1075
#endif
0 commit comments