UF2: Enable support for Raspberry Pi RP2350

Add UF2 Family ID for Raspberry Pi 2350 and build
UF2 image by default for Pico 2 board

Signed-off-by: Ryan Grachek <grachek@gmail.com>
Signed-off-by: Andrew Featherstone <andrew.featherstone@gmail.com>
This commit is contained in:
Ryan Grachek 2024-09-20 17:18:33 +01:00 committed by Benjamin Cabé
commit 47b4e4c2fb
5 changed files with 15 additions and 0 deletions

View file

@ -794,6 +794,7 @@ config BUILD_OUTPUT_UF2_FAMILY_ID
default "0x4fb2d5bd" if SOC_SERIES_IMXRT10XX || SOC_SERIES_IMXRT11XX
default "0x2abc77ec" if SOC_SERIES_LPC55XXX
default "0xe48bff56" if SOC_SERIES_RP2040
default "0xe48bff57" if SOC_SERIES_RP2350
default "0x68ed2b88" if SOC_SERIES_SAMD21
default "0x55114460" if SOC_SERIES_SAMD51
default "0x647824b6" if SOC_SERIES_STM32F0X

View file

@ -0,0 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
board_runner_args(uf2 "--board-id=RP2350")
include(${ZEPHYR_BASE}/boards/common/uf2.board.cmake)

View file

@ -1,6 +1,7 @@
# This configuration is orthogonal to whether the Cortex-M33 or Hazard3 cores
# are in use, but Zephyr does not support providing a qualifier-agnostic
# _defconfig file.
CONFIG_BUILD_OUTPUT_UF2=y
CONFIG_CLOCK_CONTROL=y
CONFIG_CONSOLE=y
CONFIG_GPIO=y

View file

@ -189,6 +189,11 @@
"short_name": "RP2040",
"description": "Raspberry Pi RP2040"
},
{
"id": "0xe48bff57",
"short_name": "RP2350",
"description": "Raspberry Pi RP2350"
},
{
"id": "0x00ff6919",
"short_name": "STM32L4",

View file

@ -5,6 +5,9 @@
if SOC_SERIES_RP2350
config BUILD_OUTPUT_UF2_USE_FLASH_BASE
default y if BUILD_OUTPUT_UF2
config NUM_IRQS
default 52