coreboot.h 7.7 KB

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