Skip to content

Commit a156e28

Browse files
committed
Merge branch 'feat/support_psram_aps3204l_v5.3' into 'release/v5.3'
psram: support APS3204L (v5.3) See merge request espressif/esp-idf!32390
2 parents bdd2233 + 10d68e9 commit a156e28

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

components/esp_psram/esp32s3/esp_psram_impl_quad.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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 :

0 commit comments

Comments
 (0)