]> git.dujemihanovic.xyz Git - u-boot.git/commit
spi: zynq_qspi: Use clk subsystem to get reference qspi clk
authorT Karthik Reddy <t.karthik.reddy@xilinx.com>
Tue, 4 Feb 2020 12:47:45 +0000 (05:47 -0700)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 27 Oct 2020 07:13:32 +0000 (08:13 +0100)
commitea836be1e7b9e5a88637a87cf7219f96761d1b70
treea499b31dc540f2daa2cc2973288a4e03855dec02
parentb79a7030c31d4fdc3d37e41391a8272bc7f0f21a
spi: zynq_qspi: Use clk subsystem to get reference qspi 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_qspi.c