diff options
author | Tom Warren <twarren.nvidia@gmail.com> | 2011-11-05 09:48:11 +0000 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2011-12-24 10:23:30 +0100 |
commit | 9112ef8d89e3e496ba6f73276f17dd5c2b93877f (patch) | |
tree | 09d5213301638175a9bbf248c31c1bdcc0b1ab12 /board/nvidia/common/board.c | |
parent | 1be0d75973eff5a7655f8eb5241661767b97ffd3 (diff) | |
download | u-boot-imx-9112ef8d89e3e496ba6f73276f17dd5c2b93877f.zip u-boot-imx-9112ef8d89e3e496ba6f73276f17dd5c2b93877f.tar.gz u-boot-imx-9112ef8d89e3e496ba6f73276f17dd5c2b93877f.tar.bz2 |
tegra2: spi: Add SPI driver for Tegra2 SOC
This driver supports SPI on Tegra2, running at 48MHz.
Signed-off-by: Tom Warren <twarren@nvidia.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'board/nvidia/common/board.c')
-rw-r--r-- | board/nvidia/common/board.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c index 4c29167..6a1312c 100644 --- a/board/nvidia/common/board.c +++ b/board/nvidia/common/board.c @@ -31,6 +31,7 @@ #include <asm/arch/clock.h> #include <asm/arch/pinmux.h> #include <asm/arch/uart.h> +#include <spi.h> #include "board.h" DECLARE_GLOBAL_DATA_PTR; @@ -114,6 +115,9 @@ int board_init(void) clock_init(); clock_verify(); +#ifdef CONFIG_TEGRA2_SPI + spi_init(); +#endif /* boot param addr */ gd->bd->bi_boot_params = (NV_PA_SDRAM_BASE + 0x100); |