diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2008-06-11 00:44:10 -0500 |
---|---|---|
committer | Andrew Fleming-AFLEMING <afleming@freescale.com> | 2008-06-11 01:50:53 -0500 |
commit | f060054dadbbe7027ca088eed806a3ef1f82fdb7 (patch) | |
tree | e59f03af5e9390d645168d0ea663070460b819de /include/asm-ppc/global_data.h | |
parent | ddde74a159caa6e18b481fec01d40b885aebb566 (diff) | |
download | u-boot-imx-f060054dadbbe7027ca088eed806a3ef1f82fdb7.zip u-boot-imx-f060054dadbbe7027ca088eed806a3ef1f82fdb7.tar.gz u-boot-imx-f060054dadbbe7027ca088eed806a3ef1f82fdb7.tar.bz2 |
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 'include/asm-ppc/global_data.h')
-rw-r--r-- | include/asm-ppc/global_data.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-ppc/global_data.h b/include/asm-ppc/global_data.h index ea70266..8cf7b6f 100644 --- a/include/asm-ppc/global_data.h +++ b/include/asm-ppc/global_data.h @@ -96,6 +96,9 @@ typedef struct global_data { uint mp_alloc_base; uint mp_alloc_top; #endif /* CONFIG_QE */ +#if defined(CONFIG_FSL_LAW) + u32 used_laws; +#endif #if defined(CONFIG_MPC5xxx) unsigned long ipb_clk; unsigned long pci_clk; |