diff options
Diffstat (limited to 'lib_arm/board.c')
-rw-r--r-- | lib_arm/board.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib_arm/board.c b/lib_arm/board.c index e9ccb9bec2..433ac04099 100644 --- a/lib_arm/board.c +++ b/lib_arm/board.c @@ -370,6 +370,13 @@ void start_armboot (void) } else { omap_nand_switch_ecc(OMAP_ECC_HW); /* switch to HW ECC mode */ } + { + int size; + size = nand_info[0].size; + + /* Set the u-boot environment offset to be at the end of NAND */ + boot_flash_off = size - CONFIG_ENV_RANGE; + } #endif #endif |