forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3315 from tannewt/add_psram
Add PSRAM support to ESP32S2
- Loading branch information
Showing
4 changed files
with
90 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
CONFIG_ESP32S2_SPIRAM_SUPPORT=y | ||
|
||
# | ||
# SPI RAM config | ||
# | ||
# CONFIG_SPIRAM_TYPE_AUTO is not set | ||
CONFIG_SPIRAM_TYPE_ESPPSRAM16=y | ||
# CONFIG_SPIRAM_TYPE_ESPPSRAM32 is not set | ||
# CONFIG_SPIRAM_TYPE_ESPPSRAM64 is not set | ||
CONFIG_SPIRAM_SIZE=2097152 | ||
|
||
# | ||
# PSRAM clock and cs IO for ESP32S2 | ||
# | ||
CONFIG_DEFAULT_PSRAM_CLK_IO=30 | ||
CONFIG_DEFAULT_PSRAM_CS_IO=26 | ||
# end of PSRAM clock and cs IO for ESP32S2 | ||
|
||
# CONFIG_SPIRAM_FETCH_INSTRUCTIONS is not set | ||
# CONFIG_SPIRAM_RODATA is not set | ||
# CONFIG_SPIRAM_SPEED_80M is not set | ||
CONFIG_SPIRAM_SPEED_40M=y | ||
# CONFIG_SPIRAM_SPEED_26M is not set | ||
# CONFIG_SPIRAM_SPEED_20M is not set | ||
CONFIG_SPIRAM=y | ||
CONFIG_SPIRAM_BOOT_INIT=y | ||
# CONFIG_SPIRAM_IGNORE_NOTFOUND is not set | ||
CONFIG_SPIRAM_USE_MEMMAP=y | ||
# CONFIG_SPIRAM_USE_CAPS_ALLOC is not set | ||
# CONFIG_SPIRAM_USE_MALLOC is not set | ||
CONFIG_SPIRAM_MEMTEST=y | ||
# CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY is not set | ||
# end of SPI RAM config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
CONFIG_ESP32S2_SPIRAM_SUPPORT=y | ||
|
||
# | ||
# SPI RAM config | ||
# | ||
# CONFIG_SPIRAM_TYPE_AUTO is not set | ||
# CONFIG_SPIRAM_TYPE_ESPPSRAM16 is not set | ||
# CONFIG_SPIRAM_TYPE_ESPPSRAM32 is not set | ||
CONFIG_SPIRAM_TYPE_ESPPSRAM64=y | ||
CONFIG_SPIRAM_SIZE=8388608 | ||
|
||
# | ||
# PSRAM clock and cs IO for ESP32S2 | ||
# | ||
CONFIG_DEFAULT_PSRAM_CLK_IO=30 | ||
CONFIG_DEFAULT_PSRAM_CS_IO=26 | ||
# end of PSRAM clock and cs IO for ESP32S2 | ||
|
||
CONFIG_SPIRAM_SPIWP_SD3_PIN=28 | ||
# CONFIG_SPIRAM_FETCH_INSTRUCTIONS is not set | ||
# CONFIG_SPIRAM_RODATA is not set | ||
# CONFIG_SPIRAM_USE_AHB_DBUS3 is not set | ||
# CONFIG_SPIRAM_SPEED_80M is not set | ||
CONFIG_SPIRAM_SPEED_40M=y | ||
# CONFIG_SPIRAM_SPEED_26M is not set | ||
# CONFIG_SPIRAM_SPEED_20M is not set | ||
CONFIG_SPIRAM=y | ||
CONFIG_SPIRAM_BOOT_INIT=y | ||
# CONFIG_SPIRAM_IGNORE_NOTFOUND is not set | ||
CONFIG_SPIRAM_USE_MEMMAP=y | ||
# CONFIG_SPIRAM_USE_CAPS_ALLOC is not set | ||
# CONFIG_SPIRAM_USE_MALLOC is not set | ||
CONFIG_SPIRAM_MEMTEST=y | ||
# CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY is not set | ||
# end of SPI RAM config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters