spi: s3c64xx: add Exynos5433 compatible for ioclk handling
authorAndi Shyti <andi.shyti@samsung.com>
Tue, 12 Jul 2016 10:02:14 +0000 (19:02 +0900)
committerMark Brown <broonie@kernel.org>
Thu, 14 Jul 2016 16:28:32 +0000 (17:28 +0100)
commit7990b00819e765ca180d36b38969c2bde2734e53
tree0dbe5174847f268f9bdaf0974559c53d79295885
parent25981d8281ee4cbbd6f7c5bc0f8c048ad9548037
spi: s3c64xx: add Exynos5433 compatible for ioclk handling

The new compatible is related to the Samsung Exynos5433 SoC. The
difference between the previous is that in the exynos5433 the SPI
controller is driven by three clocks instead of only one.

The new clock (ioclk) is controlling the input/output clock
whenever the controller is slave or master.

The presence of the clock line is detected from the compatibility
structure (exynos5433_spi_port_config) as a boolean value.

The probe function checks whether the ioclk is present and if so,
it acquires.

The runtime suspend and resume functions will handle the clock
enabling and disabling as well.

Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
Reviewed-by: Michael Turquette <mturquette@baylibre.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-s3c64xx.c