]> granicus.if.org Git - esp-idf/commit
feature(psram): add support for 64MBit psram of 1.8v and 3.3v.
authorWangjialin <wangjialin@espressif.com>
Wed, 4 Jul 2018 03:43:30 +0000 (11:43 +0800)
committerWangjialin <wangjialin@espressif.com>
Tue, 10 Jul 2018 06:24:59 +0000 (14:24 +0800)
commit6e9c59bfc37d14a12cd5f2cb70f442712964c773
tree9d487e3141c401c7d068d659043e7e4d17ec50d6
parent9d830a6f7c94afec1230ccfbbde6d37fb5d6974e
feature(psram): add support for 64MBit psram of 1.8v and 3.3v.

1. Add reading psram EID.
2. Configure different clock mode for different EID.
3. add API to get psram size and voltage.
4. Remove unnecessary VSPI claim.

For 32MBit@1.8V and 64MBit@3.3V psram, there should be 2 extra clock cycles after CS get high level.
For 64MBit@1.8 psram, we can just use standard SPI protocol to drive the psram. We also need to increase the HOLD time for CS in this case.

EID for psram:
32MBit 1.8v: 0x20
64MBit 1.8v: 0x26
64MBit 3.3v: 0x46
components/esp32/include/esp_spiram.h
components/esp32/spiram.c
components/esp32/spiram_psram.c
components/esp32/spiram_psram.h