summaryrefslogtreecommitdiff
path: root/lib_ppc
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2008-06-11 00:44:10 -0500
committerAndrew Fleming-AFLEMING <afleming@freescale.com>2008-06-11 01:50:53 -0500
commitf060054dadbbe7027ca088eed806a3ef1f82fdb7 (patch)
treee59f03af5e9390d645168d0ea663070460b819de /lib_ppc
parentddde74a159caa6e18b481fec01d40b885aebb566 (diff)
FSL LAW: Keep track of LAW allocations
Make it so we keep track of which LAWs have allocated and provide a function (set_next_law) which can allocate a LAW for us if one is free. In the future we will move to doing more "dynamic" LAW allocation since the majority of users dont really care about what LAW number they are at. Also, add CONFIG_MPC8540 or CONFIG_MPC8560 to those boards which needed them Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'lib_ppc')
-rw-r--r--lib_ppc/board.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib_ppc/board.c b/lib_ppc/board.c
index a90883162c2..c42e08862fc 100644
--- a/lib_ppc/board.c
+++ b/lib_ppc/board.c
@@ -421,7 +421,8 @@ void board_init_f (ulong bootflag)
/* compiler optimization barrier needed for GCC >= 3.4 */
__asm__ __volatile__("": : :"memory");
-#if !defined(CONFIG_CPM2) && !defined(CONFIG_MPC83XX)
+#if !defined(CONFIG_CPM2) && !defined(CONFIG_MPC83XX) && \
+ !defined(CONFIG_MPC85xx) && !defined(CONFIG_MPC86xx)
/* Clear initial global data */
memset ((void *) gd, 0, sizeof (gd_t));
#endif