powerpc: Xilinx: Fix boot with 16550 for 405 and 440
PATCH 1/1 powerpc: Xilinx: Fix boot with 16550 for 405 and 440
The following changes add processing to initialize the Xilinx 16550 UART in the boot strap loader since a boot loader is not used many times with the FPGA.
The wrapper was also modified to add the 440 build.
Signed-off-by John Linn <[email protected]>
--- arch/powerpc/boot/Makefile | 2 +- arch/powerpc/boot/simpleboot.c | 6 ++ arch/powerpc/boot/virtex.c | 100 ++++++++++++++++++++++++++++++++++++++++ arch/powerpc/boot/wrapper | 6 ++- 4 files changed, 112 insertions(+), 2 deletions(-) create mode 100644 arch/powerpc/boot/virtex.c
arch/powerpc/boot/Makefile +1 -1
@@ -66,7 +66,7 @@ src-plat := of.c cuboot-52xx.c cuboot-824x.c cuboot-83xx.c cuboot-85xx.c holly.c fixed-head.S ep88xc.c ep405.c \ cuboot-katmai.c cuboot-rainier.c redboot-8xx.c ep8248e.c \ cuboot-warp.c cuboot-85xx-cpm2.c cuboot-yosemite.c simpleboot.c \ - virtex405-head.S + virtex405-head.S virtex.c src-boot := $(src-wlib) $(src-plat) empty.c src-boot := $(addprefix $(obj)/, $(src-boot))
arch/powerpc/boot/simpleboot.c +6 -0
@@ -23,6 +23,8 @@BSS_STACK (4 *1024 ); +extern int platform_specific_init (void ) __attribute__((weak)); +void platform_init (unsigned long r3,unsigned long r4,unsigned long r5,unsigned long r6,unsigned long r7) {
@@ -80,5 +82,9 @@ void platform_init(unsigned long r3, unsigned long r4, unsigned long r5,/* prepare the device tree and find the console */ fdt_init (_dtb_start); + +if (platform_specific_init) +platform_specific_init (); +serial_console_init (); }
arch/powerpc/boot/virtex.c new file +100 -0
100 lines not on this page · raw message
arch/powerpc/boot/wrapper +5 -1
@@ -200,7 +200,11 @@ adder875-redboot) binary=y ;; simpleboot-virtex405-*) - platformo="$object/virtex405-head.o $object/simpleboot.o" + platformo="$object/virtex405-head.o $object/simpleboot.o $object/virtex.o" + binary=y + ;; +simpleboot-virtex440-*) + platformo="$object/simpleboot.o $object/virtex.o" binary=y ;; esac
Signature · 5 lines
1.5.2.1 This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.