spl.c (f1683aa73c31db0a025e0254e6ce1ee7e56aad3e) | spl.c (203e94f6c9ca03e260175ce240f5856507395585) |
---|---|
1/* 2 * Copyright 2013 Freescale Semiconductor, Inc. 3 * 4 * SPDX-License-Identifier: GPL-2.0+ 5 */ 6 7#include <common.h> 8#include <console.h> | 1/* 2 * Copyright 2013 Freescale Semiconductor, Inc. 3 * 4 * SPDX-License-Identifier: GPL-2.0+ 5 */ 6 7#include <common.h> 8#include <console.h> |
9#include <environment.h> |
|
9#include <ns16550.h> 10#include <malloc.h> 11#include <mmc.h> 12#include <nand.h> 13#include <i2c.h> 14#include "../common/ngpixis.h" 15#include <fsl_esdhc.h> 16#include <spi_flash.h> --- 78 unchanged lines hidden (view full) --- 95 mmc_initialize(bd); 96#endif 97 /* relocate environment function pointers etc. */ 98#ifdef CONFIG_SPL_NAND_BOOT 99 nand_spl_load_image(CONFIG_ENV_OFFSET, CONFIG_ENV_SIZE, 100 (uchar *)CONFIG_ENV_ADDR); 101 102 gd->env_addr = (ulong)(CONFIG_ENV_ADDR); | 10#include <ns16550.h> 11#include <malloc.h> 12#include <mmc.h> 13#include <nand.h> 14#include <i2c.h> 15#include "../common/ngpixis.h" 16#include <fsl_esdhc.h> 17#include <spi_flash.h> --- 78 unchanged lines hidden (view full) --- 96 mmc_initialize(bd); 97#endif 98 /* relocate environment function pointers etc. */ 99#ifdef CONFIG_SPL_NAND_BOOT 100 nand_spl_load_image(CONFIG_ENV_OFFSET, CONFIG_ENV_SIZE, 101 (uchar *)CONFIG_ENV_ADDR); 102 103 gd->env_addr = (ulong)(CONFIG_ENV_ADDR); |
103 gd->env_valid = 1; | 104 gd->env_valid = ENV_VALID; |
104#else 105 env_relocate(); 106#endif 107 108#ifdef CONFIG_SYS_I2C 109 i2c_init_all(); 110#else 111 i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE); --- 17 unchanged lines hidden --- | 105#else 106 env_relocate(); 107#endif 108 109#ifdef CONFIG_SYS_I2C 110 i2c_init_all(); 111#else 112 i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE); --- 17 unchanged lines hidden --- |