boot: Support for nrf52840 with ecc keys and cryptocell

Added traslation for cryptocell peripheral for use with chip
without TrustZone.

Signed-off-by: Piotr Ciura <piotr.ciura@nordicsemi.no>
diff --git a/ext/nrf/cc310_glue.h b/ext/nrf/cc310_glue.h
index 92f03c8..0979cb7 100644
--- a/ext/nrf/cc310_glue.h
+++ b/ext/nrf/cc310_glue.h
@@ -13,6 +13,13 @@
 #include <devicetree.h>
 #include <string.h>
 
+/*
+ * Name translation for peripherals with only one type of access available.
+ */
+#if !defined(NRF_TRUSTZONE_NONSECURE) && defined(CONFIG_ARM_TRUSTZONE_M)
+#define NRF_CRYPTOCELL   NRF_CRYPTOCELL_S
+#endif
+
 typedef nrf_cc310_bl_hash_context_sha256_t bootutil_sha256_context;
 
 int cc310_ecdsa_verify_secp256r1(uint8_t *hash,