da.c 470 B

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