1 /* 2 * Copyright (c) 2011 The Chromium OS Authors. 3 * (C) Copyright 2008 4 * Graeme Russ, graeme.russ@gmail.com. 5 * 6 * SPDX-License-Identifier: GPL-2.0+ 7 */ 8 9 #include <asm/ibmpc.h> 10 11 #ifndef __CONFIG_X86_COMMON_H 12 #define __CONFIG_X86_COMMON_H 13 14 /* 15 * High Level Configuration Options 16 * (easy to change) 17 */ 18 #define CONFIG_SHOW_BOOT_PROGRESS 19 #define CONFIG_SYS_VSNPRINTF 20 #define CONFIG_ZBOOT_32 21 #define CONFIG_PHYSMEM 22 #define CONFIG_DISPLAY_BOARDINFO_LATE 23 #define CONFIG_DISPLAY_CPUINFO 24 25 #define CONFIG_DM 26 #define CONFIG_CMD_DM 27 #define CONFIG_DM_GPIO 28 #define CONFIG_DM_SERIAL 29 30 #define CONFIG_LMB 31 #define CONFIG_OF_LIBFDT 32 33 #define CONFIG_LZO 34 #define CONFIG_FIT 35 #undef CONFIG_ZLIB 36 #undef CONFIG_GZIP 37 #define CONFIG_SYS_BOOTM_LEN (16 << 20) 38 39 /* SATA AHCI storage */ 40 41 #define CONFIG_SCSI_AHCI 42 #ifdef CONFIG_SCSI_AHCI 43 #define CONFIG_LIBATA 44 #define CONFIG_SYS_64BIT_LBA 45 46 #define CONFIG_SYS_SCSI_MAX_SCSI_ID 2 47 #define CONFIG_SYS_SCSI_MAX_LUN 1 48 #define CONFIG_SYS_SCSI_MAX_DEVICE (CONFIG_SYS_SCSI_MAX_SCSI_ID * \ 49 CONFIG_SYS_SCSI_MAX_LUN) 50 #endif 51 52 /* Generic TPM interfaced through LPC bus */ 53 #define CONFIG_TPM 54 #define CONFIG_TPM_TIS_LPC 55 #define CONFIG_TPM_TIS_BASE_ADDRESS 0xfed40000 56 57 /*----------------------------------------------------------------------- 58 * Real Time Clock Configuration 59 */ 60 #define CONFIG_RTC_MC146818 61 #define CONFIG_SYS_ISA_IO_BASE_ADDRESS 0 62 #define CONFIG_SYS_ISA_IO CONFIG_SYS_ISA_IO_BASE_ADDRESS 63 64 /*----------------------------------------------------------------------- 65 * Serial Configuration 66 */ 67 #define CONFIG_SYS_NS16550 68 #define CONFIG_BAUDRATE 115200 69 #define CONFIG_SYS_BAUDRATE_TABLE {300, 600, 1200, 2400, 4800, \ 70 9600, 19200, 38400, 115200} 71 #define CONFIG_SYS_NS16550_PORT_MAPPED 72 73 #define CONFIG_CONSOLE_MUX 74 #define CONFIG_SYS_CONSOLE_IS_IN_ENV 75 #define CONFIG_SYS_STDIO_DEREGISTER 76 77 #define CONFIG_CMDLINE_EDITING 78 #define CONFIG_COMMAND_HISTORY 79 #define CONFIG_AUTO_COMPLETE 80 #define CONFIG_SYS_HUSH_PARSER 81 82 #define CONFIG_SUPPORT_VFAT 83 /************************************************************ 84 * ATAPI support (experimental) 85 ************************************************************/ 86 #define CONFIG_ATAPI 87 88 /************************************************************ 89 * DISK Partition support 90 ************************************************************/ 91 #define CONFIG_EFI_PARTITION 92 #define CONFIG_DOS_PARTITION 93 #define CONFIG_MAC_PARTITION 94 #define CONFIG_ISO_PARTITION /* Experimental */ 95 96 #define CONFIG_CMD_PART 97 #define CONFIG_CMD_CBFS 98 #define CONFIG_CMD_EXT4 99 #define CONFIG_CMD_EXT4_WRITE 100 #define CONFIG_PARTITION_UUIDS 101 102 #define CONFIG_SYS_CONSOLE_INFO_QUIET 103 104 /* x86 GPIOs are accessed through a PCI device */ 105 #define CONFIG_INTEL_ICH6_GPIO 106 107 /*----------------------------------------------------------------------- 108 * Command line configuration. 109 */ 110 #include <config_cmd_default.h> 111 112 #define CONFIG_CMD_BDI 113 #define CONFIG_CMD_BOOTD 114 #define CONFIG_CMD_CONSOLE 115 #define CONFIG_CMD_DATE 116 #define CONFIG_CMD_ECHO 117 #undef CONFIG_CMD_FLASH 118 #define CONFIG_CMD_FPGA 119 #define CONFIG_CMD_FPGA_LOADMK 120 #define CONFIG_CMD_GPIO 121 #define CONFIG_CMD_IMI 122 #undef CONFIG_CMD_IMLS 123 #define CONFIG_CMD_IO 124 #define CONFIG_CMD_IRQ 125 #define CONFIG_CMD_ITEST 126 #define CONFIG_CMD_LOADB 127 #define CONFIG_CMD_LOADS 128 #define CONFIG_CMD_MEMORY 129 #define CONFIG_CMD_MISC 130 #define CONFIG_CMD_NET 131 #undef CONFIG_CMD_NFS 132 #define CONFIG_CMD_PCI 133 #define CONFIG_CMD_PING 134 #define CONFIG_CMD_RUN 135 #define CONFIG_CMD_SAVEENV 136 #define CONFIG_CMD_SETGETDCR 137 #define CONFIG_CMD_SOURCE 138 #define CONFIG_CMD_TIME 139 #define CONFIG_CMD_GETTIME 140 #define CONFIG_CMD_XIMG 141 #define CONFIG_CMD_SCSI 142 143 #define CONFIG_CMD_FAT 144 #define CONFIG_CMD_EXT2 145 146 #define CONFIG_CMD_ZBOOT 147 #define CONFIG_CMD_ELF 148 149 #define CONFIG_BOOTARGS \ 150 "root=/dev/sdb3 init=/sbin/init rootwait ro" 151 #define CONFIG_BOOTCOMMAND \ 152 "ext2load scsi 0:3 01000000 /boot/vmlinuz; zboot 01000000" 153 154 #if defined(CONFIG_CMD_KGDB) 155 #define CONFIG_KGDB_BAUDRATE 115200 156 #endif 157 158 /* 159 * Miscellaneous configurable options 160 */ 161 #define CONFIG_SYS_LONGHELP 162 #define CONFIG_SYS_CBSIZE 512 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 169 #define CONFIG_SYS_MEMTEST_START 0x00100000 170 #define CONFIG_SYS_MEMTEST_END 0x01000000 171 #define CONFIG_SYS_LOAD_ADDR 0x20000000 172 173 /*----------------------------------------------------------------------- 174 * Video Configuration 175 */ 176 #define CONFIG_VIDEO 177 #define CONFIG_VIDEO_SW_CURSOR 178 #define VIDEO_FB_16BPP_WORD_SWAP 179 #define CONFIG_I8042_KBD 180 #define CONFIG_CFB_CONSOLE 181 #define CONFIG_CONSOLE_SCROLL_LINES 5 182 183 /*----------------------------------------------------------------------- 184 * CPU Features 185 */ 186 187 #define CONFIG_SYS_X86_TSC_TIMER 188 #define CONFIG_SYS_PCAT_INTERRUPTS 189 #define CONFIG_SYS_PCAT_TIMER 190 #define CONFIG_SYS_NUM_IRQS 16 191 192 #define CONFIG_SYS_STACK_SIZE (32 * 1024) 193 #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE 194 #define CONFIG_SYS_MALLOC_LEN 0x200000 195 #define CONFIG_SYS_MALLOC_F_LEN (2 << 10) 196 197 /* allow to overwrite serial and ethaddr */ 198 #define CONFIG_ENV_OVERWRITE 199 200 /*----------------------------------------------------------------------- 201 * FLASH configuration 202 */ 203 #define CONFIG_ICH_SPI 204 #define CONFIG_SPI_FLASH 205 #define CONFIG_SPI_FLASH_MACRONIX 206 #define CONFIG_SPI_FLASH_WINBOND 207 #define CONFIG_SPI_FLASH_GIGADEVICE 208 #define CONFIG_SYS_NO_FLASH 209 #define CONFIG_CMD_SF 210 #define CONFIG_CMD_SF_TEST 211 #define CONFIG_CMD_SPI 212 #define CONFIG_SPI 213 #define CONFIG_OF_SPI_FLASH 214 215 /*----------------------------------------------------------------------- 216 * Environment configuration 217 */ 218 #define CONFIG_ENV_IS_NOWHERE 219 #define CONFIG_ENV_SIZE 0x01000 220 221 /*----------------------------------------------------------------------- 222 * PCI configuration 223 */ 224 #define CONFIG_PCI 225 226 /*----------------------------------------------------------------------- 227 * USB configuration 228 */ 229 #define CONFIG_USB_EHCI 230 #define CONFIG_USB_EHCI_PCI 231 #define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS 12 232 #define CONFIG_USB_MAX_CONTROLLER_COUNT 2 233 #define CONFIG_USB_STORAGE 234 #define CONFIG_USB_KEYBOARD 235 #define CONFIG_SYS_USB_EVENT_POLL 236 237 #define CONFIG_USB_HOST_ETHER 238 #define CONFIG_USB_ETHER_ASIX 239 #define CONFIG_USB_ETHER_SMSC95XX 240 #define CONFIG_TFTP_TSIZE 241 #define CONFIG_CMD_DHCP 242 #define CONFIG_BOOTP_BOOTFILESIZE 243 #define CONFIG_BOOTP_BOOTPATH 244 #define CONFIG_BOOTP_GATEWAY 245 #define CONFIG_BOOTP_HOSTNAME 246 247 #define CONFIG_BOOTSTAGE 248 #define CONFIG_CMD_BOOTSTAGE 249 250 #define CONFIG_CMD_USB 251 252 #define CONFIG_EXTRA_ENV_SETTINGS \ 253 CONFIG_STD_DEVICES_SETTINGS 254 255 #endif /* __CONFIG_H */ 256