ixdp425.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:3k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* ixdp425.h - IXP425 IXDP425 board header file */ 
  2. /* Copyright 2002 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01b,23oct02,jb  Adding Chip Select 1 define for ADSL
  7. 01a,05jun02,jb  initial version...
  8. */
  9. #ifndef INCixdp425h
  10. #define INCixdp425h
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. /*
  15.  * SDRAM defaults. CAS latency for the "MT 48LC16M16A2 -75" parts used on IXDP425
  16.  * is 3. For "MT 48LC16M16A2 -7E" parts use a CAS latency of 2.
  17.  */
  18. #define SDRAM_CONFIG_32MEG (IXP425_SDRAM_CAS_3CLKS | IXP425_SDRAM_32Meg_2Chip)
  19. #define SDRAM_CONFIG_64MEG (IXP425_SDRAM_CAS_3CLKS | IXP425_SDRAM_64Meg_2Chip)
  20. #define SDRAM_CONFIG_128MEG (IXP425_SDRAM_CAS_3CLKS | IXP425_SDRAM_128Meg_4Chip)
  21. #define SDRAM_CONFIG_256MEG (IXP425_SDRAM_CAS_3CLKS | IXP425_SDRAM_256Meg_4Chip)
  22. #define    SZ_0       0x00000000
  23. #define    SZ_1       0x00000001
  24. #define    SZ_2       0x00000002
  25. #define    SZ_4       0x00000004
  26. #define    SZ_8       0x00000008
  27. #define    SZ_16      0x00000010
  28. #define    SZ_32      0x00000020
  29. #define    SZ_64      0x00000040
  30. #define    SZ_128     0x00000080
  31. #define    SZ_256     0x00000100
  32. #define    SZ_512     0x00000200
  33. #define    SZ_1K      0x00000400
  34. #define    SZ_2K      0x00000800
  35. #define    SZ_4K      0x00001000
  36. #define    SZ_8K      0x00002000
  37. #define    SZ_16K     0x00004000
  38. #define    SZ_32K     0x00008000
  39. #define    SZ_64K     0x00010000
  40. #define    SZ_128K    0x00020000
  41. #define    SZ_256K    0x00040000
  42. #define    SZ_512K    0x00080000
  43. #define    SZ_1M      0x00100000
  44. #define    SZ_2M      0x00200000
  45. #define    SZ_4M      0x00400000
  46. #define    SZ_8M      0x00800000
  47. #define    SZ_16M     0x01000000
  48. #define    SZ_32M     0x02000000
  49. #define    SZ_64M     0x04000000
  50. #define    SZ_128M    0x08000000
  51. #define    SZ_256M    0x10000000
  52. #define    SZ_512M    0x20000000
  53. #define    SZ_1G      0x40000000
  54. #define    SZ_2G      0x80000000
  55. /* 
  56.  * Each row in SDRAM needs to be refreshed every 64ms, there are 8K rows,
  57.  * therefore we should refresh every 7.8us according to the data sheet.
  58.  * The refresh rate is controlled by the internal bus which operates at 133MHz.
  59.  * => 7.8us / 7.52ns = 1037 cycles
  60.  */
  61. #define IXDP425_SDRAM_CONFIG_REFRESH_CNT (0x81A)
  62. #define IXDP425_SDRAM_SIZE  (SZ_128M)
  63. #define MATACUMBE_7SEG_BASE (0x52000000 )
  64. #define IXDP425_FLASH_CS_DEFAULT  (0xbcd23c40)
  65. #define IXDP425_FLASH_CS_SETTING_WR_EN  (0xbfff3c42)
  66. #define IXDP425_CS1_DEFAULT           (0xbfff3c03)
  67. /*
  68.  * GPIO lines used for I2C emulation.
  69.  */
  70. #define IXP425_I2C_SDA 7
  71. #define IXP425_I2C_SCL 6
  72. #define CPF425O 1
  73. #define CPF425C 2
  74. #ifdef __cplusplus
  75. }
  76. #endif /* ixdp425h */
  77. #endif