mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-09-19 21:01:51 +02:00
When bringing in the series 'arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"' I failed to notice that b4 noticed it was based on next and so took that as the base commit and merged that part of next to master. This reverts commit c8ffd1356d42223cbb8c86280a083cc3c93e6426, reversing changes made to 2ee6f3a5f7550de3599faef9704e166e5dcace35. Reported-by: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Tom Rini <trini@konsulko.com>
33 lines
724 B
C
33 lines
724 B
C
// 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>
|
|
#include <linux/stringify.h>
|
|
|
|
static int microblaze_sysreset_request(struct udevice *dev,
|
|
enum sysreset_t type)
|
|
{
|
|
puts("Microblaze soft reset sysreset\n");
|
|
__asm__ __volatile__ (
|
|
"mts rmsr, r0;" \
|
|
"brai " __stringify(CONFIG_XILINX_MICROBLAZE0_VECTOR_BASE_ADDR));
|
|
|
|
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 = µblaze_sysreset,
|
|
};
|