diff options
author | Girish K S <girishks2000@gmail.com> | 2013-06-21 11:26:13 +0530 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-06-25 11:15:33 +0100 |
commit | bff82038ca3e2976ad0b51d32c7a8c9ed31065f7 (patch) | |
tree | 760f99dfca607b881a51f4886775d49c1e1ebd80 /drivers/spi/spi-s3c64xx.c | |
parent | 3146beec21b64f4551fcf0ac148381d54dc41b1b (diff) | |
download | linux-bff82038ca3e2976ad0b51d32c7a8c9ed31065f7.tar.gz linux-bff82038ca3e2976ad0b51d32c7a8c9ed31065f7.tar.bz2 linux-bff82038ca3e2976ad0b51d32c7a8c9ed31065f7.zip |
spi: s3c64xx: Added support for exynos5440 spi
This patch adds support for the exynos5440 spi controller.
The integration of the spi IP in exynos5440 is different from
other SoC's. The I/O pins are no more configured via gpio, they
have dedicated pins.
Signed-off-by: Girish K S <ks.giri@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spi-s3c64xx.c')
-rw-r--r-- | drivers/spi/spi-s3c64xx.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 067f442de2d4..d170cc0d81a0 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -1609,6 +1609,15 @@ static struct s3c64xx_spi_port_config exynos4_spi_port_config = { .clk_from_cmu = true, }; +static struct s3c64xx_spi_port_config exynos5440_spi_port_config = { + .fifo_lvl_mask = { 0x1ff }, + .rx_lvl_offset = 15, + .tx_st_done = 25, + .high_speed = true, + .clk_from_cmu = true, + .quirks = S3C64XX_SPI_QUIRK_POLL, +}; + static struct platform_device_id s3c64xx_spi_driver_ids[] = { { .name = "s3c2443-spi", @@ -1637,6 +1646,9 @@ static const struct of_device_id s3c64xx_spi_dt_match[] = { { .compatible = "samsung,exynos4210-spi", .data = (void *)&exynos4_spi_port_config, }, + { .compatible = "samsung,exynos5440-spi", + .data = (void *)&exynos5440_spi_port_config, + }, { }, }; MODULE_DEVICE_TABLE(of, s3c64xx_spi_dt_match); |