1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Meta DA JTAG debugger control.
5 * Copyright 2012 Imagination Technologies Ltd.
11 #ifdef CONFIG_METAG_DA
13 #include <linux/init.h>
14 #include <linux/types.h>
16 extern bool _metag_da_present;
19 * metag_da_enabled() - Find whether a DA is currently enabled.
21 * Returns: true if a DA was detected, false if not.
23 static inline bool metag_da_enabled(void)
25 return _metag_da_present;
29 * metag_da_probe() - Try and detect a connected DA.
31 * This is used at start up to detect whether a DA is active.
33 * Returns: 0 on detection, -err otherwise.
35 int __init metag_da_probe(void);
37 #else /* !CONFIG_METAG_DA */
39 #define metag_da_enabled() false
40 #define metag_da_probe() do {} while (0)
44 #endif /* _METAG_DA_H_ */