se7724.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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 <asm/addrspace.h>
  21. /* SH Eth */
  22. #define SH_ETH_ADDR (0xA4600000)
  23. #define SH_ETH_MAHR (SH_ETH_ADDR + 0x1C0)
  24. #define SH_ETH_MALR (SH_ETH_ADDR + 0x1C8)
  25. #define PA_LED (0xba203000) /* 8bit LED */
  26. #define IRQ_MODE (0xba200010)
  27. #define IRQ0_SR (0xba200014)
  28. #define IRQ1_SR (0xba200018)
  29. #define IRQ2_SR (0xba20001c)
  30. #define IRQ0_MR (0xba200020)
  31. #define IRQ1_MR (0xba200024)
  32. #define IRQ2_MR (0xba200028)
  33. /* IRQ */
  34. #define IRQ0_IRQ 32
  35. #define IRQ1_IRQ 33
  36. #define IRQ2_IRQ 34
  37. /* Bits in IRQ012 registers */
  38. #define SE7724_FPGA_IRQ_BASE 220
  39. /* IRQ0 */
  40. #define IRQ0_BASE SE7724_FPGA_IRQ_BASE
  41. #define IRQ0_KEY (IRQ0_BASE + 12)
  42. #define IRQ0_RMII (IRQ0_BASE + 13)
  43. #define IRQ0_SMC (IRQ0_BASE + 14)
  44. #define IRQ0_MASK 0x7fff
  45. #define IRQ0_END IRQ0_SMC
  46. /* IRQ1 */
  47. #define IRQ1_BASE (IRQ0_END + 1)
  48. #define IRQ1_TS (IRQ1_BASE + 0)
  49. #define IRQ1_MASK 0x0001
  50. #define IRQ1_END IRQ1_TS
  51. /* IRQ2 */
  52. #define IRQ2_BASE (IRQ1_END + 1)
  53. #define IRQ2_USB0 (IRQ1_BASE + 0)
  54. #define IRQ2_USB1 (IRQ1_BASE + 1)
  55. #define IRQ2_MASK 0x0003
  56. #define IRQ2_END IRQ2_USB1
  57. #define SE7724_FPGA_IRQ_NR (IRQ2_END - IRQ0_BASE)
  58. /* arch/sh/boards/se/7724/irq.c */
  59. void init_se7724_IRQ(void);
  60. #define __IO_PREFIX se7724
  61. #include <asm/io_generic.h>
  62. #endif /* __ASM_SH_SE7724_H */