coreboot.h 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  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. #define CONFIG_X86_NO_RESET_VECTOR
  38. #define CONFIG_SYS_VSNPRINTF
  39. /*-----------------------------------------------------------------------
  40. * Watchdog Configuration
  41. */
  42. #undef CONFIG_WATCHDOG
  43. #undef CONFIG_HW_WATCHDOG
  44. /* SATA AHCI storage */
  45. #define CONFIG_SCSI_AHCI
  46. #ifdef CONFIG_SCSI_AHCI
  47. #define CONFIG_SYS_64BIT_LBA
  48. #define CONFIG_SATA_INTEL 1
  49. #define CONFIG_SCSI_DEV_LIST {PCI_VENDOR_ID_INTEL, \
  50. PCI_DEVICE_ID_INTEL_NM10_AHCI}, \
  51. {PCI_VENDOR_ID_INTEL, \
  52. PCI_DEVICE_ID_INTEL_COUGARPOINT_AHCI_MOBILE}, \
  53. {PCI_VENDOR_ID_INTEL, \
  54. PCI_DEVICE_ID_INTEL_COUGARPOINT_AHCI_SERIES6}, \
  55. {PCI_VENDOR_ID_INTEL, \
  56. PCI_DEVICE_ID_INTEL_PANTHERPOINT_AHCI_MOBILE}
  57. #define CONFIG_SYS_SCSI_MAX_SCSI_ID 2
  58. #define CONFIG_SYS_SCSI_MAX_LUN 1
  59. #define CONFIG_SYS_SCSI_MAX_DEVICE (CONFIG_SYS_SCSI_MAX_SCSI_ID * \
  60. CONFIG_SYS_SCSI_MAX_LUN)
  61. #endif
  62. /* Generic TPM interfaced through LPC bus */
  63. #define CONFIG_GENERIC_LPC_TPM
  64. #define CONFIG_TPM_TIS_BASE_ADDRESS 0xfed40000
  65. /*-----------------------------------------------------------------------
  66. * Real Time Clock Configuration
  67. */
  68. #define CONFIG_RTC_MC146818
  69. #define CONFIG_SYS_ISA_IO_BASE_ADDRESS 0
  70. /*-----------------------------------------------------------------------
  71. * Serial Configuration
  72. */
  73. #define CONFIG_CONS_INDEX 1
  74. #define CONFIG_SYS_NS16550
  75. #define CONFIG_SYS_NS16550_SERIAL
  76. #define CONFIG_SYS_NS16550_REG_SIZE 1
  77. #define CONFIG_SYS_NS16550_CLK 1843200
  78. #define CONFIG_BAUDRATE 9600
  79. #define CONFIG_SYS_BAUDRATE_TABLE {300, 600, 1200, 2400, 4800, \
  80. 9600, 19200, 38400, 115200}
  81. #define CONFIG_SYS_NS16550_COM1 UART0_BASE
  82. #define CONFIG_SYS_NS16550_COM2 UART1_BASE
  83. #define CONFIG_SYS_NS16550_PORT_MAPPED
  84. #define CONFIG_STD_DEVICES_SETTINGS "stdin=usbkbd,vga,eserial0\0" \
  85. "stdout=vga,eserial0,cbmem\0" \
  86. "stderr=vga,eserial0,cbmem\0"
  87. #define CONFIG_CONSOLE_MUX
  88. #define CONFIG_SYS_CONSOLE_IS_IN_ENV
  89. #define CONFIG_SYS_STDIO_DEREGISTER
  90. #define CONFIG_CBMEM_CONSOLE
  91. /* max. 1 IDE bus */
  92. #define CONFIG_SYS_IDE_MAXBUS 1
  93. /* max. 1 drive per IDE bus */
  94. #define CONFIG_SYS_IDE_MAXDEVICE (CONFIG_SYS_IDE_MAXBUS * 1)
  95. #define CONFIG_SYS_ATA_BASE_ADDR CONFIG_SYS_ISA_IO_BASE_ADDRESS
  96. #define CONFIG_SYS_ATA_IDE0_OFFSET 0x01f0
  97. #define CONFIG_SYS_ATA_IDE1_OFFSET 0x0170
  98. #define CONFIG_SYS_ATA_DATA_OFFSET 0
  99. #define CONFIG_SYS_ATA_REG_OFFSET 0
  100. #define CONFIG_SYS_ATA_ALT_OFFSET 0x200
  101. #define CONFIG_SUPPORT_VFAT
  102. /************************************************************
  103. * ATAPI support (experimental)
  104. ************************************************************/
  105. #define CONFIG_ATAPI
  106. /************************************************************
  107. * DISK Partition support
  108. ************************************************************/
  109. #define CONFIG_DOS_PARTITION
  110. #define CONFIG_MAC_PARTITION
  111. #define CONFIG_ISO_PARTITION /* Experimental */
  112. #define CONFIG_CMD_CBFS
  113. #define CONFIG_CMD_EXT4
  114. #define CONFIG_CMD_EXT4_WRITE
  115. /*-----------------------------------------------------------------------
  116. * Video Configuration
  117. */
  118. #undef CONFIG_VIDEO
  119. #undef CONFIG_CFB_CONSOLE
  120. /*-----------------------------------------------------------------------
  121. * Command line configuration.
  122. */
  123. #include <config_cmd_default.h>
  124. #define CONFIG_CMD_BDI
  125. #define CONFIG_CMD_BOOTD
  126. #define CONFIG_CMD_CONSOLE
  127. #define CONFIG_CMD_DATE
  128. #define CONFIG_CMD_ECHO
  129. #undef CONFIG_CMD_FLASH
  130. #define CONFIG_CMD_FPGA
  131. #define CONFIG_CMD_IMI
  132. #undef CONFIG_CMD_IMLS
  133. #define CONFIG_CMD_IRQ
  134. #define CONFIG_CMD_ITEST
  135. #define CONFIG_CMD_LOADB
  136. #define CONFIG_CMD_LOADS
  137. #define CONFIG_CMD_MEMORY
  138. #define CONFIG_CMD_MISC
  139. #define CONFIG_CMD_NET
  140. #undef CONFIG_CMD_NFS
  141. #define CONFIG_CMD_PCI
  142. #define CONFIG_CMD_PING
  143. #define CONFIG_CMD_RUN
  144. #define CONFIG_CMD_SAVEENV
  145. #define CONFIG_CMD_SETGETDCR
  146. #define CONFIG_CMD_SOURCE
  147. #define CONFIG_CMD_XIMG
  148. #define CONFIG_CMD_IDE
  149. #define CONFIG_CMD_FAT
  150. #define CONFIG_CMD_EXT2
  151. #define CONFIG_BOOTDELAY 2
  152. #define CONFIG_BOOTARGS "root=/dev/mtdblock0 console=ttyS0,9600"
  153. #if defined(CONFIG_CMD_KGDB)
  154. #define CONFIG_KGDB_BAUDRATE 115200
  155. #define CONFIG_KGDB_SER_INDEX 2
  156. #endif
  157. /*
  158. * Miscellaneous configurable options
  159. */
  160. #define CONFIG_SYS_LONGHELP
  161. #define CONFIG_SYS_PROMPT "boot > "
  162. #define CONFIG_SYS_CBSIZE 256
  163. #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
  164. sizeof(CONFIG_SYS_PROMPT) + \
  165. 16)
  166. #define CONFIG_SYS_MAXARGS 16
  167. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
  168. #define CONFIG_SYS_MEMTEST_START 0x00100000
  169. #define CONFIG_SYS_MEMTEST_END 0x01000000
  170. #define CONFIG_SYS_LOAD_ADDR 0x100000
  171. #define CONFIG_SYS_HZ 1000
  172. #define CONFIG_SYS_X86_ISR_TIMER
  173. /*-----------------------------------------------------------------------
  174. * SDRAM Configuration
  175. */
  176. #define CONFIG_NR_DRAM_BANKS 4
  177. /* CONFIG_SYS_SDRAM_DRCTMCTL Overrides the following*/
  178. #undef CONFIG_SYS_SDRAM_PRECHARGE_DELAY
  179. #undef CONFIG_SYS_SDRAM_RAS_CAS_DELAY
  180. #undef CONFIG_SYS_SDRAM_CAS_LATENCY_2T
  181. #undef CONFIG_SYS_SDRAM_CAS_LATENCY_3T
  182. /*-----------------------------------------------------------------------
  183. * CPU Features
  184. */
  185. #define CONFIG_SYS_GENERIC_TIMER
  186. #define CONFIG_SYS_PCAT_INTERRUPTS
  187. #define CONFIG_SYS_NUM_IRQS 16
  188. /*-----------------------------------------------------------------------
  189. * Memory organization:
  190. * 32kB Stack
  191. * 16kB Cache-As-RAM @ 0x19200000
  192. * 256kB Monitor
  193. * (128kB + Environment Sector Size) malloc pool
  194. */
  195. #define CONFIG_SYS_STACK_SIZE (32 * 1024)
  196. #define CONFIG_SYS_CAR_ADDR 0x19200000
  197. #define CONFIG_SYS_CAR_SIZE (16 * 1024)
  198. #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
  199. #define CONFIG_SYS_MONITOR_LEN (256 * 1024)
  200. #define CONFIG_SYS_MALLOC_LEN (0x20000 + 128 * 1024)
  201. /* allow to overwrite serial and ethaddr */
  202. #define CONFIG_ENV_OVERWRITE
  203. /*-----------------------------------------------------------------------
  204. * FLASH configuration
  205. */
  206. #define CONFIG_SYS_NO_FLASH
  207. #undef CONFIG_FLASH_CFI_DRIVER
  208. #define CONFIG_SYS_MAX_FLASH_SECT 1
  209. #define CONFIG_SYS_MAX_FLASH_BANKS 1
  210. /*-----------------------------------------------------------------------
  211. * Environment configuration
  212. */
  213. #define CONFIG_ENV_IS_NOWHERE
  214. #define CONFIG_ENV_SIZE 0x01000
  215. /*-----------------------------------------------------------------------
  216. * PCI configuration
  217. */
  218. #define CONFIG_PCI
  219. #define CONFIG_EXTRA_ENV_SETTINGS \
  220. CONFIG_STD_DEVICES_SETTINGS
  221. #endif /* __CONFIG_H */