xref: /openbmc/u-boot/include/configs/qemu-x86.h (revision fcda8c38)
1a65b25d1SBin Meng /*
2a65b25d1SBin Meng  * Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
3a65b25d1SBin Meng  *
4a65b25d1SBin Meng  * SPDX-License-Identifier:	GPL-2.0+
5a65b25d1SBin Meng  */
6a65b25d1SBin Meng 
7a65b25d1SBin Meng /*
8a65b25d1SBin Meng  * board/config.h - configuration options, board specific
9a65b25d1SBin Meng  */
10a65b25d1SBin Meng 
11a65b25d1SBin Meng #ifndef __CONFIG_H
12a65b25d1SBin Meng #define __CONFIG_H
13a65b25d1SBin Meng 
14a65b25d1SBin Meng #include <configs/x86-common.h>
15a65b25d1SBin Meng 
16a65b25d1SBin Meng #define CONFIG_SYS_MONITOR_LEN		(1 << 20)
1748748595SBin Meng #define CONFIG_ARCH_EARLY_INIT_R
18a65b25d1SBin Meng 
19a65b25d1SBin Meng #define CONFIG_PCI_PNP
20a65b25d1SBin Meng 
21b6ff6ce6SBin Meng #define CONFIG_STD_DEVICES_SETTINGS	"stdin=serial,i8042-kbd\0" \
22*fcda8c38SBin Meng 					"stdout=serial,vidconsole\0" \
23*fcda8c38SBin Meng 					"stderr=serial,vidconsole\0"
24a65b25d1SBin Meng 
252aa3a7fbSBin Meng /*
262aa3a7fbSBin Meng  * ATA/SATA support for QEMU x86 targets
272aa3a7fbSBin Meng  *   - Only legacy IDE controller is supported for QEMU '-M pc' target
282aa3a7fbSBin Meng  *   - AHCI controller is supported for QEMU '-M q35' target
292aa3a7fbSBin Meng  *
302aa3a7fbSBin Meng  * Default configuraion is to support the QEMU default x86 target
312aa3a7fbSBin Meng  * Undefine CONFIG_CMD_IDE to support q35 target
322aa3a7fbSBin Meng  */
332aa3a7fbSBin Meng #define CONFIG_CMD_IDE
342aa3a7fbSBin Meng #ifdef CONFIG_CMD_IDE
352aa3a7fbSBin Meng #define CONFIG_SYS_IDE_MAXBUS		2
362aa3a7fbSBin Meng #define CONFIG_SYS_IDE_MAXDEVICE	4
372aa3a7fbSBin Meng #define CONFIG_SYS_ATA_BASE_ADDR	0
382aa3a7fbSBin Meng #define CONFIG_SYS_ATA_DATA_OFFSET	0
392aa3a7fbSBin Meng #define CONFIG_SYS_ATA_REG_OFFSET	0
402aa3a7fbSBin Meng #define CONFIG_SYS_ATA_ALT_OFFSET	0
412aa3a7fbSBin Meng #define CONFIG_SYS_ATA_IDE0_OFFSET	0x1f0
422aa3a7fbSBin Meng #define CONFIG_SYS_ATA_IDE1_OFFSET	0x170
432aa3a7fbSBin Meng #define CONFIG_ATAPI
442aa3a7fbSBin Meng 
452aa3a7fbSBin Meng #undef CONFIG_SCSI_AHCI
46c649e3c9SSimon Glass #undef CONFIG_SCSI
472aa3a7fbSBin Meng #else
48a65b25d1SBin Meng #define CONFIG_SCSI_DEV_LIST		\
492aa3a7fbSBin Meng 	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH9_AHCI}
502aa3a7fbSBin Meng #endif
51a65b25d1SBin Meng 
52a65b25d1SBin Meng /* GPIO is not supported */
53a65b25d1SBin Meng #undef CONFIG_INTEL_ICH6_GPIO
54a65b25d1SBin Meng 
55a65b25d1SBin Meng /* SPI is not supported */
56a65b25d1SBin Meng #undef CONFIG_ENV_IS_IN_SPI_FLASH
57a65b25d1SBin Meng #define CONFIG_ENV_IS_NOWHERE
58a65b25d1SBin Meng 
59a65b25d1SBin Meng #endif	/* __CONFIG_H */
60