]> git.ipfire.org Git - thirdparty/u-boot.git/blame - drivers/ram/ram-uclass.c
Revert "Merge patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet""
[thirdparty/u-boot.git] / drivers / ram / ram-uclass.c
CommitLineData
83d290c5 1// SPDX-License-Identifier: GPL-2.0+
6c51df68
SG
2/*
3 * Copyright (C) 2015 Google, Inc
4 * Written by Simon Glass <sjg@chromium.org>
6c51df68
SG
5 */
6
b953ec2b
PD
7#define LOG_CATEGORY UCLASS_RAM
8
d678a59d 9#include <common.h>
6c51df68
SG
10#include <ram.h>
11#include <dm.h>
12#include <errno.h>
13#include <dm/lists.h>
14#include <dm/root.h>
15
16int ram_get_info(struct udevice *dev, struct ram_info *info)
17{
18 struct ram_ops *ops = ram_get_ops(dev);
19
20 if (!ops->get_info)
21 return -ENOSYS;
22
23 return ops->get_info(dev, info);
24}
25
26UCLASS_DRIVER(ram) = {
27 .id = UCLASS_RAM,
28 .name = "ram",
29};