mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-09-19 12:51:23 +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>
37 lines
714 B
C
37 lines
714 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Cadence Tensilica xtfpga system reset driver.
|
|
*
|
|
* (C) Copyright 2016 Cadence Design Systems Inc.
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <dm.h>
|
|
#include <errno.h>
|
|
#include <sysreset.h>
|
|
#include <asm/io.h>
|
|
|
|
static int xtfpga_reset_request(struct udevice *dev, enum sysreset_t type)
|
|
{
|
|
switch (type) {
|
|
case SYSRESET_COLD:
|
|
writel(CFG_SYS_FPGAREG_RESET_CODE,
|
|
CFG_SYS_FPGAREG_RESET);
|
|
break;
|
|
default:
|
|
return -EPROTONOSUPPORT;
|
|
}
|
|
|
|
return -EINPROGRESS;
|
|
}
|
|
|
|
static struct sysreset_ops xtfpga_sysreset_ops = {
|
|
.request = xtfpga_reset_request,
|
|
};
|
|
|
|
U_BOOT_DRIVER(xtfpga_sysreset) = {
|
|
.name = "xtfpga_sysreset",
|
|
.id = UCLASS_SYSRESET,
|
|
.ops = &xtfpga_sysreset_ops,
|
|
};
|