diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2018-12-22 01:55:51 -0800 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2018-12-31 09:42:41 +0800 |
commit | 881bb9ab398419c33c9021ee8b2bbd8412882230 (patch) | |
tree | a77a8b12aaeb27356cb0ae3ee561251204f2c108 /cmd/cbfs.c | |
parent | 14fdf91ebfce7b8dd98177e873a7245f1bc21125 (diff) | |
download | u-boot-881bb9ab398419c33c9021ee8b2bbd8412882230.tar.gz u-boot-881bb9ab398419c33c9021ee8b2bbd8412882230.tar.bz2 u-boot-881bb9ab398419c33c9021ee8b2bbd8412882230.zip |
fs: cbfs: Add missing standard CBFS component types
Current CBFS component type list is incomplete. Add missing ones.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd/cbfs.c')
-rw-r--r-- | cmd/cbfs.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/cmd/cbfs.c b/cmd/cbfs.c index 4d3e0062df..c118a952ac 100644 --- a/cmd/cbfs.c +++ b/cmd/cbfs.c @@ -112,12 +112,21 @@ static int do_cbfs_ls(cmd_tbl_t *cmdtp, int flag, int argc, printf(" %8d", file_cbfs_size(file)); switch (type) { + case CBFS_TYPE_BOOTBLOCK: + type_name = "bootblock"; + break; + case CBFS_TYPE_CBFSHEADER: + type_name = "cbfs header"; + break; case CBFS_TYPE_STAGE: type_name = "stage"; break; case CBFS_TYPE_PAYLOAD: type_name = "payload"; break; + case CBFS_TYPE_FIT: + type_name = "fit"; + break; case CBFS_TYPE_OPTIONROM: type_name = "option rom"; break; @@ -136,9 +145,30 @@ static int do_cbfs_ls(cmd_tbl_t *cmdtp, int flag, int argc, case CBFS_TYPE_MICROCODE: type_name = "microcode"; break; + case CBFS_TYPE_FSP: + type_name = "fsp"; + break; + case CBFS_TYPE_MRC: + type_name = "mrc"; + break; + case CBFS_TYPE_MMA: + type_name = "mma"; + break; + case CBFS_TYPE_EFI: + type_name = "efi"; + break; + case CBFS_TYPE_STRUCT: + type_name = "struct"; + break; case CBFS_TYPE_CMOS_DEFAULT: type_name = "cmos default"; break; + case CBFS_TYPE_SPD: + type_name = "spd"; + break; + case CBFS_TYPE_MRC_CACHE: + type_name = "mrc cache"; + break; case CBFS_TYPE_CMOS_LAYOUT: type_name = "cmos layout"; break; |