mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-09-19 21:01:51 +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 commit c8ffd1356d42223cbb8c86280a083cc3c93e6426, reversing changes made to 2ee6f3a5f7550de3599faef9704e166e5dcace35. Reported-by: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Tom Rini <trini@konsulko.com>
49 lines
904 B
C
49 lines
904 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (c) 2015 National Instruments
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <dm.h>
|
|
#include <serial.h>
|
|
|
|
static int nulldev_serial_setbrg(struct udevice *dev, int baudrate)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static int nulldev_serial_getc(struct udevice *dev)
|
|
{
|
|
return -EAGAIN;
|
|
}
|
|
|
|
static int nulldev_serial_pending(struct udevice *dev, bool input)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static int nulldev_serial_putc(struct udevice *dev, const char ch)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static const struct udevice_id nulldev_serial_ids[] = {
|
|
{ .compatible = "nulldev-serial" },
|
|
{ }
|
|
};
|
|
|
|
|
|
const struct dm_serial_ops nulldev_serial_ops = {
|
|
.putc = nulldev_serial_putc,
|
|
.pending = nulldev_serial_pending,
|
|
.getc = nulldev_serial_getc,
|
|
.setbrg = nulldev_serial_setbrg,
|
|
};
|
|
|
|
U_BOOT_DRIVER(serial_nulldev) = {
|
|
.name = "serial_nulldev",
|
|
.id = UCLASS_SERIAL,
|
|
.of_match = nulldev_serial_ids,
|
|
.ops = &nulldev_serial_ops,
|
|
};
|