Merge branch 'for-john' of git://x-git.kernel.org/pub/scm/linux/kernel/git/jberg...
[firefly-linux-kernel-4.4.55.git] / arch / metag / kernel / da.c
1 /*
2  * Meta DA JTAG debugger control.
3  *
4  * Copyright 2012 Imagination Technologies Ltd.
5  */
6
7
8 #include <linux/io.h>
9 #include <linux/kernel.h>
10 #include <asm/da.h>
11 #include <asm/metag_mem.h>
12
13 bool _metag_da_present;
14
15 int __init metag_da_probe(void)
16 {
17         _metag_da_present = (metag_in32(T0VECINT_BHALT) == 1);
18         if (_metag_da_present)
19                 pr_info("DA present\n");
20         else
21                 pr_info("DA not present\n");
22         return 0;
23 }