Merge branch 'socrates' of /home/wd/git/u-boot/projects
[oweals/u-boot.git] / cpu / mpc85xx / fdt.c
index 43df1c70b2b282958bab41c49fe34e7d6eb1f9b1..bb87740baa6a41fc2fe80ae73290bdbeecd59b85 100644 (file)
@@ -52,7 +52,7 @@ void ft_fixup_cpu(void *blob, u64 memory_limit)
                        if (*reg == id) {
                                fdt_setprop_string(blob, off, "status", "okay");
                        } else {
-                               u32 val = *reg * 24 + spin_tbl_addr;
+                               u64 val = *reg * SIZE_BOOT_ENTRY + spin_tbl_addr;
                                val = cpu_to_fdt32(val);
                                fdt_setprop_string(blob, off, "status",
                                                                "disabled");