upstream u-boot with additional patches for our devices/boards:
https://lists.denx.de/pipermail/u-boot/2017-March/282789.html (AXP crashes) ;
Gbit ethernet patch for some LIME2 revisions ;
with SPI flash support
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
857 B
49 lines
857 B
7 years ago
|
/*
|
||
|
* Copyright (c) 2015 National Instruments
|
||
|
*
|
||
|
* SPDX-License-Identifier: GPL-2.0+
|
||
|
*/
|
||
|
|
||
|
#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_input(struct udevice *dev)
|
||
|
{
|
||
|
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,
|
||
|
.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,
|
||
|
};
|