rp2040: Add rp2350 bootrom based chipid and reboot to bootloader code

This adds the bootrom code needed to implement "reboot into
bootloader" and "chipid" capabilities.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2024-10-29 12:28:24 -04:00
parent 8a203cf2cb
commit f6718291b7
4 changed files with 65 additions and 9 deletions

View File

@@ -49,9 +49,7 @@ bootloader_request(void)
{
watchdog_hw->ctrl = 0;
try_request_canboot();
// Use the bootrom-provided code to reset into BOOTSEL mode
if (CONFIG_MACH_RP2040)
bootrom_reboot_usb_bootloader();
bootrom_reboot_usb_bootloader();
}