soc: arm: nrf9160: add missing NRF_UICR definition

NRF_UICR needs to be defined for nRF9160 SoC in
nrfx_config_nrf9160.h, because it is not defined
in nrfx/hal/mdk/nrf9160.h (as it is a Secure-only
peripheral).

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
Ioannis Glaropoulos 2019-08-06 14:08:53 +02:00 committed by Maureen Helm
commit 3f5aae9d24
3 changed files with 25 additions and 0 deletions

View file

@ -92,6 +92,12 @@
reg = <0xff0000 0x1000>;
status = "okay";
};
uicr: uicr@ff8000 {
compatible = "nordic,nrf-uicr";
reg = <0xff8000 0x1000>;
status = "okay";
};
};
};

View file

@ -0,0 +1,14 @@
title: Nordic UICR (User Information Configuration Registers)
description: >
Binding for the Nordic UICR (User Information Configuration Registers)
inherits:
!include base.yaml
properties:
compatible:
constraint: "nordic,nrf-uicr"
reg:
category: required

View file

@ -193,6 +193,11 @@
((NRF_UARTE_Type *)DT_NORDIC_NRF_UARTE_UART_3_BASE_ADDRESS)
#endif
#ifdef DT_INST_0_NORDIC_NRF_UICR_BASE_ADDRESS
#define NRF_UICR \
((NRF_UICR_Type *)DT_INST_0_NORDIC_NRF_UICR_BASE_ADDRESS)
#endif
#ifdef DT_NORDIC_NRF_WATCHDOG_WDT_0_BASE_ADDRESS
#define NRF_WDT \
((NRF_WDT_Type *)DT_NORDIC_NRF_WATCHDOG_WDT_0_BASE_ADDRESS)