]> git.dujemihanovic.xyz Git - u-boot.git/commit
spi: zynq_spi: Use clk subsystem to get reference spi clk
authorT Karthik Reddy <t.karthik.reddy@xilinx.com>
Tue, 4 Feb 2020 12:47:44 +0000 (05:47 -0700)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 27 Oct 2020 07:13:32 +0000 (08:13 +0100)
commitb79a7030c31d4fdc3d37e41391a8272bc7f0f21a
tree2c979123c3c620422d311cc51d8f6734be7ddfb2
parent6c9662df49abeefffe9987cb51f47c41b8457d10
spi: zynq_spi: Use clk subsystem to get reference spi clk

Remove fixed reference clk used by plat->frequency and use clk
subsystem to get reference clk. As per spi dt bindings
"spi-max-frequency" property should be used by the slave devices.
This property is read by spi-uclass driver for the slave device.
So avoid reading above property from the platform driver.

Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/spi/zynq_spi.c