VREQCTRL: Add register stub and definitions for nrf53

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras 2023-09-21 10:22:40 +02:00
parent 802e0cf2b9
commit 51f26a30e2
5 changed files with 64 additions and 1 deletions

View File

@ -23,4 +23,5 @@ src/HW_models/NHW_RTC.c
src/HW_models/NHW_SWI.c
src/HW_models/NHW_TIMER.c
src/HW_models/NHW_TEMP.c
src/HW_models/NHW_VREQCTRL.c
src/HW_models/weak_stubs.c

View File

@ -0,0 +1,17 @@
/*
* Copyright (c) 2023 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* VREQCTRL - Voltage request control
* https://infocenter.nordicsemi.com/topic/ps_nrf5340/chapters/vreqctrl/doc/vreqctrl.html?cp=4_0_0_3_8
*
* Just a stub for the registers at this point.
*/
#include "NHW_config.h"
#include "NHW_peri_types.h"
NRF_VREQCTRL_Type NRF_VREQCTRL_regs = {0};

View File

@ -0,0 +1,17 @@
/*
* Copyright (c) 2023, Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _NRF_HW_MODELS_NHW_VREQCTRL_H
#define _NRF_HW_MODELS_NHW_VREQCTRL_H
#ifdef __cplusplus
extern "C"{
#endif
#ifdef __cplusplus
}
#endif
#endif /* _NRF_HW_MODELS_NHW_VREQCTRL_H */

View File

@ -113,6 +113,18 @@ typedef struct {
__IOM uint32_t FORCEOFF; /*!< (@ 0x00000004) Force network core off */
} RESET_NETWORK_Type; /*!< Size = 8 (0x8) */
/**
* @brief VREQCTRL_VREGRADIO [VREGRADIO] (Unspecified)
*/
typedef struct {
__IOM uint32_t VREQH; /*!< (@ 0x00000000) Request high voltage on RADIO After requesting
high voltage, the user must wait until VREQHREADY
is set to Ready */
__IM uint32_t RESERVED;
__IM uint32_t VREQHREADY; /*!< (@ 0x00000008) High voltage on RADIO is ready */
} VREQCTRL_VREGRADIO_Type; /*!< Size = 12 (0xc) */
/* =========================================================================================================================== */
/* ================ AAR ================ */
/* =========================================================================================================================== */
@ -5296,6 +5308,21 @@ typedef struct { /*!< (@ 0x4100C000) TIMER0_NS St
#define TIMER_ONESHOTEN_ONESHOTEN_Enable (1UL) /*!< Enable one-shot operation */
/* =========================================================================================================================== */
/* ================ VREQCTRL ================ */
/* =========================================================================================================================== */
/**
* @brief Voltage request control (VREQCTRL)
*/
typedef struct { /*!< (@ 0x41004000) VREQCTRL_NS Structure */
__IM uint32_t RESERVED[320];
__IOM VREQCTRL_VREGRADIO_Type VREGRADIO; /*!< (@ 0x00000500) Unspecified */
} NRF_VREQCTRL_Type; /*!< Size = 1292 (0x50c) */
#ifdef __cplusplus
}

View File

@ -109,8 +109,9 @@ extern NRF_UICR_Type *NRF_UICR_regs_p;
#define NRF_CTI_NS_BASE NULL
#undef NRF_DCNF_NS_BASE
#define NRF_DCNF_NS_BASE NULL
extern NRF_VREQCTRL_Type NRF_VREQCTRL_regs;
#undef NRF_VREQCTRL_NS_BASE
#define NRF_VREQCTRL_NS_BASE NULL
#define NRF_VREQCTRL_NS_BASE (&NRF_VREQCTRL_regs)
extern NRF_CLOCK_Type *NRF_CLOCK_regs[];
#undef NRF_CLOCK_NS_BASE
#define NRF_CLOCK_NS_BASE (NRF_CLOCK_regs[NHW_CLKPWR_NET0])