* [U-Boot] [PATCH] powerpc/85xx: Fix e6500 L2 cache stash IDs
@ 2014-03-27 1:30 Scott Wood
2014-04-23 22:32 ` York Sun
0 siblings, 1 reply; 2+ messages in thread
From: Scott Wood @ 2014-03-27 1:30 UTC (permalink / raw)
To: u-boot
The value written to L2CSR1 didn't match the value written to the
device tree.
Signed-off-by: Scott Wood <scottwood@freescale.com>
---
arch/powerpc/cpu/mpc85xx/fdt.c | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/arch/powerpc/cpu/mpc85xx/fdt.c b/arch/powerpc/cpu/mpc85xx/fdt.c
index 33bc900..31e63f7 100644
--- a/arch/powerpc/cpu/mpc85xx/fdt.c
+++ b/arch/powerpc/cpu/mpc85xx/fdt.c
@@ -275,12 +275,16 @@ static inline void ft_fixup_l2cache(void *blob)
u32 *reg = (u32 *)fdt_getprop(blob, off, "reg", 0);
#if defined(CONFIG_SYS_FSL_QORIQ_CHASSIS2) && defined(CONFIG_E6500)
/* Only initialize every eighth thread */
- if (reg && !((*reg) % 8))
+ if (reg && !((*reg) % 8)) {
+ fdt_setprop_cell(blob, l2_off, "cache-stash-id",
+ (*reg / 4) + 32 + 1);
+ }
#else
- if (reg)
-#endif
+ if (reg) {
fdt_setprop_cell(blob, l2_off, "cache-stash-id",
- (*reg * 2) + 32 + 1);
+ (*reg * 2) + 32 + 1);
+ }
+#endif
#endif
fdt_setprop(blob, l2_off, "cache-unified", NULL, 0);
--
1.8.3.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] powerpc/85xx: Fix e6500 L2 cache stash IDs
2014-03-27 1:30 [U-Boot] [PATCH] powerpc/85xx: Fix e6500 L2 cache stash IDs Scott Wood
@ 2014-04-23 22:32 ` York Sun
0 siblings, 0 replies; 2+ messages in thread
From: York Sun @ 2014-04-23 22:32 UTC (permalink / raw)
To: u-boot
On 03/26/2014 06:30 PM, Scott Wood wrote:
> The value written to L2CSR1 didn't match the value written to the
> device tree.
>
> Signed-off-by: Scott Wood <scottwood@freescale.com>
> ---
Applied to u-boot-mpc85xx/master, thanks.
York
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-04-23 22:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-27 1:30 [U-Boot] [PATCH] powerpc/85xx: Fix e6500 L2 cache stash IDs Scott Wood
2014-04-23 22:32 ` York Sun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox