v850e2.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. * include/asm-v850/v850e2.h -- Machine-dependent defs for V850E2 CPUs
  3. *
  4. * Copyright (C) 2002,03 NEC Electronics Corporation
  5. * Copyright (C) 2002,03 Miles Bader <miles@gnu.org>
  6. *
  7. * This file is subject to the terms and conditions of the GNU General
  8. * Public License. See the file COPYING in the main directory of this
  9. * archive for more details.
  10. *
  11. * Written by Miles Bader <miles@gnu.org>
  12. */
  13. #ifndef __V850_V850E2_H__
  14. #define __V850_V850E2_H__
  15. #include <asm/v850e_intc.h> /* v850e-style interrupt system. */
  16. #define CPU_ARCH "v850e2"
  17. /* Control registers. */
  18. /* Chip area select control */
  19. #define V850E2_CSC_ADDR(n) (0xFFFFF060 + (n) * 2)
  20. #define V850E2_CSC(n) (*(volatile u16 *)V850E2_CSC_ADDR(n))
  21. /* I/O area select control */
  22. #define V850E2_BPC_ADDR 0xFFFFF064
  23. #define V850E2_BPC (*(volatile u16 *)V850E2_BPC_ADDR)
  24. /* Bus size configuration */
  25. #define V850E2_BSC_ADDR 0xFFFFF066
  26. #define V850E2_BSC (*(volatile u16 *)V850E2_BSC_ADDR)
  27. /* Endian configuration */
  28. #define V850E2_BEC_ADDR 0xFFFFF068
  29. #define V850E2_BEC (*(volatile u16 *)V850E2_BEC_ADDR)
  30. /* Cache configuration */
  31. #define V850E2_BHC_ADDR 0xFFFFF06A
  32. #define V850E2_BHC (*(volatile u16 *)V850E2_BHC_ADDR)
  33. /* NPB strobe-wait configuration */
  34. #define V850E2_VSWC_ADDR 0xFFFFF06E
  35. #define V850E2_VSWC (*(volatile u16 *)V850E2_VSWC_ADDR)
  36. /* Bus cycle type */
  37. #define V850E2_BCT_ADDR(n) (0xFFFFF480 + (n) * 2)
  38. #define V850E2_BCT(n) (*(volatile u16 *)V850E2_BCT_ADDR(n))
  39. /* Data wait control */
  40. #define V850E2_DWC_ADDR(n) (0xFFFFF484 + (n) * 2)
  41. #define V850E2_DWC(n) (*(volatile u16 *)V850E2_DWC_ADDR(n))
  42. /* Bus cycle control */
  43. #define V850E2_BCC_ADDR 0xFFFFF488
  44. #define V850E2_BCC (*(volatile u16 *)V850E2_BCC_ADDR)
  45. /* Address wait control */
  46. #define V850E2_ASC_ADDR 0xFFFFF48A
  47. #define V850E2_ASC (*(volatile u16 *)V850E2_ASC_ADDR)
  48. /* Local bus sizing control */
  49. #define V850E2_LBS_ADDR 0xFFFFF48E
  50. #define V850E2_LBS (*(volatile u16 *)V850E2_LBS_ADDR)
  51. /* Line buffer control */
  52. #define V850E2_LBC_ADDR(n) (0xFFFFF490 + (n) * 2)
  53. #define V850E2_LBC(n) (*(volatile u16 *)V850E2_LBC_ADDR(n))
  54. /* SDRAM configuration */
  55. #define V850E2_SCR_ADDR(n) (0xFFFFF4A0 + (n) * 4)
  56. #define V850E2_SCR(n) (*(volatile u16 *)V850E2_SCR_ADDR(n))
  57. /* SDRAM refresh cycle control */
  58. #define V850E2_RFS_ADDR(n) (0xFFFFF4A2 + (n) * 4)
  59. #define V850E2_RFS(n) (*(volatile u16 *)V850E2_RFS_ADDR(n))
  60. #endif /* __V850_V850E2_H__ */