Commit 1313db48e2b94e4791878fd0062aae2b8bafa785

Authored by Alison Wang
Committed by Tom Rini
1 parent e310b93ec1

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

... ... @@ -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 }
... ... @@ -759,7 +759,7 @@
759 759 initr_flash,
760 760 #endif
761 761 INIT_FUNC_WATCHDOG_RESET
762   -#if defined(CONFIG_PPC)
  762 +#if defined(CONFIG_PPC) || defined(CONFIG_M68K)
763 763 /* initialize higher level parts of CPU like time base and timers */
764 764 cpu_init_r,
765 765 #endif
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
... ... @@ -22,6 +22,8 @@
22 22 #define CONFIG_M54451 /* define processor type */
23 23 #define CONFIG_M54451EVB /* M54451EVB board */
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
include/configs/M54455EVB.h
... ... @@ -22,6 +22,8 @@
22 22 #define CONFIG_M54455 /* define processor type */
23 23 #define CONFIG_M54455EVB /* M54455EVB board */
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
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 */