mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-09 12:13:00 -04:00
powerpc: Move cpu specific lmb reserve to arch_lmb_reserve
We've been utilizing board_lmb_reserve to reserve the boot page for MP systems. We can just move this into arch_lmb_reserve for 85xx & 86xx systems rather than duplicating in each board port. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
parent
ccc4a8d89f
commit
561e710a97
@ -33,6 +33,7 @@
|
|||||||
#include <bzlib.h>
|
#include <bzlib.h>
|
||||||
#include <environment.h>
|
#include <environment.h>
|
||||||
#include <asm/byteorder.h>
|
#include <asm/byteorder.h>
|
||||||
|
#include <asm/mp.h>
|
||||||
|
|
||||||
#if defined(CONFIG_OF_LIBFDT)
|
#if defined(CONFIG_OF_LIBFDT)
|
||||||
#include <fdt.h>
|
#include <fdt.h>
|
||||||
@ -166,6 +167,10 @@ void arch_lmb_reserve(struct lmb *lmb)
|
|||||||
sp -= 4096;
|
sp -= 4096;
|
||||||
lmb_reserve(lmb, sp, (CONFIG_SYS_SDRAM_BASE + get_effective_memsize() - sp));
|
lmb_reserve(lmb, sp, (CONFIG_SYS_SDRAM_BASE + get_effective_memsize() - sp));
|
||||||
|
|
||||||
|
#ifdef CONFIG_MP
|
||||||
|
cpu_mp_lmb_reserve(lmb);
|
||||||
|
#endif
|
||||||
|
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2010 Freescale Semiconductor, Inc.
|
* Copyright 2009-2011 Freescale Semiconductor, Inc.
|
||||||
*
|
*
|
||||||
* See file CREDITS for list of people who contributed to this
|
* See file CREDITS for list of people who contributed to this
|
||||||
* project.
|
* project.
|
||||||
@ -39,8 +39,6 @@ extern void pci_of_setup(void *blob, bd_t *bd);
|
|||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
void cpu_mp_lmb_reserve(struct lmb *lmb);
|
|
||||||
|
|
||||||
int checkboard (void)
|
int checkboard (void)
|
||||||
{
|
{
|
||||||
u8 sw;
|
u8 sw;
|
||||||
@ -186,13 +184,6 @@ int misc_init_r(void)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_MP
|
|
||||||
void board_lmb_reserve(struct lmb *lmb)
|
|
||||||
{
|
|
||||||
cpu_mp_lmb_reserve(lmb);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void ft_board_setup(void *blob, bd_t *bd)
|
void ft_board_setup(void *blob, bd_t *bd)
|
||||||
{
|
{
|
||||||
phys_addr_t base;
|
phys_addr_t base;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2007-2010 Freescale Semiconductor, Inc.
|
* Copyright 2007-2011 Freescale Semiconductor, Inc.
|
||||||
*
|
*
|
||||||
* See file CREDITS for list of people who contributed to this
|
* See file CREDITS for list of people who contributed to this
|
||||||
* project.
|
* project.
|
||||||
@ -259,12 +259,3 @@ void ft_board_setup(void *blob, bd_t *bd)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_MP
|
|
||||||
extern void cpu_mp_lmb_reserve(struct lmb *lmb);
|
|
||||||
|
|
||||||
void board_lmb_reserve(struct lmb *lmb)
|
|
||||||
{
|
|
||||||
cpu_mp_lmb_reserve(lmb);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2006, 2007, 2010 Freescale Semiconductor.
|
* Copyright 2006, 2007, 2010-2011 Freescale Semiconductor.
|
||||||
*
|
*
|
||||||
* See file CREDITS for list of people who contributed to this
|
* See file CREDITS for list of people who contributed to this
|
||||||
* project.
|
* project.
|
||||||
@ -261,12 +261,3 @@ void board_reset(void)
|
|||||||
while (1)
|
while (1)
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_MP
|
|
||||||
extern void cpu_mp_lmb_reserve(struct lmb *lmb);
|
|
||||||
|
|
||||||
void board_lmb_reserve(struct lmb *lmb)
|
|
||||||
{
|
|
||||||
cpu_mp_lmb_reserve(lmb);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2010 Freescale Semiconductor, Inc.
|
* Copyright 2010-2011 Freescale Semiconductor, Inc.
|
||||||
* Authors: Srikanth Srinivasan <srikanth.srinivasan@freescale.com>
|
* Authors: Srikanth Srinivasan <srikanth.srinivasan@freescale.com>
|
||||||
* Timur Tabi <timur@freescale.com>
|
* Timur Tabi <timur@freescale.com>
|
||||||
*
|
*
|
||||||
@ -24,7 +24,6 @@
|
|||||||
#include <fdt_support.h>
|
#include <fdt_support.h>
|
||||||
#include <tsec.h>
|
#include <tsec.h>
|
||||||
#include <asm/fsl_law.h>
|
#include <asm/fsl_law.h>
|
||||||
#include <asm/mp.h>
|
|
||||||
#include <netdev.h>
|
#include <netdev.h>
|
||||||
#include <i2c.h>
|
#include <i2c.h>
|
||||||
#include <hwconfig.h>
|
#include <hwconfig.h>
|
||||||
@ -302,10 +301,3 @@ void ft_board_setup(void *blob, bd_t *bd)
|
|||||||
ft_codec_setup(blob, "wlf,wm8776");
|
ft_codec_setup(blob, "wlf,wm8776");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_MP
|
|
||||||
void board_lmb_reserve(struct lmb *lmb)
|
|
||||||
{
|
|
||||||
cpu_mp_lmb_reserve(lmb);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
@ -229,12 +229,3 @@ void ft_board_setup(void *blob, bd_t *bd)
|
|||||||
fdt_fixup_memory(blob, (u64)base, (u64)size);
|
fdt_fixup_memory(blob, (u64)base, (u64)size);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_MP
|
|
||||||
extern void cpu_mp_lmb_reserve(struct lmb *lmb);
|
|
||||||
|
|
||||||
void board_lmb_reserve(struct lmb *lmb)
|
|
||||||
{
|
|
||||||
cpu_mp_lmb_reserve(lmb);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2007-2010 Freescale Semiconductor, Inc.
|
* Copyright 2007-2011 Freescale Semiconductor, Inc.
|
||||||
*
|
*
|
||||||
* See file CREDITS for list of people who contributed to this
|
* See file CREDITS for list of people who contributed to this
|
||||||
* project.
|
* project.
|
||||||
@ -36,7 +36,6 @@
|
|||||||
#include <fdt_support.h>
|
#include <fdt_support.h>
|
||||||
#include <tsec.h>
|
#include <tsec.h>
|
||||||
#include <asm/fsl_law.h>
|
#include <asm/fsl_law.h>
|
||||||
#include <asm/mp.h>
|
|
||||||
#include <netdev.h>
|
#include <netdev.h>
|
||||||
|
|
||||||
#include "../common/ngpixis.h"
|
#include "../common/ngpixis.h"
|
||||||
@ -262,10 +261,3 @@ void ft_board_setup(void *blob, bd_t *bd)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_MP
|
|
||||||
void board_lmb_reserve(struct lmb *lmb)
|
|
||||||
{
|
|
||||||
cpu_mp_lmb_reserve(lmb);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
@ -273,12 +273,3 @@ void board_reset(void)
|
|||||||
__asm__ __volatile__ ("rfi");
|
__asm__ __volatile__ ("rfi");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_MP
|
|
||||||
extern void cpu_mp_lmb_reserve(struct lmb *lmb);
|
|
||||||
|
|
||||||
void board_lmb_reserve(struct lmb *lmb)
|
|
||||||
{
|
|
||||||
cpu_mp_lmb_reserve(lmb);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
@ -93,12 +93,3 @@ void ft_board_setup(void *blob, bd_t *bd)
|
|||||||
ft_cpu_setup(blob, bd);
|
ft_cpu_setup(blob, bd);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_MP
|
|
||||||
extern void cpu_mp_lmb_reserve(struct lmb *lmb);
|
|
||||||
|
|
||||||
void board_lmb_reserve(struct lmb *lmb)
|
|
||||||
{
|
|
||||||
cpu_mp_lmb_reserve(lmb);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
@ -96,12 +96,3 @@ void ft_board_setup(void *blob, bd_t *bd)
|
|||||||
ft_cpu_setup(blob, bd);
|
ft_cpu_setup(blob, bd);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_MP
|
|
||||||
extern void cpu_mp_lmb_reserve(struct lmb *lmb);
|
|
||||||
|
|
||||||
void board_lmb_reserve(struct lmb *lmb)
|
|
||||||
{
|
|
||||||
cpu_mp_lmb_reserve(lmb);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
@ -96,12 +96,3 @@ void ft_board_setup(void *blob, bd_t *bd)
|
|||||||
ft_cpu_setup(blob, bd);
|
ft_cpu_setup(blob, bd);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_MP
|
|
||||||
extern void cpu_mp_lmb_reserve(struct lmb *lmb);
|
|
||||||
|
|
||||||
void board_lmb_reserve(struct lmb *lmb)
|
|
||||||
{
|
|
||||||
cpu_mp_lmb_reserve(lmb);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user