xref: /openbmc/u-boot/include/configs/qemu-x86.h (revision 6ce89324)
1 /*
2  * Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
3  *
4  * SPDX-License-Identifier:	GPL-2.0+
5  */
6 
7 /*
8  * board/config.h - configuration options, board specific
9  */
10 
11 #ifndef __CONFIG_H
12 #define __CONFIG_H
13 
14 #include <configs/x86-common.h>
15 
16 #define CONFIG_SYS_MONITOR_LEN		(1 << 20)
17 #define CONFIG_ARCH_MISC_INIT
18 
19 #define CONFIG_X86_SERIAL
20 
21 #define CONFIG_PCI_MEM_BUS		0xc0000000
22 #define CONFIG_PCI_MEM_PHYS		CONFIG_PCI_MEM_BUS
23 #define CONFIG_PCI_MEM_SIZE		0x10000000
24 
25 #define CONFIG_PCI_PREF_BUS		0xd0000000
26 #define CONFIG_PCI_PREF_PHYS		CONFIG_PCI_PREF_BUS
27 #define CONFIG_PCI_PREF_SIZE		0x10000000
28 
29 #define CONFIG_PCI_IO_BUS		0x2000
30 #define CONFIG_PCI_IO_PHYS		CONFIG_PCI_IO_BUS
31 #define CONFIG_PCI_IO_SIZE		0xe000
32 
33 #define CONFIG_PCI_CONFIG_HOST_BRIDGE
34 #define CONFIG_PCI_PNP
35 #define CONFIG_E1000
36 
37 #define CONFIG_STD_DEVICES_SETTINGS	"stdin=serial,vga\0" \
38 					"stdout=serial,vga\0" \
39 					"stderr=serial,vga\0"
40 
41 /*
42  * ATA/SATA support for QEMU x86 targets
43  *   - Only legacy IDE controller is supported for QEMU '-M pc' target
44  *   - AHCI controller is supported for QEMU '-M q35' target
45  *
46  * Default configuraion is to support the QEMU default x86 target
47  * Undefine CONFIG_CMD_IDE to support q35 target
48  */
49 #define CONFIG_CMD_IDE
50 #ifdef CONFIG_CMD_IDE
51 #define CONFIG_SYS_IDE_MAXBUS		2
52 #define CONFIG_SYS_IDE_MAXDEVICE	4
53 #define CONFIG_SYS_ATA_BASE_ADDR	0
54 #define CONFIG_SYS_ATA_DATA_OFFSET	0
55 #define CONFIG_SYS_ATA_REG_OFFSET	0
56 #define CONFIG_SYS_ATA_ALT_OFFSET	0
57 #define CONFIG_SYS_ATA_IDE0_OFFSET	0x1f0
58 #define CONFIG_SYS_ATA_IDE1_OFFSET	0x170
59 #define CONFIG_ATAPI
60 
61 #undef CONFIG_SCSI_AHCI
62 #undef CONFIG_CMD_SCSI
63 #else
64 #define CONFIG_SCSI_DEV_LIST		\
65 	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH9_AHCI}
66 #endif
67 
68 /* GPIO is not supported */
69 #undef CONFIG_INTEL_ICH6_GPIO
70 #undef CONFIG_CMD_GPIO
71 
72 /* SPI is not supported */
73 #undef CONFIG_ICH_SPI
74 #undef CONFIG_ENV_IS_IN_SPI_FLASH
75 #define CONFIG_ENV_IS_NOWHERE
76 
77 #endif	/* __CONFIG_H */
78