spi/tegra114: add spi driver

Add SPI driver for NVIDIA's Tegra114 SPI controller. This controller
is different than the older SoCs SPI controller in internal design as
well as register interface.

This driver supports the:
- non DMA based transfer for smaller transfer i.e. less than FIFO depth.
- APB DMA based transfer for larger transfer i.e. more than FIFO depth.
- Clock gating through runtime PM callbacks.
- registration through DT only.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
Laxman Dewangan
2013-02-22 18:07:39 +05:30
committed by Grant Likely
parent 5e49035e26
commit f333a331ad
4 changed files with 1281 additions and 0 deletions

1246
drivers/spi/spi-tegra114.c Normal file

File diff suppressed because it is too large Load Diff