1/*
2 * Meta DA JTAG debugger control.
3 *
4 * Copyright 2012 Imagination Technologies Ltd.
5 */
6
7
8#include <linux/export.h>
9#include <linux/io.h>
10#include <linux/kernel.h>
11#include <asm/da.h>
12#include <asm/metag_mem.h>
13
14bool _metag_da_present;
15EXPORT_SYMBOL_GPL(_metag_da_present);
16
17int __init metag_da_probe(void)
18{
19	_metag_da_present = (metag_in32(T0VECINT_BHALT) == 1);
20	if (_metag_da_present)
21		pr_info("DA present\n");
22	else
23		pr_info("DA not present\n");
24	return 0;
25}
26