coreboot.h 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  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_CONS_INDEX 1
  51. #define CONFIG_SYS_NS16550
  52. #define CONFIG_SYS_NS16550_SERIAL
  53. #define CONFIG_SYS_NS16550_REG_SIZE 1
  54. #define CONFIG_SYS_NS16550_CLK 1843200
  55. #define CONFIG_BAUDRATE 9600
  56. #define CONFIG_SYS_BAUDRATE_TABLE {300, 600, 1200, 2400, 4800, \
  57. 9600, 19200, 38400, 115200}
  58. #define CONFIG_SYS_NS16550_COM1 UART0_BASE
  59. #define CONFIG_SYS_NS16550_COM2 UART1_BASE
  60. #define CONFIG_SYS_NS16550_PORT_MAPPED
  61. /* max. 1 IDE bus */
  62. #define CONFIG_SYS_IDE_MAXBUS 1
  63. /* max. 1 drive per IDE bus */
  64. #define CONFIG_SYS_IDE_MAXDEVICE (CONFIG_SYS_IDE_MAXBUS * 1)
  65. #define CONFIG_SYS_ATA_BASE_ADDR CONFIG_SYS_ISA_IO_BASE_ADDRESS
  66. #define CONFIG_SYS_ATA_IDE0_OFFSET 0x01f0
  67. #define CONFIG_SYS_ATA_IDE1_OFFSET 0x0170
  68. #define CONFIG_SYS_ATA_DATA_OFFSET 0
  69. #define CONFIG_SYS_ATA_REG_OFFSET 0
  70. #define CONFIG_SYS_ATA_ALT_OFFSET 0x200
  71. #define CONFIG_SUPPORT_VFAT
  72. /************************************************************
  73. * ATAPI support (experimental)
  74. ************************************************************/
  75. #define CONFIG_ATAPI
  76. /************************************************************
  77. * DISK Partition support
  78. ************************************************************/
  79. #define CONFIG_DOS_PARTITION
  80. #define CONFIG_MAC_PARTITION
  81. #define CONFIG_ISO_PARTITION /* Experimental */
  82. /*-----------------------------------------------------------------------
  83. * Video Configuration
  84. */
  85. #undef CONFIG_VIDEO
  86. #undef CONFIG_CFB_CONSOLE
  87. /*-----------------------------------------------------------------------
  88. * Command line configuration.
  89. */
  90. #include <config_cmd_default.h>
  91. #define CONFIG_CMD_BDI
  92. #define CONFIG_CMD_BOOTD
  93. #define CONFIG_CMD_CONSOLE
  94. #define CONFIG_CMD_DATE
  95. #define CONFIG_CMD_ECHO
  96. #undef CONFIG_CMD_FLASH
  97. #define CONFIG_CMD_FPGA
  98. #define CONFIG_CMD_IMI
  99. #undef CONFIG_CMD_IMLS
  100. #define CONFIG_CMD_IRQ
  101. #define CONFIG_CMD_ITEST
  102. #define CONFIG_CMD_LOADB
  103. #define CONFIG_CMD_LOADS
  104. #define CONFIG_CMD_MEMORY
  105. #define CONFIG_CMD_MISC
  106. #define CONFIG_CMD_NET
  107. #undef CONFIG_CMD_NFS
  108. #define CONFIG_CMD_PCI
  109. #define CONFIG_CMD_PING
  110. #define CONFIG_CMD_RUN
  111. #define CONFIG_CMD_SAVEENV
  112. #define CONFIG_CMD_SETGETDCR
  113. #define CONFIG_CMD_SOURCE
  114. #define CONFIG_CMD_XIMG
  115. #define CONFIG_CMD_IDE
  116. #define CONFIG_CMD_FAT
  117. #define CONFIG_CMD_EXT2
  118. #define CONFIG_BOOTDELAY 2
  119. #define CONFIG_BOOTARGS "root=/dev/mtdblock0 console=ttyS0,9600"
  120. #if defined(CONFIG_CMD_KGDB)
  121. #define CONFIG_KGDB_BAUDRATE 115200
  122. #define CONFIG_KGDB_SER_INDEX 2
  123. #endif
  124. /*
  125. * Miscellaneous configurable options
  126. */
  127. #define CONFIG_SYS_LONGHELP
  128. #define CONFIG_SYS_PROMPT "boot > "
  129. #define CONFIG_SYS_CBSIZE 256
  130. #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
  131. sizeof(CONFIG_SYS_PROMPT) + \
  132. 16)
  133. #define CONFIG_SYS_MAXARGS 16
  134. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
  135. #define CONFIG_SYS_MEMTEST_START 0x00100000
  136. #define CONFIG_SYS_MEMTEST_END 0x01000000
  137. #define CONFIG_SYS_LOAD_ADDR 0x100000
  138. #define CONFIG_SYS_HZ 1000
  139. #define CONFIG_SYS_X86_ISR_TIMER
  140. /*-----------------------------------------------------------------------
  141. * SDRAM Configuration
  142. */
  143. #define CONFIG_NR_DRAM_BANKS 4
  144. /* CONFIG_SYS_SDRAM_DRCTMCTL Overrides the following*/
  145. #undef CONFIG_SYS_SDRAM_PRECHARGE_DELAY
  146. #undef CONFIG_SYS_SDRAM_RAS_CAS_DELAY
  147. #undef CONFIG_SYS_SDRAM_CAS_LATENCY_2T
  148. #undef CONFIG_SYS_SDRAM_CAS_LATENCY_3T
  149. /*-----------------------------------------------------------------------
  150. * CPU Features
  151. */
  152. #define CONFIG_SYS_GENERIC_TIMER
  153. #define CONFIG_SYS_PCAT_INTERRUPTS
  154. #define CONFIG_SYS_NUM_IRQS 16
  155. /*-----------------------------------------------------------------------
  156. * Memory organization:
  157. * 32kB Stack
  158. * 16kB Cache-As-RAM @ 0x19200000
  159. * 256kB Monitor
  160. * (128kB + Environment Sector Size) malloc pool
  161. */
  162. #define CONFIG_SYS_STACK_SIZE (32 * 1024)
  163. #define CONFIG_SYS_INIT_SP_ADDR (256 * 1024 + 16 * 1024)
  164. #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
  165. #define CONFIG_SYS_MONITOR_LEN (256 * 1024)
  166. #define CONFIG_SYS_MALLOC_LEN (0x20000 + 128 * 1024)
  167. /* Address of temporary Global Data */
  168. #define CONFIG_SYS_INIT_GD_ADDR (256 * 1024)
  169. /* allow to overwrite serial and ethaddr */
  170. #define CONFIG_ENV_OVERWRITE
  171. /*-----------------------------------------------------------------------
  172. * FLASH configuration
  173. */
  174. #define CONFIG_SYS_NO_FLASH
  175. #undef CONFIG_FLASH_CFI_DRIVER
  176. #define CONFIG_SYS_MAX_FLASH_SECT 1
  177. #define CONFIG_SYS_MAX_FLASH_BANKS 1
  178. /*-----------------------------------------------------------------------
  179. * Environment configuration
  180. */
  181. #define CONFIG_ENV_IS_NOWHERE
  182. #define CONFIG_ENV_SIZE 0x01000
  183. /*-----------------------------------------------------------------------
  184. * PCI configuration
  185. */
  186. #define CONFIG_PCI
  187. #endif /* __CONFIG_H */