board: nrf53: Fix build error for thingy53_nrf5340 when MPU is disabled

Fix build error for thingy53_nrf5340 board when built CONFIG_ARM_MPU=n.
In this configuration soc.h is not included from board.c, which leaves
NRF_SPU and NRF_RESET undefined.

Remove unused header soc_secure.h from nrf5340dk_nrf5340 board.
The GPIO configuration that used soc_secure.h has been moved out of this
file.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
Joakim Andersson 2022-08-05 13:28:00 +02:00 committed by Carles Cufí
commit a02e6d21bb
2 changed files with 3 additions and 2 deletions

View file

@ -9,7 +9,6 @@
#include <zephyr/logging/log.h>
#include <soc.h>
#include <soc_secure.h>
LOG_MODULE_REGISTER(nrf5340dk_nrf5340_cpuapp, CONFIG_LOG_DEFAULT_LEVEL);

View file

@ -5,8 +5,10 @@
*/
#include <zephyr/device.h>
#include <zephyr/logging/log.h>
#include <soc.h>
LOG_MODULE_REGISTER(thingy53_board_init);
/* Initialization chain of Thingy:53 board requires some delays before on board sensors