-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
this adds the APS6404L PSRAM. Signed-off-by: Fin Maaß <[email protected]>
- Loading branch information
1 parent
85f4706
commit 444e777
Showing
3 changed files
with
33 additions
and
0 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,31 @@ | ||
from litespi.spi_nor_flash_module import SpiNorFlashModule | ||
from litespi.opcodes import SpiNorFlashOpCodes as Codes | ||
from litespi.ids import SpiNorFlashManufacturerIDs | ||
|
||
# Define non-generated SPI PSRAM chips here | ||
|
||
class APS6404L(SpiNorFlashModule): | ||
manufacturer_id = SpiNorFlashManufacturerIDs.NONJEDEC # AP Memory | ||
device_id = 0x0000 | ||
name = "aps6404l" | ||
|
||
total_size = 8388608 # bytes | ||
page_size = 128 # bytes | ||
total_pages = 65536 | ||
|
||
supported_opcodes = [ | ||
Codes.READ_1_1_1, # max 33 MHz | ||
Codes.READ_1_1_1_FAST, # max 84 MHz | ||
Codes.READ_1_4_4, # max 84 MHz | ||
Codes.READ_4_4_4_LOW, # max 66 MHz | ||
Codes.READ_4_4_4, # max 84 MHz | ||
Codes.PP_1_1_1, # max 84 MHz | ||
Codes.PP_1_4_4, # max 84 MHz | ||
] | ||
|
||
dummy_cycles = { | ||
Codes.READ_1_1_1_FAST: 8, | ||
Codes.READ_1_4_4: 6, | ||
Codes.READ_4_4_4_LOW: 4, | ||
Codes.READ_4_4_4: 6, | ||
} |
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