cpc710.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /*
  2. * (C) Copyright 2002
  3. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  4. *
  5. * See file CREDITS for list of people who contributed to this
  6. * project.
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License as
  10. * published by the Free Software Foundation; either version 2 of
  11. * the License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  21. * MA 02111-1307 USA
  22. */
  23. #ifndef _CPC710_H_
  24. #define _CPC710_H_
  25. /* Revision */
  26. #define CPC710_TYPE_100 0x80
  27. #define CPC710_TYPE_100P 0x90
  28. /* System control area */
  29. #define HW_PHYS_SCA 0xff000000
  30. #define HW_SCA_CPC0 0x000000
  31. #define HW_SCA_SDRAM0 0x000000
  32. #define HW_SCA_DMA0 0x1C0000
  33. #define HW_PHYS_CPC0 (HW_PHYS_SCA + HW_SCA_CPC0)
  34. #define HW_PHYS_SDRAM0 (HW_PHYS_SCA + HW_SCA_SDRAM0)
  35. #define HW_CPC0_PCICNFR 0x000c
  36. #define HW_CPC0_RSTR 0x0010
  37. #define HW_CPC0_SPOR 0x00e8
  38. #define HW_CPC0_UCTL 0x1000
  39. #define HW_CPC0_SIOC0 0x1020
  40. #define HW_CPC0_ABCNTL 0x1030
  41. #define HW_CPC0_SESR 0x1060
  42. #define HW_CPC0_SEAR 0x1070
  43. #define HW_CPC0_PGCHP 0x1100
  44. #define HW_CPC0_RGBAN0 0x1110
  45. #define HW_CPC0_RGBAN1 0x1120
  46. #define HW_CPC0_GPDIR 0x1130
  47. #define HW_CPC0_GPIN 0x1140
  48. #define HW_CPC0_GPOUT 0x1150
  49. #define HW_CPC0_ATAS 0x1160
  50. #define HW_CPC0_PCIBAR 0x200018
  51. #define HW_CPC0_PCIENB 0x201000
  52. #define HW_SDRAM0_MCCR 0x1200
  53. #define HW_SDRAM0_MESR 0x1220
  54. #define HW_SDRAM0_MEAR 0x1230
  55. #define HW_SDRAM0_MCER0 0x1300
  56. #define HW_SDRAM0_MCER1 0x1310
  57. #define HW_SDRAM0_MCER2 0x1320
  58. #define HW_SDRAM0_MCER3 0x1330
  59. #define HW_SDRAM0_MCER4 0x1340
  60. #define HW_SDRAM0_MCER5 0x1350
  61. #define HW_SDRAM0_MCER6 0x1360
  62. #define HW_SDRAM0_MCER7 0x1370
  63. #define HW_BRIDGE_PCIDG 0xf6120
  64. #define HW_BRIDGE_INTACK 0xf7700
  65. #define HW_BRIDGE_PIBAR 0xf7800
  66. #define HW_BRIDGE_PMBAR 0xf7810
  67. #define HW_BRIDGE_CRR 0xf7ef0
  68. #define HW_BRIDGE_PR 0xf7f20
  69. #define HW_BRIDGE_ACR 0xf7f30
  70. #define HW_BRIDGE_MSIZE 0xf7f40
  71. #define HW_BRIDGE_IOSIZE 0xf7f60
  72. #define HW_BRIDGE_SMBAR 0xf7f80
  73. #define HW_BRIDGE_SIBAR 0xf7fc0
  74. #define HW_BRIDGE_CFGADDR 0xf8000
  75. #define HW_BRIDGE_CFGDATA 0xf8010
  76. #define HW_BRIDGE_PSSIZE 0xf8100
  77. #define HW_BRIDGE_BARPS 0xf8120
  78. #define HW_BRIDGE_PSBAR 0xf8140
  79. /* Configuration space registers */
  80. #define CPC710_BUS_NUMBER 0x40
  81. #define CPC710_SUB_BUS_NUMBER 0x41
  82. #endif