summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2008-01-11 01:12:06 +0100
committerWolfgang Denk <wd@denx.de>2008-01-12 00:32:34 +0100
commit381e4e639720d8d2efb8066c7c48ec9588cb28c7 (patch)
tree648b14893a48c9cf72810943ff58a938c8c66dbf /cpu
parentbf05293973b348f6946c9df92cd3c65ece42d0be (diff)
downloadu-boot-imx-381e4e639720d8d2efb8066c7c48ec9588cb28c7.zip
u-boot-imx-381e4e639720d8d2efb8066c7c48ec9588cb28c7.tar.gz
u-boot-imx-381e4e639720d8d2efb8066c7c48ec9588cb28c7.tar.bz2
Added support for the mgsuvd board from keymile.
Signed-off-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'cpu')
-rw-r--r--cpu/mpc8xx/cpu.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/cpu/mpc8xx/cpu.c b/cpu/mpc8xx/cpu.c
index 97112f0..c878352 100644
--- a/cpu/mpc8xx/cpu.c
+++ b/cpu/mpc8xx/cpu.c
@@ -39,6 +39,12 @@
#include <mpc8xx.h>
#include <asm/cache.h>
+#if defined(CONFIG_OF_LIBFDT)
+#include <libfdt.h>
+#include <libfdt_env.h>
+#include <fdt_support.h>
+#endif
+
DECLARE_GLOBAL_DATA_PTR;
static char *cpu_warning = "\n " \
@@ -632,3 +638,13 @@ void reset_8xx_watchdog (volatile immap_t * immr)
#endif /* CONFIG_WATCHDOG */
/* ------------------------------------------------------------------------- */
+#if defined(CONFIG_OF_LIBFDT)
+void ft_cpu_setup (void *blob, bd_t *bd)
+{
+ char * cpu_path = "/cpus/" OF_CPU;
+
+ do_fixup_by_path_u32(blob, cpu_path, "bus-frequency", bd->bi_busfreq, 1);
+ do_fixup_by_path_u32(blob, cpu_path, "timebase-frequency", OF_TBCLK, 1);
+ do_fixup_by_path_u32(blob, cpu_path, "clock-frequency", bd->bi_intfreq, 1);
+}
+#endif /* CONFIG_OF_LIBFDT */