]> git.sur5r.net Git - u-boot/commit
tegra: add SPI SLINK driver
authorAllen Martin <amartin@nvidia.com>
Tue, 29 Jan 2013 13:51:28 +0000 (13:51 +0000)
committerTom Warren <twarren@nvidia.com>
Mon, 11 Feb 2013 17:35:25 +0000 (10:35 -0700)
commitb19f57491a39542c9916367a9041199cb547d0e8
treeb7f02f03826cf51ab564ee92df7c0277b89f0542
parent91673e2adf8686aa0bb0cb184a4e000b77851f0f
tegra: add SPI SLINK driver

Add driver for tegra SPI "SLINK" style driver.  This controller is
similar to the tegra20 SPI "SFLASH" controller.  The difference is
that the SLINK controller is a genernal purpose SPI controller and the
SFLASH controller is special purpose and can only talk to FLASH
devices.  In addition there are potentially many instances of an SLINK
controller on tegra and only a single instance of SFLASH.  Tegra20 is
currently ths only version of tegra that instantiates an SFLASH
controller.

This driver supports basic PIO mode of operation and is configurable
(CONFIG_OF_CONTROL) to be driven off devicetree bindings.  Up to 4
devices per controller may be attached, although typically only a
single chip select line is exposed from tegra per controller so in
reality this is usually limited to 1.

To enable this driver, use CONFIG_TEGRA_SLINK

Signed-off-by: Allen Martin <amartin@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
arch/arm/include/asm/arch-tegra/tegra_slink.h [new file with mode: 0644]
board/nvidia/common/board.c
drivers/spi/Makefile
drivers/spi/tegra_slink.c [new file with mode: 0644]
include/fdtdec.h
lib/fdtdec.c