microblaze: Guard do_reset by CONFIG_SYSRESET

sysreset uclass have own do_reset function which should be used instead
of board/platform specific.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
Michal Simek 2018-06-28 10:30:05 +02:00
parent 4ab11ecaaa
commit d6c856c008

View file

@ -58,6 +58,7 @@ int dram_init(void)
return 0;
};
#if !defined(CONFIG_SYSRESET) || defined(CONFIG_SPL_BUILD)
int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
#ifndef CONFIG_SPL_BUILD
@ -76,6 +77,7 @@ int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
return 0;
}
#endif
static int gpio_init(void)
{