]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ARM: dts: at91: sama5d2: use the divided clock for SMC
authorRomain Izard <romain.izard.pro@gmail.com>
Tue, 20 Nov 2018 16:57:37 +0000 (17:57 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Dec 2018 08:28:50 +0000 (09:28 +0100)
commitb254f11cc9304b757357460643003ea7087e6c5c
treee7e081318804f3154786999fa5dac5559e1de081
parent5ce4164fff6735d7f26b3e465deb7133cea558e9
ARM: dts: at91: sama5d2: use the divided clock for SMC

[ Upstream commit 4ab7ca092c3c7ac8b16aa28eba723a8868f82f14 ]

The SAMA5D2 is different from SAMA5D3 and SAMA5D4, as there are two
different clocks for the peripherals in the SoC. The Static Memory
controller is connected to the divided master clock.

Unfortunately, the device tree does not correctly show this and uses the
master clock directly. This clock is then used by the code for the NAND
controller to calculate the timings for the controller, and we end up with
slow NAND Flash access.

Fix the device tree, and the performance of Flash access is improved.

Signed-off-by: Romain Izard <romain.izard.pro@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/boot/dts/sama5d2.dtsi