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:
parent
c293f0e73f
commit
f15c7fb929
1 changed files with 4 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue