Bamboo zImage wrapper
Quoted 6 lines · Milton Miller
Sorry for the broken reply but the list is broken.
Quoted 1 line · Josh Boyer
Add a bootwrapper for Bamboo
bamboo is what, an evaluation board? for which processor?
Yes, 440EP.
Quoted 11 lines
Quoted 9 lines
arch/powerpc/boot/Makefile +0
-0@@ -143,6 +143,7 @@ image-$(CONFIG_PPC_83xx) += cuImage.83x image-$(CONFIG_PPC_85xx) += cuImage.85xx image-$(CONFIG_EBONY) += treeImage.ebonycuImage.ebony
image-$(CONFIG_WALNUT) += treeImage.walnut
+image-$(CONFIG_BAMBOO) += treeImage.bamboo
endifYou are only making one target.
Yes... why is that a problem?
Quoted 9 lines
arch/powerpc/boot/Makefile
Quoted 7 lines
arch/powerpc/boot/Makefile +7
-0+static void bamboo_fixups(void) +{ + unsigned long sysclk = 33333333; + ibm440ep_fixup_clocks(sysclk, 11059200); + ibm4xx_fixup_memsize(); + ibm4xx_reset_eth((u32 *)0xef600e00, (u32 *)0xef600f00); +}This seems to have board specific information ..
I should hope so... it's a wrapper for the bamboo board.
Quoted 15 lines
arch/powerpc/boot/treeboot-bamboo.c
Quoted 3 lines
arch/powerpc/boot/treeboot-bamboo.c new file +0
-0@@ -0,0 +1,27 @@... [copyright header]
Quoted 11 lines
arch/powerpc/boot/treeboot-bamboo.c new file +11
-0+#include "ops.h" +#include "stdio.h" +#include "44x.h" + +extern char _end[]; + +BSS_STACK (4096 ); + +void platform_init (void ) +{ +unsigned long end_of_ram =0x8000000 ;
Quoted 8 lines
arch/powerpc/boot/treeboot-bamboo.c line 16
Quoted 5 lines
arch/powerpc/boot/treeboot-bamboo.c new file +5
-0+unsigned long avail_ram = end_of_ram - (unsigned long )_end; + +simple_alloc_init (_end, avail_ram,32 ,64 ); +bamboo_init (); +}Is there some reason they should not all be merged into this one platform file?
"they" meaning what?
Quoted 4 lines
I can understand wanting the dcr fixups as a library, but lets wait to do the file splits until there are actually users. Its also easier to see what's going to called when all the platform ops are filled in at one spot, not spread over multiple files.
I copied this from Ebony. There are multiple users already. You have two parts. The truly common stuff in 4xx.c and the board specific wrappers that do the things needed for the board.
You've thoroughly confused me.
josh
Sorry for the broken reply but the list is broken.
Quoted 1 line · Josh Boyer
Add a bootwrapper for Bamboo
bamboo is what, an evaluation board? for which processor?
Quoted 16 lines
Signed-off-by Josh Boyer <jwboyer at linux.vnet.ibm.com>--- arch/powerpc/boot/44x.h | 1 arch/powerpc/boot/Makefile | 5 - arch/powerpc/boot/bamboo.c | 126 ++++++++++++++++++++++++++++++++++++ arch/powerpc/boot/dcr.h | 11 +++ arch/powerpc/boot/treeboot-bamboo.c | 27 +++++++ 5 files changed, 168 insertions(+), 2 deletions(-)arch/powerpc/boot/Makefile +0
-0@@ -143,6 +143,7 @@ image-$(CONFIG_PPC_83xx) += cuImage.83x image-$(CONFIG_PPC_85xx) += cuImage.85xx image-$(CONFIG_EBONY) += treeImage.ebony
Quoted 4 lines
cuImage.ebony
image-$(CONFIG_WALNUT) += treeImage.walnut
+image-$(CONFIG_BAMBOO) += treeImage.bamboo
endif
You are only making one target.
arch/powerpc/boot/Makefile
Quoted 8 lines
arch/powerpc/boot/Makefile +8
-0+ +static void bamboo_fixups(void) +{ + unsigned long sysclk = 33333333; + ibm440ep_fixup_clocks(sysclk, 11059200); + ibm4xx_fixup_memsize(); + ibm4xx_reset_eth((u32 *)0xef600e00, (u32 *)0xef600f00); +}
This seems to have board specific information ..
arch/powerpc/boot/Makefile
Quoted 8 lines
arch/powerpc/boot/Makefile +8
-0+ +void bamboo_init(void) +{ + platform_ops.fixups = bamboo_fixups; + platform_ops.exit = ibm44x_dbcr_reset; + ft_init(_dtb_start, 0, 32); + serial_console_init(); +}
and so is this (by transitivity).
arch/powerpc/boot/treeboot-bamboo.c
Quoted 3 lines
arch/powerpc/boot/treeboot-bamboo.c new file +0
-0@@ -0,0 +1,27 @@
... [copyright header]
Quoted 6 lines
arch/powerpc/boot/treeboot-bamboo.c new file +6
-0+#include "ops.h" +#include "stdio.h" +#include "44x.h" + +extern char _end[]; +
arch/powerpc/boot/treeboot-bamboo.c line 16
Quoted 10 lines
arch/powerpc/boot/treeboot-bamboo.c new file +10
-0+BSS_STACK (4096 ); + +void platform_init (void ) +{ +unsigned long end_of_ram =0x8000000 ; +unsigned long avail_ram = end_of_ram - (unsigned long )_end; + +simple_alloc_init (_end, avail_ram,32 ,64 ); +bamboo_init (); +}
Is there some reason they should not all be merged into this one platform file?
I can understand wanting the dcr fixups as a library, but lets wait to do the file splits until there are actually users. Its also easier to see what's going to called when all the platform ops are filled in at one spot, not spread over multiple files.
milton
Quoted 10 lines · Josh Boyer
Quoted 2 lines
Is there some reason they should not all be merged into this one platform file?
"they" meaning what?
Quoted 4 lines
I can understand wanting the dcr fixups as a library, but lets wait to do the file splits until there are actually users. Its also easier to see what's going to called when all the platform ops are filled in at one spot, not spread over multiple files.
Quoted 5 lines
I copied this from Ebony. There are multiple users already. You have two parts. The truly common stuff in
4xx.cand the board specific wrappers that do the things needed for the board.You've thoroughly confused me.
Some discussion on IRC cleared this up. Milton was suggesting I merge the treeboot-bamboo.c and bamboo.c files together. I'm avoiding that because I do plan on creating a cuboot Bamboo target soon.
There is a method to my madness usually.
josh