2 * Copyright (c) 2015 Google, Inc
3 * Written by Simon Glass <sjg@chromium.org>
5 * SPDX-License-Identifier: GPL-2.0+
14 DECLARE_GLOBAL_DATA_PTR;
16 static int sandbox_get_info(struct udevice *dev, struct ram_info *info)
19 info->size = gd->ram_size;
24 static const struct ram_ops sandbox_ram_ops = {
25 .get_info = sandbox_get_info,
28 static const struct udevice_id sandbox_ram_ids[] = {
29 { .compatible = "sandbox,ram" },
33 U_BOOT_DRIVER(warm_ram_sandbox) = {
34 .name = "ram_sandbox",
36 .of_match = sandbox_ram_ids,
37 .ops = &sandbox_ram_ops,