soc: common: nordic_nrf: move pinctrl_soc.h to a common dir

Because both, RISC-V and ARM cores share the same pinctrl driver. The
top level common folder will disappear with the introduction of HWMv2,
where multi-arch SoCs will be well supported.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
Gerard Marull-Paretas 2024-02-01 10:40:53 +01:00 committed by Carles Cufí
parent 018cf08d8d
commit d7dc942382
5 changed files with 11 additions and 1 deletions

View file

@ -8,6 +8,6 @@
#define BOARDS_POSIX_NRF_BSIM_SOC_PINCTRL_SOC_H
/* We reuse the real SOC's header: */
#include "../soc/arm/nordic_nrf/common/pinctrl_soc.h"
#include "../soc/common/nordic_nrf/pinctrl_soc.h"
#endif /* BOARDS_POSIX_NRF_BSIM_SOC_PINCTRL_SOC_H */

View file

@ -9,6 +9,8 @@ if(_SOC_IS_IN_TREE)
endif()
unset(_SOC_IS_IN_TREE)
add_subdirectory(common)
if(EXISTS ${SOC_DIR}/${ARCH}/CMakeLists.txt)
add_subdirectory(${SOC_DIR}/${ARCH} soc/${ARCH})
else()

View file

@ -0,0 +1,4 @@
# Copyright (c) 2024 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
add_subdirectory_ifdef(CONFIG_SOC_FAMILY_NRF nordic_nrf)

View file

@ -0,0 +1,4 @@
# Copyright (c) 2024 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
zephyr_include_directories(.)