diff options
author | TsiChung Liew <Tsi-Chung.Liew@freescale.com> | 2008-07-23 17:53:36 -0500 |
---|---|---|
committer | John Rigby <jrigby@freescale.com> | 2008-08-14 12:31:55 -0600 |
commit | a7323bba229203aae2604afde131ab47bad4eadc (patch) | |
tree | 7ec5419217881b7f7caf1754b0fff3374c5c2a86 /lib_m68k/board.c | |
parent | b2d022d1ac3f59bffa9cec249341e77aea168abc (diff) |
ColdFire: Add SSPI feature for MCF5445x
Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
Diffstat (limited to 'lib_m68k/board.c')
-rw-r--r-- | lib_m68k/board.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib_m68k/board.c b/lib_m68k/board.c index a13ea2682bb..dedc9e4088d 100644 --- a/lib_m68k/board.c +++ b/lib_m68k/board.c @@ -59,6 +59,10 @@ #include <i2c.h> #endif +#ifdef CONFIG_CMD_SPI +#include <spi.h> +#endif + DECLARE_GLOBAL_DATA_PTR; static char *failed = "*** failed ***\n"; @@ -212,6 +216,16 @@ static int init_func_i2c (void) } #endif +#if defined(CONFIG_HARD_SPI) +static int init_func_spi (void) +{ + puts ("SPI: "); + spi_init (); + puts ("ready\n"); + return (0); +} +#endif + /***********************************************************************/ /************************************************************************ @@ -231,6 +245,9 @@ init_fnc_t *init_sequence[] = { #if defined(CONFIG_HARD_I2C) || defined(CONFIG_SOFT_I2C) init_func_i2c, #endif +#if defined(CONFIG_HARD_SPI) + init_func_spi, +#endif init_func_ram, #if defined(CFG_DRAM_TEST) testdram, |