se7724.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. #ifndef __ASM_SH_SE7724_H
  2. #define __ASM_SH_SE7724_H
  3. /*
  4. * linux/include/asm-sh/se7724.h
  5. *
  6. * Copyright (C) 2009 Renesas Solutions Corp.
  7. *
  8. * Kuninori Morimoto <morimoto.kuninori@renesas.com>
  9. *
  10. * Hitachi UL SolutionEngine 7724 Support.
  11. *
  12. * Based on se7722.h
  13. * Copyright (C) 2007 Nobuhiro Iwamatsu
  14. *
  15. * This file is subject to the terms and conditions of the GNU General Public
  16. * License. See the file "COPYING" in the main directory of this archive
  17. * for more details.
  18. *
  19. */
  20. #include <linux/sh_intc.h>
  21. #include <asm/addrspace.h>
  22. /* SH Eth */
  23. #define SH_ETH_ADDR (0xA4600000)
  24. #define SH_ETH_MAHR (SH_ETH_ADDR + 0x1C0)
  25. #define SH_ETH_MALR (SH_ETH_ADDR + 0x1C8)
  26. #define PA_LED (0xba203000) /* 8bit LED */
  27. #define IRQ_MODE (0xba200010)
  28. #define IRQ0_SR (0xba200014)
  29. #define IRQ1_SR (0xba200018)
  30. #define IRQ2_SR (0xba20001c)
  31. #define IRQ0_MR (0xba200020)
  32. #define IRQ1_MR (0xba200024)
  33. #define IRQ2_MR (0xba200028)
  34. /* IRQ */
  35. #define IRQ0_IRQ evt2irq(0x600)
  36. #define IRQ1_IRQ evt2irq(0x620)
  37. #define IRQ2_IRQ evt2irq(0x640)
  38. /* Bits in IRQ012 registers */
  39. #define SE7724_FPGA_IRQ_BASE 220
  40. /* IRQ0 */
  41. #define IRQ0_BASE SE7724_FPGA_IRQ_BASE
  42. #define IRQ0_KEY (IRQ0_BASE + 12)
  43. #define IRQ0_RMII (IRQ0_BASE + 13)
  44. #define IRQ0_SMC (IRQ0_BASE + 14)
  45. #define IRQ0_MASK 0x7fff
  46. #define IRQ0_END IRQ0_SMC
  47. /* IRQ1 */
  48. #define IRQ1_BASE (IRQ0_END + 1)
  49. #define IRQ1_TS (IRQ1_BASE + 0)
  50. #define IRQ1_MASK 0x0001
  51. #define IRQ1_END IRQ1_TS
  52. /* IRQ2 */
  53. #define IRQ2_BASE (IRQ1_END + 1)
  54. #define IRQ2_USB0 (IRQ1_BASE + 0)
  55. #define IRQ2_USB1 (IRQ1_BASE + 1)
  56. #define IRQ2_MASK 0x0003
  57. #define IRQ2_END IRQ2_USB1
  58. #define SE7724_FPGA_IRQ_NR (IRQ2_END - IRQ0_BASE)
  59. /* arch/sh/boards/se/7724/irq.c */
  60. void init_se7724_IRQ(void);
  61. #define __IO_PREFIX se7724
  62. #include <asm/io_generic.h>
  63. #endif /* __ASM_SH_SE7724_H */