uboot-mediatek: fix global pll clock override on mtk_spim
authorNicolò Veronese <nicveronese@gmail.com>
Mon, 2 Oct 2023 20:17:09 +0000 (22:17 +0200)
committerNicolò Veronese <nicveronese@gmail.com>
Sun, 22 Oct 2023 16:14:03 +0000 (18:14 +0200)
commit8849ccb9957e69d85c93ad4b58400573a181ad18
tree8bef0f28bdf1674edd997e075b670f124b3819b6
parent4bdd1c1a135b5c816a01055f3cc9fc158bbc840a
uboot-mediatek: fix global pll clock override on mtk_spim

With patch 101-03-spi-mtk_spim-get-spi-clk-rate-only-once.patch
 a new system to calculate the SPI clocks has been added.

Unfortunately, the do_div macro overrides the global
 priv->pll_clk_rate field. This will cause to have a reduced
 clock rate on each subsequent SPI call.

Signed-off-by: Valerio 'ftp21' Mancini <ftp21@ftp21.eu>
Signed-off-by: Nicolò Veronese <nicveronese@gmail.com>
package/boot/uboot-mediatek/patches/131-spi-mtk_spim-prevent-global-pll-clock-override.patch [new file with mode: 0644]