20 lines
372 B
C
20 lines
372 B
C
/*
|
|
* Copyright (C) 2024 Nordic Semiconductor ASA
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <zephyr/init.h>
|
|
#include <hal/nrf_vpr_csr.h>
|
|
|
|
static int vpr_init(void)
|
|
{
|
|
/* RT peripherals for VPR all share one enable.
|
|
* To prevent redundant calls, do it here once.
|
|
*/
|
|
nrf_vpr_csr_rtperiph_enable_set(true);
|
|
|
|
return 0;
|
|
}
|
|
|
|
SYS_INIT(vpr_init, PRE_KERNEL_1, 0);
|