Skip to contentSkip to conversation

bootwrapper: Add PlanetCore firmware support.

PATCH In review Scott Wood 1 participant 1 message Sep 20, 2007 PowerPC

lore
Share & tools
lore

Scott Wood

author
#0 lore raw

PATCH 2/2 bootwrapper: Add PlanetCore firmware support.

This is a library that board code can use to extract information from the PlanetCore configuration keys. PlanetCore is used on various boards from Embedded Planet.

---
This replaces the previous "Add PlanetCore firmware support" patch.

Besides using dt_set_mac_address(), it fixes a bug with MAC address generation -- it previously assumed that the mac address in the environment was of the first ethernet port, when it's actually of the currently configured ethernet port.

 arch/powerpc/boot/Makefile     |    2 +-
 arch/powerpc/boot/planetcore.c |  166 ++++++++++++++++++++++++++++++++++++++++
 arch/powerpc/boot/planetcore.h |   49 ++++++++++++
 3 files changed, 216 insertions(+), 1 deletions(-)
 create mode 100644 arch/powerpc/boot/planetcore.c
 create mode 100644 arch/powerpc/boot/planetcore.h
arch/powerpc/boot/Makefile +1 -1
index cffef14..9ec785c 100644
@@ -45,7 +45,7 @@ src-wlib := string.S crt0.S stdio.c main.c flatdevtree.c flatdevtree_misc.c \
 		ns16550.c serial.c simple_alloc.c div64.S util.S \
 		gunzip_util.c elf_util.c $(zlib) devtree.c oflib.c ofconsole.c \
 		4xx.c ebony.c mv64x60.c mpsc.c mv64x60_i2c.c cuboot.c bamboo.c \
-		cpm-serial.c stdlib.c
+		cpm-serial.c stdlib.c planetcore.c
 src-plat := of.c cuboot-83xx.c cuboot-85xx.c holly.c \
 		cuboot-ebony.c treeboot-ebony.c prpmc2800.c \
 		ps3-head.S ps3-hvcall.S ps3.c treeboot-bamboo.c cuboot-8xx.c \
arch/powerpc/boot/planetcore.c new file +166 -0

166 lines not on this page · raw message

arch/powerpc/boot/planetcore.h new file +49 -0

49 lines not on this page · raw message

Signature · 1 line
1.5.3.1