irq.c 653 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Pistachio IRQ setup
  3. *
  4. * Copyright (C) 2014 Google, Inc.
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms and conditions of the GNU General Public License,
  8. * version 2, as published by the Free Software Foundation.
  9. */
  10. #include <linux/init.h>
  11. #include <linux/irqchip.h>
  12. #include <linux/irqchip/mips-gic.h>
  13. #include <linux/kernel.h>
  14. #include <asm/cpu-features.h>
  15. #include <asm/irq_cpu.h>
  16. void __init arch_init_irq(void)
  17. {
  18. pr_info("EIC is %s\n", cpu_has_veic ? "on" : "off");
  19. pr_info("VINT is %s\n", cpu_has_vint ? "on" : "off");
  20. if (!cpu_has_veic)
  21. mips_cpu_irq_init();
  22. irqchip_init();
  23. }