]> Git Repo - J-u-boot.git/blobdiff - drivers/serial/serial_pl01x_internal.h
drivers: serial: Remove duplicate newlines
[J-u-boot.git] / drivers / serial / serial_pl01x_internal.h
index c56dd54c7b8ab0420d6b2db9fc2e3784db54ce58..7ae3ae50908622ebb8d4635d41debbd388a17ad3 100644 (file)
@@ -1,9 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
 /*
  * (C) Copyright 2003, 2004
  * ARM Ltd.
  * Philippe Robin, <[email protected]>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 /*
@@ -39,11 +38,16 @@ struct pl01x_regs {
        u32     pl011_cr;       /* 0x30 Control register */
 };
 
-#ifdef CONFIG_DM_SERIAL
+#if CONFIG_IS_ENABLED(DM_SERIAL)
 
-int pl01x_serial_ofdata_to_platdata(struct udevice *dev);
+int pl01x_serial_of_to_plat(struct udevice *dev);
 int pl01x_serial_probe(struct udevice *dev);
-extern const struct dm_serial_ops pl01x_serial_ops;
+
+/* Needed for external pl01x_serial_ops drivers */
+int pl01x_serial_putc(struct udevice *dev, const char ch);
+int pl01x_serial_pending(struct udevice *dev, bool input);
+int pl01x_serial_getc(struct udevice *dev);
+int pl01x_serial_setbrg(struct udevice *dev, int baudrate);
 
 struct pl01x_priv {
        struct pl01x_regs *regs;
@@ -88,7 +92,6 @@ struct pl01x_priv {
 #define UART_PL010_LCRH_PEN             (1 << 1)
 #define UART_PL010_LCRH_BRK             (1 << 0)
 
-
 #define UART_PL010_BAUD_460800            1
 #define UART_PL010_BAUD_230400            3
 #define UART_PL010_BAUD_115200            7
This page took 0.021635 seconds and 4 git commands to generate.