[coreboot-gerrit] New patch to review for coreboot: drivers/uart: Export uart8250_mem_init from uart8250mem.c

Stefan Reinauer (stefan.reinauer@coreboot.org) gerrit at coreboot.org
Tue Feb 2 01:36:48 CET 2016


Stefan Reinauer (stefan.reinauer at coreboot.org) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/13553

-gerrit

commit ccc2dbc8c8b1013e3a4b7e7b7e2b99f75a2c46c0
Author: Stefan Reinauer <stefan.reinauer at coreboot.org>
Date:   Mon Feb 1 16:30:56 2016 -0800

    drivers/uart: Export uart8250_mem_init from uart8250mem.c
    
    uart8250_mem_init() is used by the broadwell uart driver but
    is not exported.
    
    Change-Id: Ibc5b5c43475bf59d0d54cba2afd9362e75fa360c
    Signed-off-by: Stefan Reinauer <stefan.reinauer at coreboot.org>
---
 src/drivers/uart/uart8250mem.c |  3 ++-
 src/drivers/uart/uart8250mem.h | 16 ++++++++++++++++
 2 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/src/drivers/uart/uart8250mem.c b/src/drivers/uart/uart8250mem.c
index 278ddb8..036864b 100644
--- a/src/drivers/uart/uart8250mem.c
+++ b/src/drivers/uart/uart8250mem.c
@@ -22,6 +22,7 @@
 #include <rules.h>
 #include <stdint.h>
 #include "uart8250reg.h"
+#include "uart8250mem.h"
 
 /* Should support 8250, 16450, 16550, 16550A type UARTs */
 
@@ -90,7 +91,7 @@ static unsigned char uart8250_mem_rx_byte(void *base)
 		return 0x0;
 }
 
-static void uart8250_mem_init(void *base, unsigned divisor)
+void uart8250_mem_init(void *base, unsigned divisor)
 {
 	/* Disable interrupts */
 	uart8250_write(base, UART8250_IER, 0x0);
diff --git a/src/drivers/uart/uart8250mem.h b/src/drivers/uart/uart8250mem.h
new file mode 100644
index 0000000..98629e4
--- /dev/null
+++ b/src/drivers/uart/uart8250mem.h
@@ -0,0 +1,16 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2016 Google Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+void uart8250_mem_init(void *base, unsigned divisor);



More information about the coreboot-gerrit mailing list