diff options
author | Scott Sweeny <scott.sweeny@timesys.com> | 2010-09-01 12:02:01 -0400 |
---|---|---|
committer | Scott Sweeny <scott.sweeny@timesys.com> | 2010-09-01 12:06:18 -0400 |
commit | 3456a4958ec2ecb2b2e35b1f37039fb28274f182 (patch) | |
tree | bf6aef6608c5410ad8b7e4f49dc2cc58aad22538 /common/env_common.c | |
parent | e1dce181db649aadcf5c83e9459ebf53dd038073 (diff) |
Freescale board patch for MPC5125_TWR board
Diffstat (limited to 'common/env_common.c')
-rw-r--r-- | common/env_common.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/common/env_common.c b/common/env_common.c index 6be3bb04ac3..f6de2c17968 100644 --- a/common/env_common.c +++ b/common/env_common.c @@ -143,10 +143,16 @@ uchar default_environment[] = { || defined(CONFIG_ENV_IS_IN_SPI_FLASH) int default_environment_size = sizeof(default_environment); #endif - +#if(BOARD_TYPE==BOARD_TYPE_5125_MPU) +static unsigned int env_crc=0; +#endif void env_crc_update (void) { +#if 0 + env_crc=crc32(0, (void *)gd->env_addr, ENV_SIZE); +#else env_ptr->crc = crc32(0, env_ptr->data, ENV_SIZE); +#endif } static uchar env_get_char_init (int index) @@ -237,6 +243,7 @@ void env_relocate (void) #endif #ifdef ENV_IS_EMBEDDED +#error failed environent /* * The environment buffer is embedded with the text segment, * just relocate the environment pointer @@ -264,7 +271,7 @@ void env_relocate (void) env_relocate_spec (); } gd->env_addr = (ulong)&(env_ptr->data); - + /*puts("env_ptr:\n");*/ #ifdef CONFIG_AMIGAONEG3SE disable_nvram(); #endif |