mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-21 08:08:14 +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>
48 lines
1.1 KiB
C
48 lines
1.1 KiB
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* (C) Copyright 2017
|
|
* Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
|
|
*/
|
|
|
|
#define LOG_CATEGORY UCLASS_VIDEO_OSD
|
|
|
|
#include <common.h>
|
|
#include <dm.h>
|
|
#include <video_osd.h>
|
|
|
|
int video_osd_get_info(struct udevice *dev, struct video_osd_info *info)
|
|
{
|
|
struct video_osd_ops *ops = video_osd_get_ops(dev);
|
|
|
|
return ops->get_info(dev, info);
|
|
}
|
|
|
|
int video_osd_set_mem(struct udevice *dev, uint col, uint row, u8 *buf,
|
|
size_t buflen, uint count)
|
|
{
|
|
struct video_osd_ops *ops = video_osd_get_ops(dev);
|
|
|
|
return ops->set_mem(dev, col, row, buf, buflen, count);
|
|
}
|
|
|
|
int video_osd_set_size(struct udevice *dev, uint col, uint row)
|
|
{
|
|
struct video_osd_ops *ops = video_osd_get_ops(dev);
|
|
|
|
return ops->set_size(dev, col, row);
|
|
}
|
|
|
|
int video_osd_print(struct udevice *dev, uint col, uint row, ulong color,
|
|
char *text)
|
|
{
|
|
struct video_osd_ops *ops = video_osd_get_ops(dev);
|
|
|
|
return ops->print(dev, col, row, color, text);
|
|
}
|
|
|
|
UCLASS_DRIVER(video_osd) = {
|
|
.id = UCLASS_VIDEO_OSD,
|
|
.name = "video_osd",
|
|
.flags = DM_UC_FLAG_SEQ_ALIAS,
|
|
};
|