From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Wed, 12 Feb 2014 08:34:03 +0100 Subject: [U-Boot] [Patch v2] common: Add get_effective_memsize() to memsize.c In-Reply-To: <1392148646-6670-1-git-send-email-yorksun@freescale.com> References: <1392148646-6670-1-git-send-email-yorksun@freescale.com> Message-ID: <20140212083403.480b963e@lilith> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi York, On Tue, 11 Feb 2014 11:57:26 -0800, York Sun wrote: > This function has been around for powerpc. It is used for systems with > memory more than CONFIG_MAX_MEM_MAPPED. In case of non-contiguous memory, > this feature can limit U-boot to one block without going over the limit. > > Signed-off-by: York Sun > --- > Change log: > v1: The function is added to arch/arm/lib/board.c without changing others > v2: The function is moved to common/memsize.c, using __weak. The prototype > is added to include/common.h. Also consolidate existing functions for > powerpc. > > arch/arm/lib/board.c | 2 +- > arch/powerpc/cpu/mpc512x/traps.c | 1 - > arch/powerpc/cpu/mpc85xx/traps.c | 1 - > arch/powerpc/cpu/mpc86xx/traps.c | 1 - > arch/powerpc/lib/board.c | 18 ------------------ > arch/powerpc/lib/bootm.c | 1 - > board/freescale/c29xpcie/spl.c | 2 +- > board/freescale/p1022ds/spl.c | 2 +- > board/freescale/p1_p2_rdb_pc/spl.c | 2 +- > common/board_f.c | 11 ----------- > common/cmd_log.c | 2 +- > common/memsize.c | 16 +++++++++++++++- > include/common.h | 1 + > 13 files changed, 21 insertions(+), 39 deletions(-) For the trivial ARM change: Acked-by: Albert ARIBAUD Since the rest is essentially PPC, though, it makes sense not to go through the ARM repo for this patch. Amicalement, -- Albert.