spl.c (f1683aa73c31db0a025e0254e6ce1ee7e56aad3e) | spl.c (203e94f6c9ca03e260175ce240f5856507395585) |
---|---|
1/* Copyright 2014 Freescale Semiconductor, Inc. 2 * 3 * SPDX-License-Identifier: GPL-2.0+ 4 */ 5 6#include <common.h> 7#include <console.h> | 1/* Copyright 2014 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/sleep.h" --- 104 unchanged lines hidden (view full) --- 120 (uchar *)CONFIG_ENV_ADDR); 121#endif 122#ifdef CONFIG_SPL_SPI_BOOT 123 fsl_spi_spl_load_image(CONFIG_ENV_OFFSET, CONFIG_ENV_SIZE, 124 (uchar *)CONFIG_ENV_ADDR); 125#endif 126 127 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/sleep.h" --- 104 unchanged lines hidden (view full) --- 121 (uchar *)CONFIG_ENV_ADDR); 122#endif 123#ifdef CONFIG_SPL_SPI_BOOT 124 fsl_spi_spl_load_image(CONFIG_ENV_OFFSET, CONFIG_ENV_SIZE, 125 (uchar *)CONFIG_ENV_ADDR); 126#endif 127 128 gd->env_addr = (ulong)(CONFIG_ENV_ADDR); |
128 gd->env_valid = 1; | 129 gd->env_valid = ENV_VALID; |
129 130 i2c_init_all(); 131 132 dram_init(); 133 134#ifdef CONFIG_SPL_MMC_BOOT 135 mmc_boot(); 136#elif defined(CONFIG_SPL_SPI_BOOT) 137 fsl_spi_boot(); 138#elif defined(CONFIG_SPL_NAND_BOOT) 139 nand_boot(); 140#endif 141} | 130 131 i2c_init_all(); 132 133 dram_init(); 134 135#ifdef CONFIG_SPL_MMC_BOOT 136 mmc_boot(); 137#elif defined(CONFIG_SPL_SPI_BOOT) 138 fsl_spi_boot(); 139#elif defined(CONFIG_SPL_NAND_BOOT) 140 nand_boot(); 141#endif 142} |