mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-10 17:26:59 +02: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 commitc8ffd1356d
, reversing changes made to2ee6f3a5f7
. Reported-by: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Tom Rini <trini@konsulko.com>
41 lines
779 B
C
41 lines
779 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* (C) Copyright 2017
|
|
* Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
|
|
*/
|
|
|
|
#define LOG_CATEGORY UCLASS_AXI
|
|
|
|
#include <common.h>
|
|
#include <dm.h>
|
|
#include <axi.h>
|
|
|
|
int axi_read(struct udevice *dev, ulong address, void *data,
|
|
enum axi_size_t size)
|
|
{
|
|
struct axi_ops *ops = axi_get_ops(dev);
|
|
|
|
if (!ops->read)
|
|
return -ENOSYS;
|
|
|
|
return ops->read(dev, address, data, size);
|
|
}
|
|
|
|
int axi_write(struct udevice *dev, ulong address, void *data,
|
|
enum axi_size_t size)
|
|
{
|
|
struct axi_ops *ops = axi_get_ops(dev);
|
|
|
|
if (!ops->write)
|
|
return -ENOSYS;
|
|
|
|
return ops->write(dev, address, data, size);
|
|
}
|
|
|
|
UCLASS_DRIVER(axi) = {
|
|
.id = UCLASS_AXI,
|
|
.name = "axi",
|
|
.post_bind = dm_scan_fdt_dev,
|
|
.flags = DM_UC_FLAG_SEQ_ALIAS,
|
|
};
|