coreboot.h 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. /*
  2. * Copyright (c) 2011 The Chromium OS Authors.
  3. * (C) Copyright 2008
  4. * Graeme Russ, graeme.russ@gmail.com.
  5. *
  6. * See file CREDITS for list of people who contributed to this
  7. * project.
  8. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License as
  11. * published by the Free Software Foundation; either version 2 of
  12. * the License, or (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  22. * MA 02111-1307 USA
  23. */
  24. #include <asm/ibmpc.h>
  25. /*
  26. * board/config.h - configuration options, board specific
  27. */
  28. #ifndef __CONFIG_H
  29. #define __CONFIG_H
  30. /*
  31. * High Level Configuration Options
  32. * (easy to change)
  33. */
  34. #define CONFIG_SYS_COREBOOT
  35. #undef CONFIG_SHOW_BOOT_PROGRESS
  36. #define CONFIG_LAST_STAGE_INIT
  37. /*-----------------------------------------------------------------------
  38. * Watchdog Configuration
  39. */
  40. #undef CONFIG_WATCHDOG
  41. #undef CONFIG_HW_WATCHDOG
  42. /*-----------------------------------------------------------------------
  43. * Real Time Clock Configuration
  44. */
  45. #define CONFIG_RTC_MC146818
  46. #define CONFIG_SYS_ISA_IO_BASE_ADDRESS 0
  47. /*-----------------------------------------------------------------------
  48. * Serial Configuration
  49. */
  50. #define CONFIG_SERIAL_MULTI
  51. #define CONFIG_CONS_INDEX 1
  52. #define CONFIG_SYS_NS16550
  53. #define CONFIG_SYS_NS16550_SERIAL
  54. #define CONFIG_SYS_NS16550_REG_SIZE 1
  55. #define CONFIG_SYS_NS16550_CLK 1843200
  56. #define CONFIG_BAUDRATE 9600
  57. #define CONFIG_SYS_BAUDRATE_TABLE {300, 600, 1200, 2400, 4800, \
  58. 9600, 19200, 38400, 115200}
  59. #define CONFIG_SYS_NS16550_COM1 UART0_BASE
  60. #define CONFIG_SYS_NS16550_COM2 UART1_BASE
  61. #define CONFIG_SYS_NS16550_PORT_MAPPED
  62. /* max. 1 IDE bus */
  63. #define CONFIG_SYS_IDE_MAXBUS 1
  64. /* max. 1 drive per IDE bus */
  65. #define CONFIG_SYS_IDE_MAXDEVICE (CONFIG_SYS_IDE_MAXBUS * 1)
  66. #define CONFIG_SYS_ATA_BASE_ADDR CONFIG_SYS_ISA_IO_BASE_ADDRESS
  67. #define CONFIG_SYS_ATA_IDE0_OFFSET 0x01f0
  68. #define CONFIG_SYS_ATA_IDE1_OFFSET 0x0170
  69. #define CONFIG_SYS_ATA_DATA_OFFSET 0
  70. #define CONFIG_SYS_ATA_REG_OFFSET 0
  71. #define CONFIG_SYS_ATA_ALT_OFFSET 0x200
  72. #define CONFIG_SUPPORT_VFAT
  73. /************************************************************
  74. * ATAPI support (experimental)
  75. ************************************************************/
  76. #define CONFIG_ATAPI
  77. /************************************************************
  78. * DISK Partition support
  79. ************************************************************/
  80. #define CONFIG_DOS_PARTITION
  81. #define CONFIG_MAC_PARTITION
  82. #define CONFIG_ISO_PARTITION /* Experimental */
  83. /*-----------------------------------------------------------------------
  84. * Video Configuration
  85. */
  86. #undef CONFIG_VIDEO
  87. #undef CONFIG_CFB_CONSOLE
  88. /*-----------------------------------------------------------------------
  89. * Command line configuration.
  90. */
  91. #include <config_cmd_default.h>
  92. #define CONFIG_CMD_BDI
  93. #define CONFIG_CMD_BOOTD
  94. #define CONFIG_CMD_CONSOLE
  95. #define CONFIG_CMD_DATE
  96. #define CONFIG_CMD_ECHO
  97. #undef CONFIG_CMD_FLASH
  98. #define CONFIG_CMD_FPGA
  99. #define CONFIG_CMD_IMI
  100. #undef CONFIG_CMD_IMLS
  101. #define CONFIG_CMD_IRQ
  102. #define CONFIG_CMD_ITEST
  103. #define CONFIG_CMD_LOADB
  104. #define CONFIG_CMD_LOADS
  105. #define CONFIG_CMD_MEMORY
  106. #define CONFIG_CMD_MISC
  107. #define CONFIG_CMD_NET
  108. #undef CONFIG_CMD_NFS
  109. #define CONFIG_CMD_PCI
  110. #define CONFIG_CMD_PING
  111. #define CONFIG_CMD_RUN
  112. #define CONFIG_CMD_SAVEENV
  113. #define CONFIG_CMD_SETGETDCR
  114. #define CONFIG_CMD_SOURCE
  115. #define CONFIG_CMD_XIMG
  116. #define CONFIG_CMD_IDE
  117. #define CONFIG_CMD_FAT
  118. #define CONFIG_CMD_EXT2
  119. #define CONFIG_BOOTDELAY 2
  120. #define CONFIG_BOOTARGS "root=/dev/mtdblock0 console=ttyS0,9600"
  121. #if defined(CONFIG_CMD_KGDB)
  122. #define CONFIG_KGDB_BAUDRATE 115200
  123. #define CONFIG_KGDB_SER_INDEX 2
  124. #endif
  125. /*
  126. * Miscellaneous configurable options
  127. */
  128. #define CONFIG_SYS_LONGHELP
  129. #define CONFIG_SYS_PROMPT "boot > "
  130. #define CONFIG_SYS_CBSIZE 256
  131. #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
  132. sizeof(CONFIG_SYS_PROMPT) + \
  133. 16)
  134. #define CONFIG_SYS_MAXARGS 16
  135. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
  136. #define CONFIG_SYS_MEMTEST_START 0x00100000
  137. #define CONFIG_SYS_MEMTEST_END 0x01000000
  138. #define CONFIG_SYS_LOAD_ADDR 0x100000
  139. #define CONFIG_SYS_HZ 1000
  140. #define CONFIG_SYS_X86_ISR_TIMER
  141. /*-----------------------------------------------------------------------
  142. * SDRAM Configuration
  143. */
  144. #define CONFIG_NR_DRAM_BANKS 4
  145. /* CONFIG_SYS_SDRAM_DRCTMCTL Overrides the following*/
  146. #undef CONFIG_SYS_SDRAM_PRECHARGE_DELAY
  147. #undef CONFIG_SYS_SDRAM_RAS_CAS_DELAY
  148. #undef CONFIG_SYS_SDRAM_CAS_LATENCY_2T
  149. #undef CONFIG_SYS_SDRAM_CAS_LATENCY_3T
  150. /*-----------------------------------------------------------------------
  151. * CPU Features
  152. */
  153. #define CONFIG_SYS_GENERIC_TIMER
  154. #define CONFIG_SYS_PCAT_INTERRUPTS
  155. #define CONFIG_SYS_NUM_IRQS 16
  156. /*-----------------------------------------------------------------------
  157. * Memory organization:
  158. * 32kB Stack
  159. * 16kB Cache-As-RAM @ 0x19200000
  160. * 256kB Monitor
  161. * (128kB + Environment Sector Size) malloc pool
  162. */
  163. #define CONFIG_SYS_STACK_SIZE (32 * 1024)
  164. #define CONFIG_SYS_INIT_SP_ADDR (256 * 1024 + 16 * 1024)
  165. #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
  166. #define CONFIG_SYS_MONITOR_LEN (256 * 1024)
  167. #define CONFIG_SYS_MALLOC_LEN (0x20000 + 128 * 1024)
  168. /* Address of temporary Global Data */
  169. #define CONFIG_SYS_INIT_GD_ADDR (256 * 1024)
  170. /* allow to overwrite serial and ethaddr */
  171. #define CONFIG_ENV_OVERWRITE
  172. /*-----------------------------------------------------------------------
  173. * FLASH configuration
  174. */
  175. #define CONFIG_SYS_NO_FLASH
  176. #undef CONFIG_FLASH_CFI_DRIVER
  177. #define CONFIG_SYS_MAX_FLASH_SECT 1
  178. #define CONFIG_SYS_MAX_FLASH_BANKS 1
  179. /*-----------------------------------------------------------------------
  180. * Environment configuration
  181. */
  182. #define CONFIG_ENV_IS_NOWHERE
  183. #define CONFIG_ENV_SIZE 0x01000
  184. /*-----------------------------------------------------------------------
  185. * PCI configuration
  186. */
  187. #define CONFIG_PCI
  188. /*-----------------------------------------------------------------------
  189. * Network device support
  190. */
  191. #define CONFIG_NET_MULTI
  192. #endif /* __CONFIG_H */