File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
components/esp_psram/esp32s3 Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ static const char* TAG = "quad_psram";
6262#define PSRAM_IS_VALID (id ) (PSRAM_KGD(id) == PSRAM_ID_KGD)
6363
6464#define PSRAM_IS_64MBIT_TRIAL (id ) (PSRAM_EID(id) == 0x26)
65+ #define PSRAM_IS_2T_APS3204 (id ) ((((id) >> 21) && 0xfffff) == 1)
6566
6667// IO-pins for PSRAM.
6768// WARNING: PSRAM shares all but the CS and CLK pins with the flash, so these defines
@@ -327,6 +328,8 @@ esp_err_t esp_psram_impl_enable(void) //psram init
327328
328329 if (PSRAM_IS_64MBIT_TRIAL (s_psram_id )) {
329330 s_psram_size = PSRAM_SIZE_8MB ;
331+ } else if (PSRAM_IS_2T_APS3204 (s_psram_id )) {
332+ s_psram_size = PSRAM_SIZE_4MB ;
330333 } else {
331334 uint8_t density = PSRAM_SIZE_ID (s_psram_id );
332335 s_psram_size = density == 0x0 ? PSRAM_SIZE_2MB :
You can’t perform that action at this time.
0 commit comments