Skip to content

Commit

Permalink
Board specific flash sizes for RP2040
Browse files Browse the repository at this point in the history
Stop-gap solution for #4041. Comment is there to provide info
needed in the future. (We currently run the generic "safe" settings.)
  • Loading branch information
tannewt committed Feb 23, 2021
1 parent b19e7c9 commit 0aafeac
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
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
3 changes: 3 additions & 0 deletions ports/raspberrypi/boards/qtpy_rp2040/mpconfigboard.h
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
3 changes: 3 additions & 0 deletions ports/raspberrypi/boards/raspberry_pi_pico/mpconfigboard.h
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
3 changes: 0 additions & 3 deletions ports/raspberrypi/supervisor/internal_flash.c
Expand Up @@ -46,9 +46,6 @@

#define RESERVED_FLASH 1 * 1024 * 1024

// 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

0 comments on commit 0aafeac

Please sign in to comment.