[PATCH] Add PCISerial Driver

Ira Ira
Mon Aug 18 19:56:33 CEST 2008


This adds a very simple driver which emulates a serial port over the PCI
bus. This is extremely useful for boards in PCISLAVE mode, so you do not
need extra cables to communicate with them.

There is a corresponding Linux driver.

Signed-off-by: Ira W. Snyder 
---
 drivers/serial/Makefile    |    3 +-
 drivers/serial/pciserial.c |  230 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 232 insertions(+), 1 deletions(-)
 create mode 100644 drivers/serial/pciserial.c

diff --git a/drivers/serial/Makefile b/drivers/serial/Makefile
index eafe543..652371d 100644
--- a/drivers/serial/Makefile
+++ b/drivers/serial/Makefile
@@ -31,13 +31,14 @@ COBJS-$(CONFIG_NS9750_UART) += ns9750_serial.o
 COBJS-y += ns16550.o
 COBJS-$(CONFIG_DRIVER_S3C4510_UART) += s3c4510b_uart.o
 COBJS-$(CONFIG_S3C64XX) += s3c64xx.o
-COBJS-y += serial.o
+COBJS-$(CFG_NS16550_SERIAL) += serial.o
 COBJS-$(CONFIG_MAX3100_SERIAL) += serial_max3100.o
 COBJS-$(CONFIG_PL010_SERIAL) += serial_pl01x.o
 COBJS-$(CONFIG_PL011_SERIAL) += serial_pl01x.o
 COBJS-$(CONFIG_XILINX_UARTLITE) += serial_xuartlite.o
 COBJS-$(CONFIG_SCIF_CONSOLE) += serial_sh.o
 COBJS-$(CONFIG_USB_TTY) += usbtty.o
+COBJS-$(CONFIG_PCISERIAL) += pciserial.o
 
 COBJS := $(sort $(COBJS-y))
 SRCS := $(COBJS:.o=.c)
diff --git a/drivers/serial/pciserial.c b/drivers/serial/pciserial.c
new file mode 100644
index 0000000..ae5b8c4
--- /dev/null
+++ b/drivers/serial/pciserial.c
@@ -0,0 +1,230 @@
+/*
+ * ONE-LINE DESCRIPTION
+ *
+ * Copyright (c) 2008 Ira W. Snyder 

=== message truncated ===

       
--0-361741065-1225775868=:1617--


More information about the U-Boot mailing list