Skip to content
Snippets Groups Projects
Commit cb0ff65c authored by Vivek Mahajan's avatar Vivek Mahajan Committed by Kumar Gala
Browse files

85xx-fdt: Fixed l2-ctlr's compatible prop for QorIQ


The code assumed names where just numbers and always prefixed 'mpc'.
However newer QorIQ don't follow the mpc naming scheme.

Signed-off-by: default avatarVivek Mahajan <vivek.mahajan@freescale.com>
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent 234a89d9
No related branches found
No related tags found
No related merge requests found
/* /*
* Copyright 2007 Freescale Semiconductor, Inc. * Copyright 2007-2009 Freescale Semiconductor, Inc.
* *
* (C) Copyright 2000 * (C) Copyright 2000
* Wolfgang Denk, DENX Software Engineering, wd@denx.de. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include <libfdt.h> #include <libfdt.h>
#include <fdt_support.h> #include <fdt_support.h>
#include <asm/processor.h> #include <asm/processor.h>
#include <linux/ctype.h>
#ifdef CONFIG_FSL_ESDHC #ifdef CONFIG_FSL_ESDHC
#include <fsl_esdhc.h> #include <fsl_esdhc.h>
#endif #endif
...@@ -148,8 +149,14 @@ static inline void ft_fixup_l2cache(void *blob) ...@@ -148,8 +149,14 @@ static inline void ft_fixup_l2cache(void *blob)
} }
if (cpu) { if (cpu) {
len = sprintf(compat_buf, "fsl,mpc%s-l2-cache-controller", if (isdigit(cpu->name[0]))
cpu->name); len = sprintf(compat_buf,
"fsl,mpc%s-l2-cache-controller", cpu->name);
else
len = sprintf(compat_buf,
"fsl,%c%s-l2-cache-controller",
tolower(cpu->name[0]), cpu->name + 1);
sprintf(&compat_buf[len + 1], "cache"); sprintf(&compat_buf[len + 1], "cache");
} }
fdt_setprop(blob, off, "cache-unified", NULL, 0); fdt_setprop(blob, off, "cache-unified", NULL, 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment