Commit 1313db48e2b94e4791878fd0062aae2b8bafa785
Committed by
Tom Rini
1 parent
e310b93ec1
Exists in
v2017.01-smarct4x
and in
37 other branches
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>
Showing 7 changed files with 25 additions and 4 deletions Side-by-side Diff
common/board_f.c
... | ... | @@ -648,6 +648,14 @@ |
648 | 648 | bd->bi_ipbfreq = gd->arch.ipb_clk; |
649 | 649 | bd->bi_pcifreq = gd->pci_clk; |
650 | 650 | #endif /* CONFIG_MPC5xxx */ |
651 | +#if defined(CONFIG_M68K) && defined(CONFIG_PCI) | |
652 | + bd->bi_pcifreq = gd->pci_clk; | |
653 | +#endif | |
654 | +#if defined(CONFIG_EXTRA_CLOCK) | |
655 | + bd->bi_inpfreq = gd->arch.inp_clk; /* input Freq in Hz */ | |
656 | + bd->bi_vcofreq = gd->arch.vco_clk; /* vco Freq in Hz */ | |
657 | + bd->bi_flbfreq = gd->arch.flb_clk; /* flexbus Freq in Hz */ | |
658 | +#endif | |
651 | 659 | |
652 | 660 | return 0; |
653 | 661 | } |
common/board_r.c
include/asm-generic/u-boot.h
... | ... | @@ -66,9 +66,14 @@ |
66 | 66 | #if defined(CONFIG_MPC512X) |
67 | 67 | unsigned long bi_ipsfreq; /* IPS Bus Freq, in MHz */ |
68 | 68 | #endif /* CONFIG_MPC512X */ |
69 | -#if defined(CONFIG_MPC5xxx) | |
69 | +#if defined(CONFIG_MPC5xxx) || defined(CONFIG_M68K) | |
70 | 70 | unsigned long bi_ipbfreq; /* IPB Bus Freq, in MHz */ |
71 | 71 | unsigned long bi_pcifreq; /* PCI Bus Freq, in MHz */ |
72 | +#endif | |
73 | +#if defined(CONFIG_EXTRA_CLOCK) | |
74 | + unsigned long bi_inpfreq; /* input Freq in MHz */ | |
75 | + unsigned long bi_vcofreq; /* vco Freq in MHz */ | |
76 | + unsigned long bi_flbfreq; /* Flexbus Freq in MHz */ | |
72 | 77 | #endif |
73 | 78 | #if defined(CONFIG_405) || \ |
74 | 79 | defined(CONFIG_405GP) || \ |
include/configs/M54451EVB.h
include/configs/M54455EVB.h
include/configs/M5475EVB.h
... | ... | @@ -22,11 +22,13 @@ |
22 | 22 | #define CONFIG_M547x /* define processor type */ |
23 | 23 | #define CONFIG_M5475 /* define processor type */ |
24 | 24 | |
25 | +#define CONFIG_DISPLAY_BOARDINFO | |
26 | + | |
25 | 27 | #define CONFIG_MCFUART |
26 | 28 | #define CONFIG_SYS_UART_PORT (0) |
27 | 29 | #define CONFIG_BAUDRATE 115200 |
28 | 30 | |
29 | -#define CONFIG_HW_WATCHDOG | |
31 | +#undef CONFIG_HW_WATCHDOG | |
30 | 32 | #define CONFIG_WATCHDOG_TIMEOUT 5000 /* timeout in milliseconds, max timeout is 6.71sec */ |
31 | 33 | |
32 | 34 | /* Command line configuration */ |
include/configs/M5485EVB.h
... | ... | @@ -22,11 +22,13 @@ |
22 | 22 | #define CONFIG_M548x /* define processor type */ |
23 | 23 | #define CONFIG_M5485 /* define processor type */ |
24 | 24 | |
25 | +#define CONFIG_DISPLAY_BOARDINFO | |
26 | + | |
25 | 27 | #define CONFIG_MCFUART |
26 | 28 | #define CONFIG_SYS_UART_PORT (0) |
27 | 29 | #define CONFIG_BAUDRATE 115200 |
28 | 30 | |
29 | -#define CONFIG_HW_WATCHDOG | |
31 | +#undef CONFIG_HW_WATCHDOG | |
30 | 32 | #define CONFIG_WATCHDOG_TIMEOUT 5000 /* timeout in milliseconds, max timeout is 6.71sec */ |
31 | 33 | |
32 | 34 | /* Command line configuration */ |