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>
46 lines
872 B
C
46 lines
872 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (c) 2018 Ramon Fried <ramon.fried@gmail.com>
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <dm.h>
|
|
#include <errno.h>
|
|
#include <smem.h>
|
|
#include <asm/test.h>
|
|
|
|
static int sandbox_smem_alloc(unsigned int host,
|
|
unsigned int item, size_t size)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static void *sandbox_smem_get(unsigned int host,
|
|
unsigned int item, size_t *size)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
static int sandbox_smem_get_free_space(unsigned int host)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static const struct smem_ops sandbox_smem_ops = {
|
|
.alloc = sandbox_smem_alloc,
|
|
.get = sandbox_smem_get,
|
|
.get_free_space = sandbox_smem_get_free_space,
|
|
};
|
|
|
|
static const struct udevice_id sandbox_smem_ids[] = {
|
|
{ .compatible = "sandbox,smem" },
|
|
{ }
|
|
};
|
|
|
|
U_BOOT_DRIVER(smem_sandbox) = {
|
|
.name = "smem_sandbox",
|
|
.id = UCLASS_SMEM,
|
|
.of_match = sandbox_smem_ids,
|
|
.ops = &sandbox_smem_ops,
|
|
};
|