x86/efi: Enforce CONFIG_RELOCATABLE for EFI boot stub
[linux/fpc-iii.git] / arch / metag / kernel / da.c
bloba35dbed6fffab9542383caa2219255314d195846
1 /*
2 * Meta DA JTAG debugger control.
4 * Copyright 2012 Imagination Technologies Ltd.
5 */
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>
14 bool _metag_da_present;
15 EXPORT_SYMBOL_GPL(_metag_da_present);
17 int __init metag_da_probe(void)
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;