From 144ad337741f463b0283875109c1ca7c1628a0f1 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sat, 20 Sep 2008 21:39:02 +0000 Subject: 2008-09-20 Joel Sherrill * Makefile.am, include/bsp.h, network_5200/network.c, start/start.S, startup/bspstart.c, startup/cpuinit.c: Use top level shared bsp_get_work_area() implementation. Augment it to know about U-Boot. * startup/bspgetworkarea.c: Removed. --- c/src/lib/libbsp/powerpc/gen5200/startup/cpuinit.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'c/src/lib/libbsp/powerpc/gen5200/startup/cpuinit.c') diff --git a/c/src/lib/libbsp/powerpc/gen5200/startup/cpuinit.c b/c/src/lib/libbsp/powerpc/gen5200/startup/cpuinit.c index ed78e7d247..a2e988279a 100644 --- a/c/src/lib/libbsp/powerpc/gen5200/startup/cpuinit.c +++ b/c/src/lib/libbsp/powerpc/gen5200/startup/cpuinit.c @@ -176,8 +176,8 @@ void cpu_init_bsp(void) */ calc_dbat_regvals( &dbat, - uboot_bdinfo_ptr->bi_memstart, - uboot_bdinfo_ptr->bi_memsize, + bsp_uboot_board_info.bi_memstart, + bsp_uboot_board_info.bi_memsize, true, false, false, @@ -193,16 +193,16 @@ void cpu_init_bsp(void) * U-Boot that lies about the starting address of Flash. This check * corrects that. */ - if ((uboot_bdinfo_ptr->bi_flashstart + uboot_bdinfo_ptr->bi_flashsize) - < uboot_bdinfo_ptr->bi_flashstart) { - start = 0 - uboot_bdinfo_ptr->bi_flashsize; + if ((bsp_uboot_board_info.bi_flashstart + bsp_uboot_board_info.bi_flashsize) + < bsp_uboot_board_info.bi_flashstart) { + start = 0 - bsp_uboot_board_info.bi_flashsize; } else { - start = uboot_bdinfo_ptr->bi_flashstart; + start = bsp_uboot_board_info.bi_flashstart; } calc_dbat_regvals( &dbat, start, - uboot_bdinfo_ptr->bi_flashsize, + bsp_uboot_board_info.bi_flashsize, true, false, false, @@ -229,11 +229,11 @@ void cpu_init_bsp(void) /* * If there is SRAM, program BAT3 for that memory */ - if (uboot_bdinfo_ptr->bi_sramsize != 0) { + if (bsp_uboot_board_info.bi_sramsize != 0) { calc_dbat_regvals( &dbat, - uboot_bdinfo_ptr->bi_sramstart, - uboot_bdinfo_ptr->bi_sramsize, + bsp_uboot_board_info.bi_sramstart, + bsp_uboot_board_info.bi_sramsize, false, true, true, -- cgit v1.2.3