mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-07-23 23:33:01 +00:00
sandbox: Add an option to display of-platdata in SPL
At present we don't have a test that of-platdata can be accessed in SPL. Add this in as a command-line option to SPL. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
20d4440189
commit
1ca910be5d
5 changed files with 55 additions and 2 deletions
|
@ -283,6 +283,15 @@ static int sandbox_cmdline_cb_log_level(struct sandbox_state *state,
|
|||
SANDBOX_CMDLINE_OPT_SHORT(log_level, 'L', 1,
|
||||
"Set log level (0=panic, 7=debug)");
|
||||
|
||||
static int sandbox_cmdline_cb_show_of_platdata(struct sandbox_state *state,
|
||||
const char *arg)
|
||||
{
|
||||
state->show_of_platdata = true;
|
||||
|
||||
return 0;
|
||||
}
|
||||
SANDBOX_CMDLINE_OPT(show_of_platdata, 0, "Show of-platdata in SPL");
|
||||
|
||||
int board_run_command(const char *cmdline)
|
||||
{
|
||||
printf("## Commands are disabled. Please enable CONFIG_CMDLINE.\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue