Skip to contentSkip to conversation

powerpc: Add non-OF serial console support

PATCH In review Mark A. Greer 1 participant 1 message Oct 10, 2006 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 4/4 powerpc: Add non-OF serial console support

Add serial console support for non-OF systems. There is a generic serial console layer which calls a serial console driver. Included is the serial console driver for the ns16550 class of uarts. Necessary support routines are added as well.

---

 Makefile  |    4 -
 io.h      |   53 +++++++++++++++++++++++
 ns16550.c |   76 +++++++++++++++++++++++++++++++++
 serial.c  |  142 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 util.S    |  101 ++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 374 insertions(+), 2 deletions(-)

---

arch/powerpc/boot/Makefile +2 -2
index d4042ad..9aad574 100644
@@ -40,8 +40,8 @@ zliblinuxheader := zlib.h zconf.h zutil.
 $(addprefix $(obj)/,$(zlib) main.o): $(addprefix $(obj)/,$(zliblinuxheader)) \
 		$(addprefix $(obj)/,$(zlibheader))
 
-src-wlib := string.S stdio.c main.c flatdevtree.c flatdevtree_misc.c div64.S \
-		$(zlib)
+src-wlib := string.S stdio.c main.c flatdevtree.c flatdevtree_misc.c ns16550.c \
+		serial.c div64.S util.S $(zlib)
 src-plat := of.c
 src-boot := crt0.S $(src-wlib) $(src-plat) empty.c
 
arch/powerpc/boot/io.h new file +53 -0

53 lines not on this page · raw message

arch/powerpc/boot/ns16550.c new file +76 -0

76 lines not on this page · raw message

arch/powerpc/boot/serial.c new file +142 -0

142 lines not on this page · raw message

arch/powerpc/boot/util.S new file +101 -0

101 lines not on this page · raw message