diff options
author | Allen Martin <amartin@nvidia.com> | 2013-03-16 18:58:13 +0000 |
---|---|---|
committer | Tom Warren <twarren@nvidia.com> | 2013-03-25 09:56:07 -0700 |
commit | 77c42e80b936cf44334a59a7890c775712f5b707 (patch) | |
tree | 124810d32c093cd8a9fc9d71ec98c7113c17312a /drivers/spi/fdt_spi.c | |
parent | af77fdb2ce7184104c6eb5a7b981def549c771e0 (diff) | |
download | u-boot-imx-77c42e80b936cf44334a59a7890c775712f5b707.zip u-boot-imx-77c42e80b936cf44334a59a7890c775712f5b707.tar.gz u-boot-imx-77c42e80b936cf44334a59a7890c775712f5b707.tar.bz2 |
tegra114: add SPI driver
Add driver for tegra114 SPI controller. This controller is not
compatible with either the tegra20 or tegra30 controllers, so it
requires a new 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 'drivers/spi/fdt_spi.c')
-rw-r--r-- | drivers/spi/fdt_spi.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/spi/fdt_spi.c b/drivers/spi/fdt_spi.c index c6ae719..58f139a 100644 --- a/drivers/spi/fdt_spi.c +++ b/drivers/spi/fdt_spi.c @@ -29,6 +29,7 @@ #include <asm/arch-tegra/clk_rst.h> #include <asm/arch-tegra20/tegra20_sflash.h> #include <asm/arch-tegra20/tegra20_slink.h> +#include <asm/arch-tegra114/tegra114_spi.h> #include <spi.h> #include <fdtdec.h> @@ -79,6 +80,20 @@ static struct fdt_spi_driver fdt_spi_drivers[] = { .xfer = tegra30_spi_xfer, }, #endif +#ifdef CONFIG_TEGRA114_SPI + { + .compat = COMPAT_NVIDIA_TEGRA114_SPI, + .max_ctrls = CONFIG_TEGRA114_SPI_CTRLS, + .init = tegra114_spi_init, + .claim_bus = tegra114_spi_claim_bus, + .cs_is_valid = tegra114_spi_cs_is_valid, + .setup_slave = tegra114_spi_setup_slave, + .free_slave = tegra114_spi_free_slave, + .cs_activate = tegra114_spi_cs_activate, + .cs_deactivate = tegra114_spi_cs_deactivate, + .xfer = tegra114_spi_xfer, + }, +#endif }; static struct fdt_spi_driver *driver; |