]> git.dujemihanovic.xyz Git - u-boot.git/commit
spi: sun4i: Add CLK support
authorJagan Teki <jagan@amarulasolutions.com>
Wed, 27 Feb 2019 14:32:10 +0000 (20:02 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Mon, 4 Mar 2019 12:38:56 +0000 (18:08 +0530)
commit8d71a19edd3fdb687709b240341abc7eebcce77e
tree79cfe4a3986d2a1025413ab37a6c676a2e0e1a2b
parent178fbd243daeb0a3137e46bdc3b63d8df049e982
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>
drivers/spi/sun4i_spi.c