ppc4xx-isram.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*
  2. * See file CREDITS for list of people who contributed to this
  3. * project.
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License as
  7. * published by the Free Software Foundation; either version 2 of
  8. * the License, or (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  18. * MA 02111-1307 USA
  19. */
  20. #ifndef _PPC4xx_ISRAM_H_
  21. #define _PPC4xx_ISRAM_H_
  22. /*
  23. * Internal SRAM
  24. */
  25. #if defined(CONFIG_440EPX) || defined(CONFIG_440GRX)
  26. #define ISRAM0_DCR_BASE 0x380
  27. #else
  28. #define ISRAM0_DCR_BASE 0x020
  29. #endif
  30. #define ISRAM0_SB0CR (ISRAM0_DCR_BASE+0x00) /* SRAM bank config 0*/
  31. #define ISRAM0_SB1CR (ISRAM0_DCR_BASE+0x01) /* SRAM bank config 1*/
  32. #define ISRAM0_SB2CR (ISRAM0_DCR_BASE+0x02) /* SRAM bank config 2*/
  33. #define ISRAM0_SB3CR (ISRAM0_DCR_BASE+0x03) /* SRAM bank config 3*/
  34. #define ISRAM0_BEAR (ISRAM0_DCR_BASE+0x04) /* SRAM bus error addr reg */
  35. #define ISRAM0_BESR0 (ISRAM0_DCR_BASE+0x05) /* SRAM bus error status reg 0 */
  36. #define ISRAM0_BESR1 (ISRAM0_DCR_BASE+0x06) /* SRAM bus error status reg 1 */
  37. #define ISRAM0_PMEG (ISRAM0_DCR_BASE+0x07) /* SRAM power management */
  38. #define ISRAM0_CID (ISRAM0_DCR_BASE+0x08) /* SRAM bus core id reg */
  39. #define ISRAM0_REVID (ISRAM0_DCR_BASE+0x09) /* SRAM bus revision id reg */
  40. #define ISRAM0_DPC (ISRAM0_DCR_BASE+0x0a) /* SRAM data parity check reg */
  41. #if defined(CONFIG_460EX) || defined(CONFIG_460GT)
  42. #define ISRAM1_DCR_BASE 0x0B0
  43. #define ISRAM1_SB0CR (ISRAM1_DCR_BASE+0x00) /* SRAM1 bank config 0*/
  44. #define ISRAM1_BEAR (ISRAM1_DCR_BASE+0x04) /* SRAM1 bus error addr reg */
  45. #define ISRAM1_BESR0 (ISRAM1_DCR_BASE+0x05) /* SRAM1 bus error status reg 0 */
  46. #define ISRAM1_BESR1 (ISRAM1_DCR_BASE+0x06) /* SRAM1 bus error status reg 1 */
  47. #define ISRAM1_PMEG (ISRAM1_DCR_BASE+0x07) /* SRAM1 power management */
  48. #define ISRAM1_CID (ISRAM1_DCR_BASE+0x08) /* SRAM1 bus core id reg */
  49. #define ISRAM1_REVID (ISRAM1_DCR_BASE+0x09) /* SRAM1 bus revision id reg */
  50. #define ISRAM1_DPC (ISRAM1_DCR_BASE+0x0a) /* SRAM1 data parity check reg */
  51. #endif /* CONFIG_460EX || CONFIG_460GT */
  52. /*
  53. * L2 Cache
  54. */
  55. #if defined (CONFIG_440GX) || \
  56. defined(CONFIG_440SP) || defined(CONFIG_440SPE) || \
  57. defined(CONFIG_460EX) || defined(CONFIG_460GT) || \
  58. defined(CONFIG_460SX)
  59. #define L2_CACHE_BASE 0x030
  60. #define L2_CACHE_CFG (L2_CACHE_BASE+0x00) /* L2 Cache Config */
  61. #define L2_CACHE_CMD (L2_CACHE_BASE+0x01) /* L2 Cache Command */
  62. #define L2_CACHE_ADDR (L2_CACHE_BASE+0x02) /* L2 Cache Address */
  63. #define L2_CACHE_DATA (L2_CACHE_BASE+0x03) /* L2 Cache Data */
  64. #define L2_CACHE_STAT (L2_CACHE_BASE+0x04) /* L2 Cache Status */
  65. #define L2_CACHE_CVER (L2_CACHE_BASE+0x05) /* L2 Cache Revision ID */
  66. #define L2_CACHE_SNP0 (L2_CACHE_BASE+0x06) /* L2 Cache Snoop reg 0 */
  67. #define L2_CACHE_SNP1 (L2_CACHE_BASE+0x07) /* L2 Cache Snoop reg 1 */
  68. #endif /* CONFIG_440GX */
  69. #endif /* _PPC4xx_ISRAM_H_ */