enable-psram: Make initialization more robust

PSRAM was failing on some newer parts.  This change writes additional
values to the EMI controller early on that seems to fix the problems.

Signed-off-by: Sean Cross <xobs@kosagi.com>
This commit is contained in:
Sean Cross 2015-02-05 12:58:27 +08:00
parent c293f0e73f
commit f15c7fb929

View file

@ -3,6 +3,10 @@
sc_new "enable_psram", 1, 0, 0
/* Unclear what these do, but required on some chips */
sc_write32 0x39320d61, 0, EMI_CTRL_CONB
sc_write32 0x400, 0x400, EMI_CTRL_CONF
sc_write32 0x401, 0, EMI_CTRL_GENA
/* Remap EMI to 0x10000000, and SPI to 0x00000000 */