2015-05-07 13:34:08 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* board/config.h - configuration options, board specific
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CONFIG_H
|
|
|
|
#define __CONFIG_H
|
|
|
|
|
|
|
|
#include <configs/x86-common.h>
|
|
|
|
|
|
|
|
#define CONFIG_SYS_MONITOR_LEN (1 << 20)
|
2015-06-03 01:20:06 +00:00
|
|
|
#define CONFIG_ARCH_MISC_INIT
|
2015-05-07 13:34:08 +00:00
|
|
|
|
|
|
|
#define CONFIG_PCI_MEM_BUS 0xc0000000
|
|
|
|
#define CONFIG_PCI_MEM_PHYS CONFIG_PCI_MEM_BUS
|
|
|
|
#define CONFIG_PCI_MEM_SIZE 0x10000000
|
|
|
|
|
|
|
|
#define CONFIG_PCI_PREF_BUS 0xd0000000
|
|
|
|
#define CONFIG_PCI_PREF_PHYS CONFIG_PCI_PREF_BUS
|
|
|
|
#define CONFIG_PCI_PREF_SIZE 0x10000000
|
|
|
|
|
|
|
|
#define CONFIG_PCI_IO_BUS 0x2000
|
|
|
|
#define CONFIG_PCI_IO_PHYS CONFIG_PCI_IO_BUS
|
|
|
|
#define CONFIG_PCI_IO_SIZE 0xe000
|
|
|
|
|
2015-05-23 16:12:32 +00:00
|
|
|
#define CONFIG_PCI_CONFIG_HOST_BRIDGE
|
2015-05-07 13:34:08 +00:00
|
|
|
#define CONFIG_PCI_PNP
|
|
|
|
#define CONFIG_E1000
|
|
|
|
|
2015-05-10 23:36:30 +00:00
|
|
|
#define CONFIG_STD_DEVICES_SETTINGS "stdin=serial,vga\0" \
|
|
|
|
"stdout=serial,vga\0" \
|
|
|
|
"stderr=serial,vga\0"
|
2015-05-07 13:34:08 +00:00
|
|
|
|
2015-05-16 01:33:19 +00:00
|
|
|
/*
|
|
|
|
* ATA/SATA support for QEMU x86 targets
|
|
|
|
* - Only legacy IDE controller is supported for QEMU '-M pc' target
|
|
|
|
* - AHCI controller is supported for QEMU '-M q35' target
|
|
|
|
*
|
|
|
|
* Default configuraion is to support the QEMU default x86 target
|
|
|
|
* Undefine CONFIG_CMD_IDE to support q35 target
|
|
|
|
*/
|
|
|
|
#define CONFIG_CMD_IDE
|
|
|
|
#ifdef CONFIG_CMD_IDE
|
|
|
|
#define CONFIG_SYS_IDE_MAXBUS 2
|
|
|
|
#define CONFIG_SYS_IDE_MAXDEVICE 4
|
|
|
|
#define CONFIG_SYS_ATA_BASE_ADDR 0
|
|
|
|
#define CONFIG_SYS_ATA_DATA_OFFSET 0
|
|
|
|
#define CONFIG_SYS_ATA_REG_OFFSET 0
|
|
|
|
#define CONFIG_SYS_ATA_ALT_OFFSET 0
|
|
|
|
#define CONFIG_SYS_ATA_IDE0_OFFSET 0x1f0
|
|
|
|
#define CONFIG_SYS_ATA_IDE1_OFFSET 0x170
|
|
|
|
#define CONFIG_ATAPI
|
|
|
|
|
|
|
|
#undef CONFIG_SCSI_AHCI
|
|
|
|
#undef CONFIG_CMD_SCSI
|
|
|
|
#else
|
2015-05-07 13:34:08 +00:00
|
|
|
#define CONFIG_SCSI_DEV_LIST \
|
2015-05-16 01:33:19 +00:00
|
|
|
{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH9_AHCI}
|
|
|
|
#endif
|
2015-05-07 13:34:08 +00:00
|
|
|
|
|
|
|
/* GPIO is not supported */
|
|
|
|
#undef CONFIG_INTEL_ICH6_GPIO
|
|
|
|
#undef CONFIG_CMD_GPIO
|
|
|
|
|
|
|
|
/* SPI is not supported */
|
|
|
|
#undef CONFIG_ICH_SPI
|
|
|
|
#undef CONFIG_ENV_IS_IN_SPI_FLASH
|
|
|
|
#define CONFIG_ENV_IS_NOWHERE
|
|
|
|
|
|
|
|
#endif /* __CONFIG_H */
|