]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
powerpc/85xx: p2020rdb & p1010rdb - lower spi flash freq to 40Mhz
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 15 Mar 2012 17:40:28 +0000 (18:40 +0100)
committerKumar Gala <galak@kernel.crashing.org>
Fri, 16 Mar 2012 15:46:31 +0000 (10:46 -0500)
This is here most likely since the FSL bsp. Back in the FSL bsp it was
set to 50Mhz and working. However the driver divided the SoC freq. only
by 2. According to the TRM the platform clock (which the manual refers
in its formula) is the system clock divided by two. So in the end it has
to divide by 4 and this is what the fsl-spi driver in tree is doing.
Since then the flash is not wokring I guess. After chaning the freq from
50Mhz to 40Mhz like others do then I can access the flash.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/boot/dts/p1010rdb.dtsi
arch/powerpc/boot/dts/p2020rdb.dts

index d4c4a7730285501317523ab39054825ff3d2df7a..1c41ef0c817cb670f48804d2efd5549a6a406691 100644 (file)
                        #size-cells = <1>;
                        compatible = "spansion,s25sl12801";
                        reg = <0>;
-                       spi-max-frequency = <50000000>;
+                       spi-max-frequency = <40000000>;
 
                        partition@0 {
                                /* 1MB for u-boot Bootloader Image */
index 8f25ef2e6e429932b66eaad065715c2268d9c7ed..153bc76bb48ea75cc93ca9d93d41207fe420a147 100644 (file)
                                #size-cells = <1>;
                                compatible = "spansion,s25sl12801";
                                reg = <0>;
-                               spi-max-frequency = <50000000>;
+                               spi-max-frequency = <40000000>;
 
                                partition@0 {
                                        /* 512KB for u-boot Bootloader Image */