| * Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com> |
| * SPDX-License-Identifier: GPL-2.0+ |
| #include <linux/compiler.h> |
| #include <asm/arch/fsp/fsp_support.h> |
| static char *hob_type[] = { |
| int do_hob(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) |
| hob.raw = (u8 *)gd->arch.hob_list; |
| printf("HOB list address: 0x%08x\n\n", (unsigned int)hob.raw); |
| printf("No. | Address | Type | Length in Bytes\n"); |
| printf("----|----------|---------------------|----------------\n"); |
| while (!end_of_hob(hob)) { |
| printf("%-3d | %08x | ", i, (unsigned int)hob.raw); |
| type = get_hob_type(hob); |
| if (type == HOB_TYPE_UNUSED) |
| else if (type == HOB_TYPE_EOH) |
| else if (type >= 0 && type <= ARRAY_SIZE(hob_type)) |
| printf("%-19s | %-15d\n", desc, get_hob_length(hob)); |
| hob.raw = get_next_hob(hob); |
| "print Firmware Support Package (FSP) Hand-Off Block information", |