Skip to content

Commit 98c0cc4

Browse files
danieldegrassefabiobaltieri
authored andcommitted
drivers: mspi: supply empty vendor specific macros for generic case
Supply empty vendor specific macros for cases where vendor specific functions are not needed by driver. Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent 3da3959 commit 98c0cc4

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

drivers/mspi/mspi_dw_vendor_specific.h

Lines changed: 38 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
*/
@@ -96,4 +97,41 @@ static inline int vendor_specific_xip_disable(const struct device *dev,
9697
}
9798
#endif /* defined(CONFIG_MSPI_XIP) */
9899

100+
#else
101+
static inline void vendor_specific_init(const struct device *dev)
102+
{
103+
ARG_UNUSED(dev);
104+
}
105+
static inline void vendor_specific_suspend(const struct device *dev)
106+
{
107+
ARG_UNUSED(dev);
108+
}
109+
static inline void vendor_specific_resume(const struct device *dev)
110+
{
111+
ARG_UNUSED(dev);
112+
}
113+
static inline void vendor_specific_irq_clear(const struct device *dev)
114+
{
115+
ARG_UNUSED(dev);
116+
}
117+
static inline int vendor_specific_xip_enable(const struct device *dev,
118+
const struct mspi_dev_id *dev_id,
119+
const struct mspi_xip_cfg *cfg)
120+
{
121+
ARG_UNUSED(dev);
122+
ARG_UNUSED(dev_id);
123+
ARG_UNUSED(cfg);
124+
125+
return 0;
126+
}
127+
static inline int vendor_specific_xip_disable(const struct device *dev,
128+
const struct mspi_dev_id *dev_id,
129+
const struct mspi_xip_cfg *cfg)
130+
{
131+
ARG_UNUSED(dev);
132+
ARG_UNUSED(dev_id);
133+
ARG_UNUSED(cfg);
134+
135+
return 0;
136+
}
99137
#endif /* DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_exmif) */

0 commit comments

Comments
 (0)