upstream u-boot with additional patches for our devices/boards: https://lists.denx.de/pipermail/u-boot/2017-March/282789.html (AXP crashes) ; Gbit ethernet patch for some LIME2 revisions ; with SPI flash support
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
u-boot/drivers/sysreset/sysreset_microblaze.c

30 lines
634 B

// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2018 Xilinx, Inc. - Michal Simek
*/
#include <common.h>
#include <dm.h>
#include <errno.h>
#include <sysreset.h>
#include <linux/err.h>
static int microblaze_sysreset_request(struct udevice *dev,
enum sysreset_t type)
{
puts("Microblaze soft reset sysreset\n");
__asm__ __volatile__ (" mts rmsr, r0;" \
"bra r0");
return -EINPROGRESS;
}
static struct sysreset_ops microblaze_sysreset = {
.request = microblaze_sysreset_request,
};
U_BOOT_DRIVER(sysreset_microblaze) = {
.id = UCLASS_SYSRESET,
.name = "mb_soft_reset",
.ops = &microblaze_sysreset,
};