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:
parent
018cf08d8d
commit
d7dc942382
|
@ -8,6 +8,6 @@
|
||||||
#define BOARDS_POSIX_NRF_BSIM_SOC_PINCTRL_SOC_H
|
#define BOARDS_POSIX_NRF_BSIM_SOC_PINCTRL_SOC_H
|
||||||
|
|
||||||
/* We reuse the real SOC's header: */
|
/* 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 */
|
#endif /* BOARDS_POSIX_NRF_BSIM_SOC_PINCTRL_SOC_H */
|
||||||
|
|
|
@ -9,6 +9,8 @@ if(_SOC_IS_IN_TREE)
|
||||||
endif()
|
endif()
|
||||||
unset(_SOC_IS_IN_TREE)
|
unset(_SOC_IS_IN_TREE)
|
||||||
|
|
||||||
|
add_subdirectory(common)
|
||||||
|
|
||||||
if(EXISTS ${SOC_DIR}/${ARCH}/CMakeLists.txt)
|
if(EXISTS ${SOC_DIR}/${ARCH}/CMakeLists.txt)
|
||||||
add_subdirectory(${SOC_DIR}/${ARCH} soc/${ARCH})
|
add_subdirectory(${SOC_DIR}/${ARCH} soc/${ARCH})
|
||||||
else()
|
else()
|
||||||
|
|
4
soc/common/CMakeLists.txt
Normal file
4
soc/common/CMakeLists.txt
Normal 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)
|
4
soc/common/nordic_nrf/CMakeLists.txt
Normal file
4
soc/common/nordic_nrf/CMakeLists.txt
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# Copyright (c) 2024 Nordic Semiconductor ASA
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
zephyr_include_directories(.)
|
Loading…
Reference in a new issue