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) 17a65b25d1SBin Meng 18a65b25d1SBin Meng #define CONFIG_X86_SERIAL 19a65b25d1SBin Meng 20a65b25d1SBin Meng #define CONFIG_PCI_MEM_BUS 0xc0000000 21a65b25d1SBin Meng #define CONFIG_PCI_MEM_PHYS CONFIG_PCI_MEM_BUS 22a65b25d1SBin Meng #define CONFIG_PCI_MEM_SIZE 0x10000000 23a65b25d1SBin Meng 24a65b25d1SBin Meng #define CONFIG_PCI_PREF_BUS 0xd0000000 25a65b25d1SBin Meng #define CONFIG_PCI_PREF_PHYS CONFIG_PCI_PREF_BUS 26a65b25d1SBin Meng #define CONFIG_PCI_PREF_SIZE 0x10000000 27a65b25d1SBin Meng 28a65b25d1SBin Meng #define CONFIG_PCI_IO_BUS 0x2000 29a65b25d1SBin Meng #define CONFIG_PCI_IO_PHYS CONFIG_PCI_IO_BUS 30a65b25d1SBin Meng #define CONFIG_PCI_IO_SIZE 0xe000 31a65b25d1SBin Meng 32a65b25d1SBin Meng #define CONFIG_PCI_PNP 33a65b25d1SBin Meng #define CONFIG_E1000 34a65b25d1SBin Meng 359c4f5412SBin Meng #define CONFIG_STD_DEVICES_SETTINGS "stdin=serial,vga\0" \ 369c4f5412SBin Meng "stdout=serial,vga\0" \ 379c4f5412SBin Meng "stderr=serial,vga\0" 38a65b25d1SBin Meng 39*2aa3a7fbSBin Meng /* 40*2aa3a7fbSBin Meng * ATA/SATA support for QEMU x86 targets 41*2aa3a7fbSBin Meng * - Only legacy IDE controller is supported for QEMU '-M pc' target 42*2aa3a7fbSBin Meng * - AHCI controller is supported for QEMU '-M q35' target 43*2aa3a7fbSBin Meng * 44*2aa3a7fbSBin Meng * Default configuraion is to support the QEMU default x86 target 45*2aa3a7fbSBin Meng * Undefine CONFIG_CMD_IDE to support q35 target 46*2aa3a7fbSBin Meng */ 47*2aa3a7fbSBin Meng #define CONFIG_CMD_IDE 48*2aa3a7fbSBin Meng #ifdef CONFIG_CMD_IDE 49*2aa3a7fbSBin Meng #define CONFIG_SYS_IDE_MAXBUS 2 50*2aa3a7fbSBin Meng #define CONFIG_SYS_IDE_MAXDEVICE 4 51*2aa3a7fbSBin Meng #define CONFIG_SYS_ATA_BASE_ADDR 0 52*2aa3a7fbSBin Meng #define CONFIG_SYS_ATA_DATA_OFFSET 0 53*2aa3a7fbSBin Meng #define CONFIG_SYS_ATA_REG_OFFSET 0 54*2aa3a7fbSBin Meng #define CONFIG_SYS_ATA_ALT_OFFSET 0 55*2aa3a7fbSBin Meng #define CONFIG_SYS_ATA_IDE0_OFFSET 0x1f0 56*2aa3a7fbSBin Meng #define CONFIG_SYS_ATA_IDE1_OFFSET 0x170 57*2aa3a7fbSBin Meng #define CONFIG_ATAPI 58*2aa3a7fbSBin Meng 59*2aa3a7fbSBin Meng #undef CONFIG_SCSI_AHCI 60*2aa3a7fbSBin Meng #undef CONFIG_CMD_SCSI 61*2aa3a7fbSBin Meng #else 62a65b25d1SBin Meng #define CONFIG_SCSI_DEV_LIST \ 63*2aa3a7fbSBin Meng {PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH9_AHCI} 64*2aa3a7fbSBin Meng #endif 65a65b25d1SBin Meng 66a65b25d1SBin Meng /* GPIO is not supported */ 67a65b25d1SBin Meng #undef CONFIG_INTEL_ICH6_GPIO 68a65b25d1SBin Meng #undef CONFIG_CMD_GPIO 69a65b25d1SBin Meng 70a65b25d1SBin Meng /* SPI is not supported */ 71a65b25d1SBin Meng #undef CONFIG_ICH_SPI 72a65b25d1SBin Meng #undef CONFIG_ENV_IS_IN_SPI_FLASH 73a65b25d1SBin Meng #define CONFIG_ENV_IS_NOWHERE 74a65b25d1SBin Meng 75a65b25d1SBin Meng #endif /* __CONFIG_H */ 76