feature(psram): add psram support for esp32-pico chip

1. esp32-pico use standard spi driver to access psram
2. for esp32-pico, flash and psram share the clock
3. for esp32-pico, psram cs io can be overwrite via menuconfig
This commit is contained in:
chenjianqiang
2018-12-25 21:15:15 +08:00
parent a0beff99d2
commit bd8733f74f
2 changed files with 133 additions and 66 deletions

View File

@@ -234,6 +234,15 @@ config SPIRAM_OCCUPY_VSPI_HOST
bool "VSPI host (SPI3)"
endchoice
config PICO_PSRAM_CS_IO
int "PSRAM CS IO for ESP32-PICO chip"
depends on SPIRAM_SUPPORT
range 0 33
default 10
help
When ESP32-PICO chip connect a external psram, the clock IO and data IO is fixed, but the CS IO can be
any unused GPIO, user can config it based on hardware design.
endmenu
config MEMMAP_TRACEMEM