diff options
author | Jagan Teki <jagan@amarulasolutions.com> | 2019-02-27 20:02:10 +0530 |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2019-03-04 18:08:56 +0530 |
commit | 8d71a19edd3fdb687709b240341abc7eebcce77e (patch) | |
tree | 79cfe4a3986d2a1025413ab37a6c676a2e0e1a2b /drivers/spi/sh_spi.h | |
parent | 178fbd243daeb0a3137e46bdc3b63d8df049e982 (diff) |
spi: sun4i: Add CLK support
Add CLK support to enable AHB and MOD SPI clocks on sun4i_spi driver.
Clock disablement could be done while releasing the bus transfer, but
the existing code doesn't disable the clocks it only taken care of clock
enablement globally in probe.
So to make a proper clock handling, the clocks should enable it in claim
and disable it in release.
This patch would also do that change, by enable and disable clock in
proper order.
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Diffstat (limited to 'drivers/spi/sh_spi.h')
0 files changed, 0 insertions, 0 deletions