blob: 652e07323e281c36f3d4621374e9a69420f7b24c [file] [log] [blame]
Stefan Roese82ceba22016-03-16 08:48:21 +01001/*
2 * Copyright (C) 2016 Stefan Roese <sr@denx.de>
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_BOARD_EARLY_INIT_F
Stefan Roese303dfc22016-06-28 15:45:13 +020018#define CONFIG_BOARD_LATE_INIT
Stefan Roese82ceba22016-03-16 08:48:21 +010019#define CONFIG_ARCH_EARLY_INIT_R
20#define CONFIG_ARCH_MISC_INIT
21
22#define CONFIG_PCI_PNP
23
24#define CONFIG_STD_DEVICES_SETTINGS "stdin=serial\0" \
25 "stdout=serial\0" \
26 "stderr=serial\0"
27
28#define CONFIG_SCSI_DEV_LIST \
29 {PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA}, \
30 {PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA_ALT}
31
32#define CONFIG_MMC
33#define CONFIG_SDHCI
34#define CONFIG_GENERIC_MMC
35#define CONFIG_MMC_SDMA
Stefan Roese82ceba22016-03-16 08:48:21 +010036
37#undef CONFIG_USB_MAX_CONTROLLER_COUNT
38#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
39
40#define VIDEO_IO_OFFSET 0
41#define CONFIG_X86EMU_RAW_IO
42#define CONFIG_CMD_BMP
43
44#define CONFIG_ENV_SECT_SIZE 0x1000
Stefan Roese303dfc22016-06-28 15:45:13 +020045#define CONFIG_ENV_OFFSET 0x006ef000
Stefan Roese82ceba22016-03-16 08:48:21 +010046
47#undef CONFIG_BOOTARGS
48#undef CONFIG_BOOTCOMMAND
49
50#define CONFIG_BOOTARGS \
Stefan Roese303dfc22016-06-28 15:45:13 +020051 "root=/dev/sda2 ro quiet"
Stefan Roese82ceba22016-03-16 08:48:21 +010052#define CONFIG_BOOTCOMMAND \
Stefan Roese303dfc22016-06-28 15:45:13 +020053 "load scsi 0:2 03000000 /boot/vmlinuz-${kernel-ver}-generic;" \
54 "load scsi 0:2 04000000 /boot/initrd.img-${kernel-ver}-generic;" \
Stefan Roese82ceba22016-03-16 08:48:21 +010055 "run boot"
56
57#undef CONFIG_EXTRA_ENV_SETTINGS
58#define CONFIG_EXTRA_ENV_SETTINGS \
Stefan Roese303dfc22016-06-28 15:45:13 +020059 "kernel-ver=4.4.0-22\0" \
Stefan Roese82ceba22016-03-16 08:48:21 +010060 "boot=zboot 03000000 0 04000000 ${filesize}\0" \
61 "upd_uboot=tftp 100000 conga/u-boot.rom;" \
Stefan Roese303dfc22016-06-28 15:45:13 +020062 "sf probe;sf update 100000 0 800000;saveenv\0"
Stefan Roese82ceba22016-03-16 08:48:21 +010063
64#define CONFIG_PREBOOT
65
66#endif /* __CONFIG_H */