urquell.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. #ifndef __MACH_URQUELL_H
  2. #define __MACH_URQUELL_H
  3. /*
  4. * ------ 0x00000000 ------------------------------------
  5. * CS0 | (SW1,SW47) EEPROM, SRAM, NOR FLASH
  6. * -----+ 0x04000000 ------------------------------------
  7. * CS1 | (SW47) SRAM, SRAM-LAN-PCMCIA, NOR FLASH
  8. * -----+ 0x08000000 ------------------------------------
  9. * CS2 | DDR3
  10. * CS3 |
  11. * -----+ 0x10000000 ------------------------------------
  12. * CS4 | PCIe
  13. * -----+ 0x14000000 ------------------------------------
  14. * CS5 | (SW47) LRAM/URAM, SRAM-LAN-PCMCIA
  15. * -----+ 0x18000000 ------------------------------------
  16. * CS6 | ATA, NAND FLASH
  17. * -----+ 0x1c000000 ------------------------------------
  18. * CS7 | SH7786 register
  19. * -----+------------------------------------------------
  20. */
  21. #define NOR_FLASH_ADDR 0x00000000
  22. #define NOR_FLASH_SIZE 0x04000000
  23. #define CS1_BASE 0x05000000
  24. #define CS5_BASE 0x15000000
  25. #define FPGA_BASE CS1_BASE
  26. #define BOARDREG(ofs) (FPGA_BASE + ofs##_OFS)
  27. #define UBOARDREG(ofs) (0xa0000000 + FPGA_BASE + ofs##_OFS)
  28. #define SRSTR_OFS 0x0000 /* System reset register */
  29. #define BDMR_OFS 0x0010 /* Board operating mode resister */
  30. #define IRL0SR_OFS 0x0020 /* IRL0 Status register */
  31. #define IRL0MSKR_OFS 0x0030 /* IRL0 Mask register */
  32. #define IRL1SR_OFS 0x0040 /* IRL1 Status register */
  33. #define IRL1MSKR_OFS 0x0050 /* IRL1 Mask register */
  34. #define IRL2SR_OFS 0x0060 /* IRL2 Status register */
  35. #define IRL2MSKR_OFS 0x0070 /* IRL2 Mask register */
  36. #define IRL3SR_OFS 0x0080 /* IRL3 Status register */
  37. #define IRL3MSKR_OFS 0x0090 /* IRL3 Mask register */
  38. #define SOFTINTR_OFS 0x0120 /* Softwear Interrupt register */
  39. #define SLEDR_OFS 0x0130 /* LED control resister */
  40. #define MAPSCIFSWR_OFS 0x0140 /* Map/SCIF Switch register */
  41. #define FPVERR_OFS 0x0150 /* FPGA Version register */
  42. #define FPDATER_OFS 0x0160 /* FPGA Date register */
  43. #define FPYEARR_OFS 0x0170 /* FPGA Year register */
  44. #define TCLKCR_OFS 0x0180 /* TCLK Control register */
  45. #define DIPSWMR_OFS 0x1000 /* DIPSW monitor register */
  46. #define FPODR_OFS 0x1010 /* Output port data register */
  47. #define ATACNR_OFS 0x1020 /* ATA-CN Control/status register */
  48. #define FPINDR_OFS 0x1030 /* Input port data register */
  49. #define MDSWMR_OFS 0x1040 /* MODE SW monitor register */
  50. #define DDR3BUPCR_OFS 0x1050 /* DDR3 Backup control register */
  51. #define SSICODECCR_OFS 0x1060 /* SSI-CODEC control register */
  52. #define PCIESLOTSR_OFS 0x1070 /* PCIexpress Slot status register */
  53. #define ETHERPORTSR_OFS 0x1080 /* EtherPhy Port status register */
  54. #define LATCHCR_OFS 0x3000 /* Latch control register */
  55. #define LATCUAR_OFS 0x3010 /* Latch upper address register */
  56. #define LATCLAR_OFS 0x3012 /* Latch lower address register */
  57. #define LATCLUDR_OFS 0x3024 /* Latch D31-16 register */
  58. #define LATCLLDR_OFS 0x3026 /* Latch D15-0 register */
  59. #define CHARLED_OFS 0x2000 /* Character LED */
  60. #endif /* __MACH_URQUELL_H */