Commit | Line | Data |
---|---|---|
ae85ac71 JH |
1 | /* |
2 | * Meta DA JTAG debugger control. | |
3 | * | |
4 | * Copyright 2012 Imagination Technologies Ltd. | |
5 | */ | |
6 | ||
7 | ||
e605ff8c | 8 | #include <linux/export.h> |
ae85ac71 JH |
9 | #include <linux/io.h> |
10 | #include <linux/kernel.h> | |
11 | #include <asm/da.h> | |
12 | #include <asm/metag_mem.h> | |
13 | ||
14 | bool _metag_da_present; | |
e605ff8c | 15 | EXPORT_SYMBOL_GPL(_metag_da_present); |
ae85ac71 JH |
16 | |
17 | int __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 | } |