uboot_type
} uboot_type[] = {
for (i = 0; i < __arraycount(uboot_type); i++) {
if (strcmp(uboot_type[i].name, name) == 0)
return uboot_type[i].type;
for (i = 0; i < __arraycount(uboot_type); i++) {
if (uboot_type[i].type == type)
return uboot_type[i].name;