fbset: support setting pixel clock rate

Only in case the FEATURE_FBSET_FANCY configuration is enabled.

function                                             old     new   delta
fbset_main                                           733     766     +33

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Dario Binacchi 2022-09-09 09:05:52 +02:00 committed by Denys Vlasenko
parent e8dfa0c1be
commit 75fbff1326

View File

@ -518,6 +518,9 @@ int fbset_main(int argc, char **argv)
case CMD_DEPTH: case CMD_DEPTH:
var_set.bits_per_pixel = xatou32(argv[1]); var_set.bits_per_pixel = xatou32(argv[1]);
break; break;
case CMD_PIXCLOCK:
var_set.pixclock = xatou32(argv[1]);
break;
#endif #endif
default: default:
bb_perror_msg_and_die("option '%s' not handled", bb_perror_msg_and_die("option '%s' not handled",