se7724.h 1.6 KB

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