Lines Matching +full:nand +full:- +full:style
1 // SPDX-License-Identifier: GPL-2.0+
4 * (C) Copyright 2002-2006
8 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
34 #include <nand.h>
63 * so provide a way to let U-Boot gracefully ignore write protected in board_flash_wp_on()
76 * after non-volatile devices & environment is setup and cpu code have in initr_secondary_cpu()
79 * from a non-volatile device in initr_secondary_cpu()
90 trace_init(gd->trace_buff, CONFIG_TRACE_BUFFER_SIZE); in initr_trace()
99 gd->flags |= GD_FLG_RELOC | GD_FLG_FULL_MALLOC_INIT; in initr_reloc()
125 monitor_flash_len = _end - __image_copy_start; in initr_reloc_global_data()
127 monitor_flash_len = (ulong)&_end - (ulong)&_start; in initr_reloc_global_data()
129 monitor_flash_len = (ulong)&__init_end - gd->relocaddr; in initr_reloc_global_data()
133 * The gd->cpu pointer is set to an address in flash before relocation. in initr_reloc_global_data()
135 * TODO: why not just add gd->reloc_ofs? in initr_reloc_global_data()
137 gd->arch.cpu += gd->relocaddr - CONFIG_SYS_MONITOR_BASE; in initr_reloc_global_data()
150 gd->env_addr += gd->reloc_off; in initr_reloc_global_data()
157 gd->fdt_blob += gd->reloc_off; in initr_reloc_global_data()
160 efi_runtime_relocate(gd->relocaddr, NULL); in initr_reloc_global_data()
179 trap_init(gd->relocaddr); in initr_trap()
207 unlock_ram_in_cache(); /* it's time to unlock D-cache in e500 */ in initr_unlock_ram_in_cache()
237 debug("Pre-reloc malloc() used %#lx bytes (%ld KB)\n", gd->malloc_ptr, in initr_malloc()
238 gd->malloc_ptr / 1024); in initr_malloc()
241 malloc_start = gd->relocaddr - TOTAL_MALLOC_LEN; in initr_malloc()
270 ret = of_live_build(gd->fdt_blob, (struct device_node **)&gd->of_root); in initr_of_live()
284 /* Save the pre-reloc driver model and start a new one */ in initr_dm()
285 gd->dm_root_f = gd->dm_root; in initr_dm()
286 gd->dm_root = NULL; in initr_dm()
288 gd->timer = NULL; in initr_dm()
319 debug("Now running in RAM - U-Boot at: %08lx\n", gd->relocaddr); in initr_announce()
336 bd_t *bd = gd->bd; in initr_flash()
341 printf("Uninitialized - Write Protect On\n"); in initr_flash()
364 bd->bi_flashstart = CONFIG_SYS_FLASH_BASE; in initr_flash()
367 bd->bi_flashsize = flash_size; in initr_flash()
376 bd->bi_flashoffset = CONFIG_SYS_TEXT_BASE + flash_size; in initr_flash()
378 bd->bi_flashoffset = monitor_flash_len; /* reserved area for monitor */ in initr_flash()
385 /* go init the NAND */
388 puts("NAND: "); in initr_nand()
396 /* go init the NAND */
399 puts("NAND: "); in initr_onenand()
409 mmc_initialize(gd->bd); in initr_mmc()
428 return fdtdec_get_config_int(gd->fdt_blob, "load-environment", 1); in should_load_env()
445 (unsigned long)map_to_sysmem(gd->fdt_blob)); in initr_env()
457 gd->bd->bi_boot_params = (ulong)malloc(CONFIG_SYS_BOOTPARAMS_LEN); in initr_malloc_bootparams()
458 if (!gd->bd->bi_boot_params) { in initr_malloc_bootparams()
460 return -ENOMEM; in initr_malloc_bootparams()
493 bd_t *bd = gd->bd; in initr_ethaddr()
496 eth_env_get_enetaddr("ethaddr", bd->bi_enetaddr); in initr_ethaddr()
498 eth_env_get_enetaddr("eth1addr", bd->bi_enet1addr); in initr_ethaddr()
501 eth_env_get_enetaddr("eth2addr", bd->bi_enet2addr); in initr_ethaddr()
504 eth_env_get_enetaddr("eth3addr", bd->bi_enet3addr); in initr_ethaddr()
507 eth_env_get_enetaddr("eth4addr", bd->bi_enet4addr); in initr_ethaddr()
510 eth_env_get_enetaddr("eth5addr", bd->bi_enet5addr); in initr_ethaddr()
611 sprintf(memsz, "%ldk", (long int)((gd->ram_size / 1024) - pram)); in initr_mem()
639 * We hope to remove most of the driver-related init and do it if/when
768 arch_misc_init, /* miscellaneous arch-dependent init */
771 misc_init_r, /* miscellaneous platform-dependent init */
821 * Interrupts) are up and running (i.e. the PC-style ISA
855 gd->flags &= ~GD_FLG_LOG_READY; in board_init_r()
859 init_sequence_r[i] += gd->reloc_off; in board_init_r()
865 /* NOTREACHED - run_main_loop() does not return */ in board_init_r()