Skip to content

Commit 0a8d32e

Browse files
maxd-nordicrlubos
authored andcommitted
[nrf fromtree] drivers: dp: swdp_bitbang: hardcode nRF53 SYSCLK
Since CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC is tied to the slow RTC clock for the nRF53, use the default SYSCLK of 64MHz instead. Signed-off-by: Maximilian Deubel <[email protected]> (cherry picked from commit 621a600)
1 parent 44cb146 commit 0a8d32e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/dp/swdp_ll_pin.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66

77
#include <zephyr/kernel.h>
88
#include <zephyr/drivers/gpio.h>
9+
#include <soc.h>
910

10-
#if defined(CONFIG_SOC_SERIES_NRF52X)
11+
#if defined(CONFIG_SOC_SERIES_NRF52X) || defined(CONFIG_SOC_SERIES_NRF53X)
1112
#define CPU_CLOCK 64000000U
1213
#else
1314
#define CPU_CLOCK CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC

0 commit comments

Comments
 (0)