diff options
author | Allen Martin <amartin@nvidia.com> | 2013-03-16 18:58:07 (GMT) |
---|---|---|
committer | Tom Warren <twarren@nvidia.com> | 2013-03-25 16:56:06 (GMT) |
commit | 78f47b7353ebe1f243203dcc1ce0a2a374c08a40 (patch) | |
tree | aafdfd503145a8bc2d16af8f2ad0f10c8dd62887 /board | |
parent | 6b3a03e112cecda55b58f3de40f4fc760159979b (diff) | |
download | u-boot-fsl-qoriq-78f47b7353ebe1f243203dcc1ce0a2a374c08a40.tar.xz |
spi: add common fdt SPI driver interface
Add a common interface to fdt based SPI drivers. Each driver is
represented by a table entry in fdt_spi_drivers[]. If there are
multiple SPI drivers in the table, the first driver to return success
from spi_init() will be registered as the SPI driver.
Signed-off-by: Allen Martin <amartin@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/nvidia/common/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c index 87a418b..8d7a227 100644 --- a/board/nvidia/common/board.c +++ b/board/nvidia/common/board.c @@ -132,7 +132,7 @@ int board_init(void) clock_init(); clock_verify(); -#if defined(CONFIG_TEGRA20_SFLASH) || defined(CONFIG_TEGRA20_SLINK) +#ifdef CONFIG_FDT_SPI pin_mux_spi(); spi_init(); #endif |