mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-19 15:18:13 +01: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>
57 lines
1.1 KiB
C
57 lines
1.1 KiB
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Sandbox driver for the SOC uclass
|
|
*
|
|
* (C) Copyright 2020 - Texas Instruments Incorporated - https://www.ti.com/
|
|
* Dave Gerlach <d-gerlach@ti.com>
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <dm.h>
|
|
#include <soc.h>
|
|
|
|
int soc_sandbox_get_family(struct udevice *dev, char *buf, int size)
|
|
{
|
|
snprintf(buf, size, "SANDBOX1xx");
|
|
|
|
return 0;
|
|
}
|
|
|
|
int soc_sandbox_get_machine(struct udevice *dev, char *buf, int size)
|
|
{
|
|
snprintf(buf, size, "SANDBOX123");
|
|
|
|
return 0;
|
|
}
|
|
|
|
int soc_sandbox_get_revision(struct udevice *dev, char *buf, int size)
|
|
{
|
|
snprintf(buf, size, "1.0");
|
|
|
|
return 0;
|
|
}
|
|
|
|
static const struct soc_ops soc_sandbox_ops = {
|
|
.get_family = soc_sandbox_get_family,
|
|
.get_revision = soc_sandbox_get_revision,
|
|
.get_machine = soc_sandbox_get_machine,
|
|
};
|
|
|
|
int soc_sandbox_probe(struct udevice *dev)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static const struct udevice_id soc_sandbox_ids[] = {
|
|
{ .compatible = "sandbox,soc" },
|
|
{ }
|
|
};
|
|
|
|
U_BOOT_DRIVER(soc_sandbox) = {
|
|
.name = "soc_sandbox",
|
|
.id = UCLASS_SOC,
|
|
.ops = &soc_sandbox_ops,
|
|
.of_match = soc_sandbox_ids,
|
|
.probe = soc_sandbox_probe,
|
|
};
|