From f15c7fb929902ba9e937745a01c0732465a92fda Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Thu, 5 Feb 2015 12:58:27 +0800 Subject: [PATCH] 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 --- scriptic/enable-psram.S | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scriptic/enable-psram.S b/scriptic/enable-psram.S index d0b55b8..890b508 100644 --- a/scriptic/enable-psram.S +++ b/scriptic/enable-psram.S @@ -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 */