Skip to content
Permalink
Browse files

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>
  • Loading branch information...
ioannisg authored and MaureenHelm committed Aug 6, 2019
1 parent e242c25 commit 3f5aae9d2499d8f6d5641d2690e9f222585ff405
Showing with 25 additions and 0 deletions.
  1. +6 −0 dts/arm/nordic/nrf9160.dtsi
  2. +14 −0 dts/bindings/arm/nordic,nrf-uicr.yaml
  3. +5 −0 ext/hal/nordic/nrfx_config_nrf9160.h
@@ -92,6 +92,12 @@
reg = <0xff0000 0x1000>;
status = "okay";
};

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

@@ -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
@@ -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)

0 comments on commit 3f5aae9

Please sign in to comment.
You can’t perform that action at this time.