mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
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:
parent
4ab11ecaaa
commit
d6c856c008
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue