coreboot.h 7.8 KB

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