]> git.baikalelectronics.ru Git - uboot.git/commit
spi: zynq_qspi: Fix programming qspi speed
authorAshok Reddy Soma <ashok.reddy.soma@xilinx.com>
Fri, 15 Jul 2022 14:01:19 +0000 (19:31 +0530)
committerMichal Simek <michal.simek@amd.com>
Tue, 26 Jul 2022 07:34:21 +0000 (09:34 +0200)
commit1ce7376ab226f1877fe1409eff2b3d50559408f3
tree852732e3a6aed34836e1e6650eda62cbbe02eeb2
parenteb7a6902e8726bf2da513b0db9979efc1eeb67ad
spi: zynq_qspi: Fix programming qspi speed

When programming qspi flash speed we need to check the requested flash
speed not to exceed the spi max frequency. In the current implementation
we are checking qspi ref clk instead. This commit fixes the issue by
checking the requested speed and programs the specified max frequency.

Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
Link: https://lore.kernel.org/r/1657893679-20039-5-git-send-email-ashok.reddy.soma@xilinx.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
drivers/spi/zynq_qspi.c