diff options
author | Heiko Schocher <hs@denx.de> | 2009-12-03 11:20:06 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-12-08 22:13:02 +0100 |
commit | 00b6d927ba8900cdf218b90b277e1090e284bea6 (patch) | |
tree | 3e3cefc2ac5463a8eefaa403dcafecb86a153210 /cpu | |
parent | 35e3717772c8c3534c18d8aac69e4b822777c23b (diff) | |
download | u-boot-odroid-c1-00b6d927ba8900cdf218b90b277e1090e284bea6.tar.gz |
5xxx, fdt: move fdt_fixup_memory() to cpu.c file
u-boot updates, before starting Linux, the memory node in the
DTS. As this is a "standard" feature, move this functionality
to the cpu.c file for mpc5xxx and mpc512x processors.
Signed-off-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/mpc512x/cpu.c | 1 | ||||
-rw-r--r-- | cpu/mpc5xxx/cpu.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/cpu/mpc512x/cpu.c b/cpu/mpc512x/cpu.c index 42ccd81e76..dac48dbd36 100644 --- a/cpu/mpc512x/cpu.c +++ b/cpu/mpc512x/cpu.c @@ -197,6 +197,7 @@ void ft_cpu_setup(void *blob, bd_t *bd) #ifdef CONFIG_HAS_ETH0 fdt_fixup_ethernet(blob); #endif + fdt_fixup_memory(blob, (u64)bd->bi_memstart, (u64)bd->bi_memsize); } #endif diff --git a/cpu/mpc5xxx/cpu.c b/cpu/mpc5xxx/cpu.c index efa64c7481..2a28df4597 100644 --- a/cpu/mpc5xxx/cpu.c +++ b/cpu/mpc5xxx/cpu.c @@ -157,6 +157,7 @@ void ft_cpu_setup(void *blob, bd_t *bd) } #endif + fdt_fixup_memory(blob, (u64)bd->bi_memstart, (u64)bd->bi_memsize); } #endif |