From 7b4b2b760d9a8014c83cb0102a5bec2b5e5ac264 Mon Sep 17 00:00:00 2001 From: Philip Howard Date: Thu, 19 Jun 2025 16:41:26 +0100 Subject: [PATCH] Add POWMAN_PASSWORD_BITS to pico_bootsel_via_double_reset. (#2532) Fix pico_bootsel_via_double_reset for RP2350. Signed-off-by: Phil Howard --- .../pico_bootsel_via_double_reset.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rp2_common/pico_bootsel_via_double_reset/pico_bootsel_via_double_reset.c b/src/rp2_common/pico_bootsel_via_double_reset/pico_bootsel_via_double_reset.c index 8028936e..23632827 100644 --- a/src/rp2_common/pico_bootsel_via_double_reset/pico_bootsel_via_double_reset.c +++ b/src/rp2_common/pico_bootsel_via_double_reset/pico_bootsel_via_double_reset.c @@ -97,11 +97,11 @@ static inline bool double_tap_flag_is_set(void) { } static inline void set_double_tap_flag(void) { - hw_set_bits(&powman_hw->chip_reset, POWMAN_CHIP_RESET_DOUBLE_TAP_BITS); + hw_set_bits(&powman_hw->chip_reset, POWMAN_CHIP_RESET_DOUBLE_TAP_BITS | POWMAN_PASSWORD_BITS); } static inline void clear_double_tap_flag(void) { - hw_clear_bits(&powman_hw->chip_reset, POWMAN_CHIP_RESET_DOUBLE_TAP_BITS); + hw_clear_bits(&powman_hw->chip_reset, POWMAN_CHIP_RESET_DOUBLE_TAP_BITS | POWMAN_PASSWORD_BITS); } #endif