changeset 3936:9874e7546fc9

nrf5x: remove NFCPINS setting when NFCT not compiled
author glihm <bertinp17@icloud.com>
date Tue, 22 May 2018 13:12:39 +0200
parents 4dfb5e951411
children 211c2857adc5
files arch/nrf5x/arch_init.c
diffstat 1 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/arch/nrf5x/arch_init.c	Mon May 14 01:42:07 2018 +0200
+++ b/arch/nrf5x/arch_init.c	Tue May 22 13:12:39 2018 +0200
@@ -57,12 +57,6 @@
 #if CONFIG_NRF5X_MODEL >= 52000 && \
     CONFIG_NRF5X_MODEL < 53000
 
-# ifndef CONFIG_DRIVER_NRF52_NFCT
-  if (cpu_mem_read_32(NRF_UICR_NFCPINS) & NRF_UICR_NFCPINS_PROTECT_NFC) {
-    flash_page_write(NRF_UICR_NFCPINS, (void*)(const uint32_t[]){ ~NRF_UICR_NFCPINS_PROTECT_NFC }, 4);
-    cpu_mem_write_32(ARMV7M_AIRCR_ADDR, 0x5FA0004);
-  }
-# endif
 
   uintptr_t nvmc = NRF_PERIPHERAL_ADDR(NRF5X_NVMC);
   nrf_reg_set(nvmc, NRF_NVMC_ICACHECNF, NRF_NVMC_ICACHECNF_CACHEEN_ENABLED);