Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,19 @@
}

#if defined(CONFIG_CLOCK_CONTROL_NRF)

#if defined(NRF54LM20A_ENGA_XXAA)
/* HF clock time to ramp-up. */
#define MAX_HFXO_RAMP_UP_TIME_US 550

static void hfclk_started_timer_handler(struct k_timer *dummy)
{
hfclk_on_callback(NULL, NULL, 0, 0);
}

K_TIMER_DEFINE(hfclk_started_timer, hfclk_started_timer_handler, NULL);
#endif

void nrf_802154_clock_hfclk_start(void)
{
struct onoff_manager *mgr =
Expand All @@ -64,7 +77,16 @@
int ret = onoff_request(mgr, &hfclk_cli);
__ASSERT_NO_MSG(ret >= 0);
(void)ret;

#if defined(NRF54LM20A_ENGA_XXAA)
/*
* Right now, the power_clock_irq is not available on nRF54LM20A.
* Since the onoff mechanism relies on the irq, the timer is used
* to emit the hfclk_ready callback.
*/
k_timer_start(&hfclk_started_timer, K_USEC(MAX_HFXO_RAMP_UP_TIME_US), K_NO_WAIT);
#endif
}

Check notice on line 89 in modules/hal_nordic/nrf_802154/sl_opensource/platform/nrf_802154_clock_zephyr.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

You may want to run clang-format on this change

modules/hal_nordic/nrf_802154/sl_opensource/platform/nrf_802154_clock_zephyr.c:89 - #if defined(NRF54LM20A_ENGA_XXAA) - /* - * Right now, the power_clock_irq is not available on nRF54LM20A. - * Since the onoff mechanism relies on the irq, the timer is used - * to emit the hfclk_ready callback. - */ - k_timer_start(&hfclk_started_timer, K_USEC(MAX_HFXO_RAMP_UP_TIME_US), K_NO_WAIT); - #endif +#if defined(NRF54LM20A_ENGA_XXAA) + /* + * Right now, the power_clock_irq is not available on nRF54LM20A. + * Since the onoff mechanism relies on the irq, the timer is used + * to emit the hfclk_ready callback. + */ + k_timer_start(&hfclk_started_timer, K_USEC(MAX_HFXO_RAMP_UP_TIME_US), K_NO_WAIT); +#endif

void nrf_802154_clock_hfclk_stop(void)
{
Expand Down
Loading