env: Relocate env drivers if manual reloc is required
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Fri, 13 Apr 2018 05:57:21 +0000 (07:57 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 16 Apr 2018 22:45:35 +0000 (18:45 -0400)
commit7bcdf19572c8f64552233d04b309903b297d5b63
tree56e68971a4a8072f2f4c75da65335eb13f82aefa
parent90e407ae01838692bacfbcbcb83d0fb33f3ba7e7
env: Relocate env drivers if manual reloc is required

Relocate env drivers if manual relocation is enabled. This
patch fixes the issue of u-boot hang incase if env is
present in any of the flash devices.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
env/common.c
env/env.c
include/environment.h