Skip to content

Commit cb31e67

Browse files
danieldegrassefabiobaltieri
authored andcommitted
drivers: mspi: mspi_dw: make pinctrl include conditional
The remainder of this driver functions when pin control is disabled, so make the include conditional as well to fully support this case. Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent 98c0cc4 commit cb31e67

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/mspi/mspi_dw.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
22
* Copyright (c) 2024 Nordic Semiconductor ASA
3+
* Copyright (c) 2025 Tenstorrent AI ULC
34
*
45
* SPDX-License-Identifier: Apache-2.0
56
*/
@@ -8,7 +9,9 @@
89

910
#include <zephyr/drivers/mspi.h>
1011
#include <zephyr/drivers/gpio.h>
12+
#if defined(CONFIG_PINCTRL)
1113
#include <zephyr/drivers/pinctrl.h>
14+
#endif
1215
#include <zephyr/logging/log.h>
1316
#include <zephyr/pm/device.h>
1417
#include <zephyr/pm/device_runtime.h>

0 commit comments

Comments
 (0)