Lines Matching +full:u +full:- +full:boot +full:- +full:env
1 /*-
2 * Copyright (c) 2009-2010 The FreeBSD Foundation
54 printf("Using DTB provided by U-Boot at " in fdt_platform_load_from_ubenv()
73 * If the U-boot environment contains a variable giving the address of a in fdt_platform_load_dtb()
74 * valid blob in memory, use it. The U-boot README says the right in fdt_platform_load_dtb()
88 * Try to get FDT filename first from loader env and then from u-boot env in fdt_platform_load_dtb()
118 const char *env, *str; in fdt_platform_fixups() local
123 env = NULL; in fdt_platform_fixups()
134 while ((env = ub_env_enum(env)) != NULL) { in fdt_platform_fixups()
135 if (strncmp(env, "eth", 3) == 0 && in fdt_platform_fixups()
136 strncmp(env + (strlen(env) - 4), "addr", 4) == 0) { in fdt_platform_fixups()
138 * Handle Ethernet addrs: parse uboot env eth%daddr in fdt_platform_fixups()
159 i = strtol(env + 3, &end, 10); in fdt_platform_fixups()
160 if (end == (env + 3)) in fdt_platform_fixups()
169 str = ub_env_get(env); in fdt_platform_fixups()
177 i = strlen(env) - 7; in fdt_platform_fixups()
178 strncpy(ethstr + 8, env + 3, i); in fdt_platform_fixups()
185 bzero(ethstr + 8, len - 8); in fdt_platform_fixups()
189 } else if (strcmp(env, "consoledev") == 0) { in fdt_platform_fixups()
190 str = ub_env_get(env); in fdt_platform_fixups()
196 fdt_fixup_cpubusfreqs(si->clk_cpu, si->clk_bus); in fdt_platform_fixups()
199 for (i = 0, n = 0; i < si->mr_no && n < nitems(regions); i++) { in fdt_platform_fixups()
200 if (si->mr[i].flags == MR_ATTR_DRAM) { in fdt_platform_fixups()
201 regions[n].start = si->mr[i].start; in fdt_platform_fixups()
202 regions[n].size = si->mr[i].size; in fdt_platform_fixups()