sc520_cdp.h 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. /*
  2. * (C) Copyright 2002
  3. * Daniel Engström, Omicron Ceti AB, daniel@omicron.se.
  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. /*
  24. * board/config.h - configuration options, board specific
  25. */
  26. #ifndef __CONFIG_H
  27. #define __CONFIG_H
  28. /*
  29. * High Level Configuration Options
  30. * (easy to change)
  31. */
  32. #define CONFIG_X86 1 /* This is a X86 CPU */
  33. #define CFG_SDRAM_PRECHARGE_DELAY 6 /* 6T */
  34. #define CFG_SDRAM_REFRESH_RATE 78 /* 7.8uS (choices are 7.8, 15.6, 31.2 or 62.5uS) */
  35. #define CFG_SDRAM_RAS_CAS_DELAY 3 /* 3T */
  36. /* define at most one of these */
  37. #undef CFG_SDRAM_CAS_LATENCY_2T
  38. #define CFG_SDRAM_CAS_LATENCY_3T
  39. #define CFG_SC520_HIGH_SPEED 0 /* 100 or 133MHz */
  40. #define CFG_RESET_GENERIC 1 /* use tripple-fault to reset cpu */
  41. #undef CFG_RESET_SC520 /* use SC520 MMCR's to reset cpu */
  42. #undef CFG_TIMER_SC520 /* use SC520 swtimers */
  43. #define CFG_TIMER_GENERIC 1 /* use the i8254 PIT timers */
  44. #undef CFG_TIMER_TSC /* use the Pentium TSC timers */
  45. #define CFG_USE_SIO_UART 0 /* prefer the uarts on the SIO to those
  46. * in the SC520 on the CDP */
  47. #define CFG_STACK_SIZE 0x8000 /* Size of bootloader stack */
  48. #define CONFIG_SHOW_BOOT_PROGRESS 1
  49. #define CONFIG_LAST_STAGE_INIT 1
  50. /*
  51. * Size of malloc() pool
  52. */
  53. #define CONFIG_MALLOC_SIZE (CFG_ENV_SIZE + 128*1024)
  54. /* allow to overwrite serial and ethaddr */
  55. #define CONFIG_ENV_OVERWRITE
  56. #define CFG_ENV_IS_NOWHERE 1
  57. #undef CFG_ENV_IS_IN_FLASH
  58. #undef CFG_ENV_IS_IN_NVRAM
  59. #undef CFG_ENV_IS_INEEPROM
  60. #define CONFIG_BAUDRATE 9600
  61. #define CONFIG_COMMANDS (CONFIG_CMD_DFL | CFG_CMD_PCI | CFG_CMD_JFFS2 | CFG_CMD_IDE | CFG_CMD_NET)
  62. /* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
  63. #include <cmd_confdefs.h>
  64. #define CONFIG_BOOTDELAY 15
  65. #define CONFIG_BOOTARGS "root=/dev/mtdblock0 console=ttyS0,9600"
  66. /* #define CONFIG_BOOTCOMMAND "bootm 38000000" */
  67. #if (CONFIG_COMMANDS & CFG_CMD_KGDB)
  68. #define CONFIG_KGDB_BAUDRATE 115200 /* speed to run kgdb serial port */
  69. #define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */
  70. #endif
  71. #define CFG_JFFS2_FIRST_BANK 0 /* use for JFFS2 */
  72. #define CFG_JFFS2_NUM_BANKS 1 /* */
  73. /*
  74. * Miscellaneous configurable options
  75. */
  76. #define CFG_LONGHELP /* undef to save memory */
  77. #define CFG_PROMPT "boot > " /* Monitor Command Prompt */
  78. #define CFG_CBSIZE 256 /* Console I/O Buffer Size */
  79. #define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
  80. #define CFG_MAXARGS 16 /* max number of command args */
  81. #define CFG_BARGSIZE CFG_CBSIZE /* Boot Argument Buffer Size */
  82. #define CFG_MEMTEST_START 0x00100000 /* memtest works on */
  83. #define CFG_MEMTEST_END 0x01000000 /* 1 ... 16 MB in DRAM */
  84. #undef CFG_CLKS_IN_HZ /* everything, incl board info, in Hz */
  85. #define CFG_LOAD_ADDR 0x38000000 /* default load address */
  86. #define CFG_HZ 1024 /* incrementer freq: 1kHz */
  87. /* valid baudrates */
  88. #define CFG_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
  89. /*-----------------------------------------------------------------------
  90. * Physical Memory Map
  91. */
  92. #define CONFIG_NR_DRAM_BANKS 4 /* we have 4 banks of DRAM */
  93. #define PHYS_FLASH_1 0x38000000 /* Flash Bank #1 */
  94. #define PHYS_FLASH_SIZE 0x00800000 /* 8 MB */
  95. #define CFG_FLASH_BASE PHYS_FLASH_1
  96. /*-----------------------------------------------------------------------
  97. * FLASH and environment organization
  98. */
  99. #define CFG_MAX_FLASH_BANKS 1 /* max number of memory banks */
  100. #define CFG_MAX_FLASH_SECT 64 /* max number of sectors on one chip */
  101. /* timeout values are in ticks */
  102. #define CFG_FLASH_ERASE_TOUT (2*CFG_HZ) /* Timeout for Flash Erase */
  103. #define CFG_FLASH_WRITE_TOUT (2*CFG_HZ) /* Timeout for Flash Write */
  104. #define CFG_ENV_IS_IN_FLASH 1
  105. #define CFG_ENV_ADDR (PHYS_FLASH_1 + 0x7a0000) /* Addr of Environment Sector */
  106. #define CFG_ENV_SIZE 0x4000 /* Total Size of Environment Sector */
  107. /*-----------------------------------------------------------------------
  108. * Device drivers
  109. */
  110. #define CONFIG_NET_MULTI /* Multi ethernet cards support */
  111. #define CONFIG_PCNET
  112. #define CONFIG_PCNET_79C973
  113. #define CONFIG_PCNET_79C975
  114. #define PCNET_HAS_PROM 1
  115. /************************************************************
  116. * IDE/ATA stuff
  117. ************************************************************/
  118. #define CFG_IDE_MAXBUS 2 /* max. 2 IDE busses */
  119. #define CFG_IDE_MAXDEVICE (CFG_IDE_MAXBUS*2) /* max. 2 drives per IDE bus */
  120. #define CFG_ATA_IDE0_OFFSET 0x01F0 /* ide0 offste */
  121. #define CFG_ATA_IDE1_OFFSET 0x0170 /* ide1 offset */
  122. #define CFG_ATA_DATA_OFFSET 0 /* data reg offset */
  123. #define CFG_ATA_REG_OFFSET 0 /* reg offset */
  124. #define CFG_ATA_ALT_OFFSET 0x200 /* alternate register offset */
  125. #undef CONFIG_IDE_8xx_DIRECT /* no pcmcia interface required */
  126. #undef CONFIG_IDE_LED /* no led for ide supported */
  127. #undef CONFIG_IDE_RESET /* reset for ide unsupported... */
  128. #undef CONFIG_IDE_RESET_ROUTINE /* no special reset function */
  129. /************************************************************
  130. * ATAPI support (experimental)
  131. ************************************************************/
  132. #define CONFIG_ATAPI /* enable ATAPI Support */
  133. /************************************************************
  134. * DISK Partition support
  135. ************************************************************/
  136. #define CONFIG_DOS_PARTITION
  137. #define CONFIG_MAC_PARTITION
  138. #define CONFIG_ISO_PARTITION /* Experimental */
  139. /************************************************************
  140. * Keyboard support
  141. ************************************************************/
  142. #define CONFIG_ISA_KEYBOARD
  143. #if 0
  144. /************************************************************
  145. * Video support
  146. ************************************************************/
  147. #define CONFIG_VIDEO /*To enable video controller support */
  148. #define CONFIG_VIDEO_CT69000
  149. #define CONFIG_CFB_CONSOLE
  150. #define CONFIG_VIDEO_LOGO
  151. #define CONFIG_CONSOLE_EXTRA_INFO
  152. #define CONFIG_VGA_AS_SINGLE_DEVICE
  153. #define CONFIG_VIDEO_SW_CURSOR
  154. #define CONFIG_VIDEO_ONBOARD /* Video controller is on-board */
  155. #endif
  156. /************************************************************
  157. * RTC
  158. ***********************************************************/
  159. #define CONFIG_RTC_MC146818
  160. #undef CONFIG_WATCHDOG /* watchdog disabled */
  161. /*
  162. * PCI stuff
  163. */
  164. #define CONFIG_PCI /* include pci support */
  165. #define CONFIG_PCI_PNP /* pci plug-and-play */
  166. #define CONFIG_PCI_SCAN_SHOW
  167. #endif /* __CONFIG_H */