summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorAlison Wang <b18965@freescale.com>2015-02-12 18:33:15 +0800
committerTom Rini <trini@konsulko.com>2015-03-05 20:13:22 -0500
commit1313db48e2b94e4791878fd0062aae2b8bafa785 (patch)
tree4a476f548eb820d3de49f80a9b14fe67096899da /common
parente310b93ec1f7db77c1bb91841f7b73d47f43b561 (diff)
downloadu-boot-imx-1313db48e2b94e4791878fd0062aae2b8bafa785.zip
u-boot-imx-1313db48e2b94e4791878fd0062aae2b8bafa785.tar.gz
u-boot-imx-1313db48e2b94e4791878fd0062aae2b8bafa785.tar.bz2
m68k: Add generic board support for MCF547X/8X and MCF5445X
This patch adds generic board support for MCF547X/8X and MCF5445X. It is based on the patch about common generic board support for M68K architecture sent by Angelo. Signed-off-by: Alison Wang <alison.wang@freescale.com>
Diffstat (limited to 'common')
-rw-r--r--common/board_f.c8
-rw-r--r--common/board_r.c2
2 files changed, 9 insertions, 1 deletions
diff --git a/common/board_f.c b/common/board_f.c
index 09bd208..1989c81 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -648,6 +648,14 @@ static int setup_board_part2(void)
bd->bi_ipbfreq = gd->arch.ipb_clk;
bd->bi_pcifreq = gd->pci_clk;
#endif /* CONFIG_MPC5xxx */
+#if defined(CONFIG_M68K) && defined(CONFIG_PCI)
+ bd->bi_pcifreq = gd->pci_clk;
+#endif
+#if defined(CONFIG_EXTRA_CLOCK)
+ bd->bi_inpfreq = gd->arch.inp_clk; /* input Freq in Hz */
+ bd->bi_vcofreq = gd->arch.vco_clk; /* vco Freq in Hz */
+ bd->bi_flbfreq = gd->arch.flb_clk; /* flexbus Freq in Hz */
+#endif
return 0;
}
diff --git a/common/board_r.c b/common/board_r.c
index 826b94e..38be09b 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -759,7 +759,7 @@ init_fnc_t init_sequence_r[] = {
initr_flash,
#endif
INIT_FUNC_WATCHDOG_RESET
-#if defined(CONFIG_PPC)
+#if defined(CONFIG_PPC) || defined(CONFIG_M68K)
/* initialize higher level parts of CPU like time base and timers */
cpu_init_r,
#endif