]> Git Repo - J-u-boot.git/blame - drivers/ram/ram-uclass.c
rockchip: rk3368: adjust DMC driver for 32/64bit-aware OF_PLATDATA
[J-u-boot.git] / drivers / ram / ram-uclass.c
CommitLineData
6c51df68
SG
1/*
2 * Copyright (C) 2015 Google, Inc
3 * Written by Simon Glass <[email protected]>
4 *
5 * SPDX-License-Identifier: GPL-2.0+
6 */
7
8#include <common.h>
9#include <ram.h>
10#include <dm.h>
11#include <errno.h>
12#include <dm/lists.h>
13#include <dm/root.h>
14
15int ram_get_info(struct udevice *dev, struct ram_info *info)
16{
17 struct ram_ops *ops = ram_get_ops(dev);
18
19 if (!ops->get_info)
20 return -ENOSYS;
21
22 return ops->get_info(dev, info);
23}
24
25UCLASS_DRIVER(ram) = {
26 .id = UCLASS_RAM,
27 .name = "ram",
28};
This page took 0.20675 seconds and 4 git commands to generate.