[U-Boot] [PATCH 3/3] serial.c: get_serial_port and get_number_of_serial_ports API added.
Michael Zaidman
michael.zaidman at gmail.com
Thu Apr 1 19:20:46 CEST 2010
Signed-off-by: Michael Zaidman <michael.zaidman at gmail.com>
---
drivers/serial/serial.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/drivers/serial/serial.c b/drivers/serial/serial.c
index 8d78983..c123803 100644
--- a/drivers/serial/serial.c
+++ b/drivers/serial/serial.c
@@ -340,3 +340,13 @@ DECLARE_ESERIAL_FUNCTIONS(4);
struct serial_device eserial4_device =
INIT_ESERIAL_STRUCTURE(4,"eserial3","EUART4");
#endif /* CONFIG_SERIAL_MULTI */
+
+NS16550_t get_serial_port(int index)
+{
+ return serial_ports[index];
+}
+
+int get_number_of_serial_ports(void)
+{
+ return MAX_SER_PORTS;
+}
--
1.6.3.3
More information about the U-Boot
mailing list