mirror of
https://xff.cz/git/u-boot/
synced 2025-11-01 19:05:51 +01: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:
@@ -44,5 +44,19 @@ SPL_LOAD_IMAGE_METHOD("sandbox", 0, BOOT_DEVICE_BOARD, spl_board_load_image);
|
||||
|
||||
void spl_board_init(void)
|
||||
{
|
||||
struct sandbox_state *state = state_get_current();
|
||||
struct udevice *dev;
|
||||
|
||||
preloader_console_init();
|
||||
if (state->show_of_platdata) {
|
||||
/*
|
||||
* Scan all the devices so that we can output their platform
|
||||
* data. See sandbox_spl_probe().
|
||||
*/
|
||||
printf("Scanning misc devices\n");
|
||||
for (uclass_first_device(UCLASS_MISC, &dev);
|
||||
dev;
|
||||
uclass_next_device(&dev))
|
||||
;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user