diff options
author | Girish K S <girishks2000@gmail.com> | 2013-06-21 01:56:13 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-06-25 06:15:33 -0400 |
commit | bff82038ca3e2976ad0b51d32c7a8c9ed31065f7 (patch) | |
tree | 760f99dfca607b881a51f4886775d49c1e1ebd80 | |
parent | 3146beec21b64f4551fcf0ac148381d54dc41b1b (diff) |
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>
-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 = { | |||
1609 | .clk_from_cmu = true, | 1609 | .clk_from_cmu = true, |
1610 | }; | 1610 | }; |
1611 | 1611 | ||
1612 | static struct s3c64xx_spi_port_config exynos5440_spi_port_config = { | ||
1613 | .fifo_lvl_mask = { 0x1ff }, | ||
1614 | .rx_lvl_offset = 15, | ||
1615 | .tx_st_done = 25, | ||
1616 | .high_speed = true, | ||
1617 | .clk_from_cmu = true, | ||
1618 | .quirks = S3C64XX_SPI_QUIRK_POLL, | ||
1619 | }; | ||
1620 | |||
1612 | static struct platform_device_id s3c64xx_spi_driver_ids[] = { | 1621 | static struct platform_device_id s3c64xx_spi_driver_ids[] = { |
1613 | { | 1622 | { |
1614 | .name = "s3c2443-spi", | 1623 | .name = "s3c2443-spi", |
@@ -1637,6 +1646,9 @@ static const struct of_device_id s3c64xx_spi_dt_match[] = { | |||
1637 | { .compatible = "samsung,exynos4210-spi", | 1646 | { .compatible = "samsung,exynos4210-spi", |
1638 | .data = (void *)&exynos4_spi_port_config, | 1647 | .data = (void *)&exynos4_spi_port_config, |
1639 | }, | 1648 | }, |
1649 | { .compatible = "samsung,exynos5440-spi", | ||
1650 | .data = (void *)&exynos5440_spi_port_config, | ||
1651 | }, | ||
1640 | { }, | 1652 | { }, |
1641 | }; | 1653 | }; |
1642 | MODULE_DEVICE_TABLE(of, s3c64xx_spi_dt_match); | 1654 | MODULE_DEVICE_TABLE(of, s3c64xx_spi_dt_match); |