diff options
| author | Tom Rini <trini@ti.com> | 2012-09-25 12:23:55 -0700 | 
|---|---|---|
| committer | Tom Rini <trini@ti.com> | 2012-09-25 12:23:55 -0700 | 
| commit | 5675b509165b67465a20e5cf71e07f40b449ef0c (patch) | |
| tree | 9886f3e8fa8734ec9f8d9cb484fcaa87ff70203f /arch/powerpc/cpu/mpc85xx/fdt.c | |
| parent | ee1f4caaa2a3f79d692155eec8a4c7289d60e106 (diff) | |
| parent | d69dba367aed051663d0ee1ece013c8232bfa9f5 (diff) | |
| download | olio-uboot-2014.01-5675b509165b67465a20e5cf71e07f40b449ef0c.tar.xz olio-uboot-2014.01-5675b509165b67465a20e5cf71e07f40b449ef0c.zip | |
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx
Diffstat (limited to 'arch/powerpc/cpu/mpc85xx/fdt.c')
| -rw-r--r-- | arch/powerpc/cpu/mpc85xx/fdt.c | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/arch/powerpc/cpu/mpc85xx/fdt.c b/arch/powerpc/cpu/mpc85xx/fdt.c index 21c3ad49b..a0a9b4c5a 100644 --- a/arch/powerpc/cpu/mpc85xx/fdt.c +++ b/arch/powerpc/cpu/mpc85xx/fdt.c @@ -57,8 +57,9 @@ void ft_fixup_cpu(void *blob, u64 memory_limit)  		u32 *reg = (u32 *)fdt_getprop(blob, off, "reg", 0);  		if (reg) { -			u64 val = *reg * SIZE_BOOT_ENTRY + spin_tbl_addr; -			val = cpu_to_fdt32(val); +			u32 phys_cpu_id = thread_to_core(*reg); +			u64 val = phys_cpu_id * SIZE_BOOT_ENTRY + spin_tbl_addr; +			val = cpu_to_fdt64(val);  			if (*reg == id) {  				fdt_setprop_string(blob, off, "status",  								"okay"); @@ -534,7 +535,7 @@ void fdt_fixup_fman_firmware(void *blob)  #define fdt_fixup_fman_firmware(x)  #endif -#if defined(CONFIG_PPC_P4080) || defined(CONFIG_PPC_P3060) +#if defined(CONFIG_PPC_P4080)  static void fdt_fixup_usb(void *fdt)  {  	ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR); |