Skip to content

Commit

Permalink
powerpc/85xx: p2020rdb & p1010rdb - lower spi flash freq to 40Mhz
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sebastian Andrzej Siewior authored and Kumar Gala committed Mar 16, 2012
1 parent 0c00f65 commit 564ee46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/p1010rdb.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
#size-cells = <1>;
compatible = "spansion,s25sl12801";
reg = <0>;
spi-max-frequency = <50000000>;
spi-max-frequency = <40000000>;

partition@0 {
/* 1MB for u-boot Bootloader Image */
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/boot/dts/p2020rdb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
#size-cells = <1>;
compatible = "spansion,s25sl12801";
reg = <0>;
spi-max-frequency = <50000000>;
spi-max-frequency = <40000000>;

partition@0 {
/* 512KB for u-boot Bootloader Image */
Expand Down

0 comments on commit 564ee46

Please sign in to comment.