author | Lokesh Vutla <lokeshvutla@ti.com> | |
Thu, 4 Apr 2013 19:51:14 +0000 (19:51 +0000) | ||
committer | Tom Rini <trini@ti.com> | |
Mon, 8 Apr 2013 15:29:34 +0000 (11:29 -0400) | ||
commit | d3d82e9fc69e284fa66ca82c8623f7de64a28130 | |
tree | df7cf4906d83f428df10f7737bda9c6778e1aa61 | tree | snapshot (tar.xz tar.gz zip) |
parent | a8f408a8c4607a63cf2803be205f7350f316f3bc | commit | diff |
arm: omap4: Fix SDRAM AUTO DETECTION
Commit "8602114 omap: emif: configure emif only when required"
breaks SDRAM_AUTO_DETECTION.
The issue is dmm_init() depends on emif_sizes[](SDRAM Auto detection)
done in do_sdram_init(). The above commit moves dmm_init() above
do_sdram_init() because of which dmm_init() uses uninitialized
emif_sizes[].
So instead of using global emif_sizes[], get sdram details locally
and calculate emif sizes.
Reported-by: Michael Cashwell <mboards@prograde.net>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Commit "8602114 omap: emif: configure emif only when required"
breaks SDRAM_AUTO_DETECTION.
The issue is dmm_init() depends on emif_sizes[](SDRAM Auto detection)
done in do_sdram_init(). The above commit moves dmm_init() above
do_sdram_init() because of which dmm_init() uses uninitialized
emif_sizes[].
So instead of using global emif_sizes[], get sdram details locally
and calculate emif sizes.
Reported-by: Michael Cashwell <mboards@prograde.net>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>