Explorar o código

ppc/85xx: Fix up eSDHC controller clock frequency in the device tree

Signed-off-by: Dipen Dudhat <dipen.dudhat@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Dipen Dudhat %!s(int64=15) %!d(string=hai) anos
pai
achega
da1cd955df
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      cpu/mpc85xx/fdt.c

+ 7 - 0
cpu/mpc85xx/fdt.c

@@ -27,6 +27,9 @@
 #include <libfdt.h>
 #include <fdt_support.h>
 #include <asm/processor.h>
+#ifdef CONFIG_FSL_ESDHC
+#include <fsl_esdhc.h>
+#endif
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -326,4 +329,8 @@ void ft_cpu_setup(void *blob, bd_t *bd)
 #endif
 
 	ft_fixup_cache(blob);
+
+#if defined(CONFIG_FSL_ESDHC)
+	fdt_fixup_esdhc(blob, bd);
+#endif
 }