irq-r7785rp.c 897 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Renesas Solutions Highlander R7780RP-1 Support.
  3. *
  4. * Copyright (C) 2002 Atom Create Engineering Co., Ltd.
  5. * Copyright (C) 2006 Paul Mundt
  6. *
  7. * This file is subject to the terms and conditions of the GNU General Public
  8. * License. See the file "COPYING" in the main directory of this archive
  9. * for more details.
  10. */
  11. #include <linux/init.h>
  12. #include <asm/io.h>
  13. #include <asm/r7780rp.h>
  14. void __init highlander_init_irq(void)
  15. {
  16. ctrl_outw(0x0000, PA_IRLSSR1); /* FPGA IRLSSR1(CF_CD clear) */
  17. /* Setup the FPGA IRL */
  18. ctrl_outw(0x0000, PA_IRLPRA); /* FPGA IRLA */
  19. ctrl_outw(0xe598, PA_IRLPRB); /* FPGA IRLB */
  20. ctrl_outw(0x7060, PA_IRLPRC); /* FPGA IRLC */
  21. ctrl_outw(0x0000, PA_IRLPRD); /* FPGA IRLD */
  22. ctrl_outw(0x4321, PA_IRLPRE); /* FPGA IRLE */
  23. ctrl_outw(0x0000, PA_IRLPRF); /* FPGA IRLF */
  24. make_r7780rp_irq(1); /* CF card */
  25. make_r7780rp_irq(10); /* On-board ethernet */
  26. }