kernel-ark/arch/metag/kernel/da.c
James Hogan e605ff8c1a metag: export _metag_da_present and cpu_2_hwthread_id
Export the symbols _metag_da_present and cpu_2_hwthread_id to modules
(GPL only) to allow the imgdafs file system to be built as a module.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
2013-03-27 14:37:52 +00:00

26 lines
470 B
C

/*
* Meta DA JTAG debugger control.
*
* Copyright 2012 Imagination Technologies Ltd.
*/
#include <linux/export.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <asm/da.h>
#include <asm/metag_mem.h>
bool _metag_da_present;
EXPORT_SYMBOL_GPL(_metag_da_present);
int __init metag_da_probe(void)
{
_metag_da_present = (metag_in32(T0VECINT_BHALT) == 1);
if (_metag_da_present)
pr_info("DA present\n");
else
pr_info("DA not present\n");
return 0;
}