Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Board specific flash sizes for RP2040 #4247

Merged
merged 3 commits into from
Feb 23, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@

// #define DEFAULT_UART_BUS_RX (&pin_PA11)
// #define DEFAULT_UART_BUS_TX (&pin_PA10)

// Flash chip is GD25Q32 connected over QSPI
#define TOTAL_FLASH_SIZE 4 * 1024 * 1024
tannewt marked this conversation as resolved.
Show resolved Hide resolved
3 changes: 3 additions & 0 deletions ports/raspberrypi/boards/qtpy_rp2040/mpconfigboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@

// #define DEFAULT_UART_BUS_RX (&pin_PA11)
// #define DEFAULT_UART_BUS_TX (&pin_PA10)

// Flash chip is GD25Q32 connected over QSPI
#define TOTAL_FLASH_SIZE 4 * 1024 * 1024
tannewt marked this conversation as resolved.
Show resolved Hide resolved
3 changes: 3 additions & 0 deletions ports/raspberrypi/boards/raspberry_pi_pico/mpconfigboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@

// #define DEFAULT_UART_BUS_RX (&pin_PA11)
// #define DEFAULT_UART_BUS_TX (&pin_PA10)

// Flash chip is W25Q16JVUXIQ connected over QSPI
#define TOTAL_FLASH_SIZE 2 * 1024 * 1024
tannewt marked this conversation as resolved.
Show resolved Hide resolved
3 changes: 0 additions & 3 deletions ports/raspberrypi/supervisor/internal_flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@

#define RESERVED_FLASH 1 * 1024 * 1024
tannewt marked this conversation as resolved.
Show resolved Hide resolved

// TODO: Parameterize flash size based on the configured flash.
#define TOTAL_FLASH_SIZE 2 * 1024 * 1024

// TODO: Split the caching out of supervisor/shared/external_flash so we can use it.
#define SECTOR_SIZE 4096
#define NO_CACHE 0xffffffff
Expand Down