remote.c (0649cd0d4908d9b983a0361b8665938ef25701be) | remote.c (203e94f6c9ca03e260175ce240f5856507395585) |
---|---|
1/* 2 * (C) Copyright 2011-2012 Freescale Semiconductor, Inc. 3 * 4 * SPDX-License-Identifier: GPL-2.0+ 5 */ 6 7/* #define DEBUG */ 8 --- 15 unchanged lines hidden (view full) --- 24#if !defined(CONFIG_ENV_OFFSET) 25#define CONFIG_ENV_OFFSET 0 26#endif 27 28int env_init(void) 29{ 30 if (crc32(0, env_ptr->data, ENV_SIZE) == env_ptr->crc) { 31 gd->env_addr = (ulong)&(env_ptr->data); | 1/* 2 * (C) Copyright 2011-2012 Freescale Semiconductor, Inc. 3 * 4 * SPDX-License-Identifier: GPL-2.0+ 5 */ 6 7/* #define DEBUG */ 8 --- 15 unchanged lines hidden (view full) --- 24#if !defined(CONFIG_ENV_OFFSET) 25#define CONFIG_ENV_OFFSET 0 26#endif 27 28int env_init(void) 29{ 30 if (crc32(0, env_ptr->data, ENV_SIZE) == env_ptr->crc) { 31 gd->env_addr = (ulong)&(env_ptr->data); |
32 gd->env_valid = 1; | 32 gd->env_valid = ENV_VALID; |
33 return 0; 34 } 35 36 gd->env_addr = (ulong)default_environment; 37 gd->env_valid = 0; 38 return 0; 39} 40 --- 18 unchanged lines hidden --- | 33 return 0; 34 } 35 36 gd->env_addr = (ulong)default_environment; 37 gd->env_valid = 0; 38 return 0; 39} 40 --- 18 unchanged lines hidden --- |