2 * Copyright (c) 2015 National Instruments
4 * SPDX-License-Identifier: GPL-2.0+
11 static int nulldev_serial_setbrg(struct udevice *dev, int baudrate)
16 static int nulldev_serial_getc(struct udevice *dev)
21 static int nulldev_serial_input(struct udevice *dev)
26 static int nulldev_serial_putc(struct udevice *dev, const char ch)
31 static const struct udevice_id nulldev_serial_ids[] = {
32 { .compatible = "nulldev-serial" },
37 const struct dm_serial_ops nulldev_serial_ops = {
38 .putc = nulldev_serial_putc,
39 .getc = nulldev_serial_getc,
40 .setbrg = nulldev_serial_setbrg,
43 U_BOOT_DRIVER(serial_nulldev) = {
44 .name = "serial_nulldev",
46 .of_match = nulldev_serial_ids,
47 .ops = &nulldev_serial_ops,