spl.c (f1683aa73c31db0a025e0254e6ce1ee7e56aad3e) | spl.c (203e94f6c9ca03e260175ce240f5856507395585) |
---|---|
1/* Copyright 2013 Freescale Semiconductor, Inc. 2 * 3 * SPDX-License-Identifier: GPL-2.0+ 4 */ 5 6#include <common.h> 7#include <console.h> | 1/* Copyright 2013 Freescale Semiconductor, Inc. 2 * 3 * SPDX-License-Identifier: GPL-2.0+ 4 */ 5 6#include <common.h> 7#include <console.h> |
8#include <environment.h> |
|
8#include <malloc.h> 9#include <ns16550.h> 10#include <nand.h> 11#include <i2c.h> 12#include <mmc.h> 13#include <fsl_esdhc.h> 14#include <spi_flash.h> 15#include "../common/spl.h" --- 73 unchanged lines hidden (view full) --- 89 (uchar *)CONFIG_ENV_ADDR); 90#endif 91#ifdef CONFIG_SPL_SPI_BOOT 92 fsl_spi_spl_load_image(CONFIG_ENV_OFFSET, CONFIG_ENV_SIZE, 93 (uchar *)CONFIG_ENV_ADDR); 94#endif 95 96 gd->env_addr = (ulong)(CONFIG_ENV_ADDR); | 9#include <malloc.h> 10#include <ns16550.h> 11#include <nand.h> 12#include <i2c.h> 13#include <mmc.h> 14#include <fsl_esdhc.h> 15#include <spi_flash.h> 16#include "../common/spl.h" --- 73 unchanged lines hidden (view full) --- 90 (uchar *)CONFIG_ENV_ADDR); 91#endif 92#ifdef CONFIG_SPL_SPI_BOOT 93 fsl_spi_spl_load_image(CONFIG_ENV_OFFSET, CONFIG_ENV_SIZE, 94 (uchar *)CONFIG_ENV_ADDR); 95#endif 96 97 gd->env_addr = (ulong)(CONFIG_ENV_ADDR); |
97 gd->env_valid = 1; | 98 gd->env_valid = ENV_VALID; |
98 99 i2c_init_all(); 100 101 dram_init(); 102 103#ifdef CONFIG_SPL_MMC_BOOT 104 mmc_boot(); 105#elif defined(CONFIG_SPL_SPI_BOOT) 106 fsl_spi_boot(); 107#elif defined(CONFIG_SPL_NAND_BOOT) 108 nand_boot(); 109#endif 110} | 99 100 i2c_init_all(); 101 102 dram_init(); 103 104#ifdef CONFIG_SPL_MMC_BOOT 105 mmc_boot(); 106#elif defined(CONFIG_SPL_SPI_BOOT) 107 fsl_spi_boot(); 108#elif defined(CONFIG_SPL_NAND_BOOT) 109 nand_boot(); 110#endif 111} |