| // SPDX-License-Identifier: GPL-2.0+ |
| * Copyright 2021 Google LLC |
| * Written by Simon Glass <sjg@chromium.org> |
| #define LOG_CATEGORY UCLASS_BOOTSTD |
| * show_bootmeths() - List available bootmeths |
| * We could refactor this to use do_bootmeth_list() if more detail (or ordering) |
| static void show_bootmeths(void) |
| uclass_id_foreach_dev(UCLASS_BOOTMETH, dev, uc) |
| printf(" %s", dev->name); |
| int bootstd_prog_boot(void) |
| struct bootflow_iter iter; |
| printf("Programmatic boot starting\n"); |
| flags = BOOTFLOWIF_HUNT | BOOTFLOWIF_SHOW | BOOTFLOWIF_SKIP_GLOBAL; |
| for (i = 0, ret = bootflow_scan_first(NULL, NULL, &iter, flags, &bflow); |
| i < 1000 && ret != -ENODEV; |
| i++, ret = bootflow_scan_next(&iter, &bflow)) { |
| bootflow_run_boot(&iter, &bflow); |