diff options
author | Poonam Aggrwal <poonam.aggrwal@freescale.com> | 2009-09-02 19:40:36 +0530 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2009-09-08 09:10:08 -0500 |
commit | f8027f6b4789e3340f10620d8fb6113b95b88d9c (patch) | |
tree | 7a6cd3030bb8f18275c387c0953206d5757835fc /cpu/mpc86xx | |
parent | 58442dc01e47cc8ce42af4f29486a34cad60b9d2 (diff) | |
download | u-boot-imx-f8027f6b4789e3340f10620d8fb6113b95b88d9c.zip u-boot-imx-f8027f6b4789e3340f10620d8fb6113b95b88d9c.tar.gz u-boot-imx-f8027f6b4789e3340f10620d8fb6113b95b88d9c.tar.bz2 |
ppc/85xx/86xx: Device tree fixup for number of cores
Fixing the number of cores in the device tree based on the actual number of
cores on the system. With this same device tree image can be used for dual
core and single core members of otherwise exactly same SOC.
For example:
* P2020RDB and P2010RDB
* P1020RDB and P1011RDB
* MPC8641D and MPC8641
Signed-off-by: Poonam Aggrwal <poonam.aggrwal@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'cpu/mpc86xx')
-rw-r--r-- | cpu/mpc86xx/fdt.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpu/mpc86xx/fdt.c b/cpu/mpc86xx/fdt.c index a36ee30..51f3f4c 100644 --- a/cpu/mpc86xx/fdt.c +++ b/cpu/mpc86xx/fdt.c @@ -13,6 +13,8 @@ DECLARE_GLOBAL_DATA_PTR; +extern void ft_fixup_num_cores(void *blob); + void ft_cpu_setup(void *blob, bd_t *bd) { #ifdef CONFIG_MP @@ -54,4 +56,5 @@ void ft_cpu_setup(void *blob, bd_t *bd) if (off < 0) printf("%s: %s\n", __FUNCTION__, fdt_strerror(off)); #endif + ft_fixup_num_cores(blob); } |