imx: fix partition reboot fail when debug console is enabled

With partition reboot enabled, console_list variable which is
located in data section is NOT reset, system will be busy looping
in early console operation of flush_loop() if console_list is
NOT 0 while HW console is NOT initialized, so we have to clear
this variable to make partition reboot work.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
(cherry picked from commit 8328fcf83527b2258c1a1b290efa737be7a63171)
2 files changed