Signed-off-by: Michael Zaidman <[email protected]>
---
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
_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot