blob: 5ef999c67495e7d962d83412889c2fe83b44decb [file] [log] [blame]
Stefan Roese2a0b94c2016-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 Roese9a111ce2016-06-28 15:45:13 +020018#define CONFIG_BOARD_LATE_INIT
Stefan Roese2a0b94c2016-03-16 08:48:21 +010019#define CONFIG_ARCH_EARLY_INIT_R
20#define CONFIG_ARCH_MISC_INIT
21
Stefan Roese2a0b94c2016-03-16 08:48:21 +010022#define CONFIG_STD_DEVICES_SETTINGS "stdin=serial\0" \
23 "stdout=serial\0" \
24 "stderr=serial\0"
25
26#define CONFIG_SCSI_DEV_LIST \
27 {PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA}, \
28 {PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA_ALT}
29
30#define CONFIG_MMC
31#define CONFIG_SDHCI
32#define CONFIG_GENERIC_MMC
33#define CONFIG_MMC_SDMA
Stefan Roese2a0b94c2016-03-16 08:48:21 +010034
35#undef CONFIG_USB_MAX_CONTROLLER_COUNT
36#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
37
38#define VIDEO_IO_OFFSET 0
39#define CONFIG_X86EMU_RAW_IO
40#define CONFIG_CMD_BMP
41
42#define CONFIG_ENV_SECT_SIZE 0x1000
Stefan Roese9a111ce2016-06-28 15:45:13 +020043#define CONFIG_ENV_OFFSET 0x006ef000
Stefan Roese2a0b94c2016-03-16 08:48:21 +010044
45#undef CONFIG_BOOTARGS
46#undef CONFIG_BOOTCOMMAND
47
48#define CONFIG_BOOTARGS \
Stefan Roese9a111ce2016-06-28 15:45:13 +020049 "root=/dev/sda2 ro quiet"
Stefan Roese2a0b94c2016-03-16 08:48:21 +010050#define CONFIG_BOOTCOMMAND \
Stefan Roese9a111ce2016-06-28 15:45:13 +020051 "load scsi 0:2 03000000 /boot/vmlinuz-${kernel-ver}-generic;" \
52 "load scsi 0:2 04000000 /boot/initrd.img-${kernel-ver}-generic;" \
Stefan Roese2a0b94c2016-03-16 08:48:21 +010053 "run boot"
54
55#undef CONFIG_EXTRA_ENV_SETTINGS
56#define CONFIG_EXTRA_ENV_SETTINGS \
Stefan Roese9a111ce2016-06-28 15:45:13 +020057 "kernel-ver=4.4.0-22\0" \
Stefan Roese2a0b94c2016-03-16 08:48:21 +010058 "boot=zboot 03000000 0 04000000 ${filesize}\0" \
59 "upd_uboot=tftp 100000 conga/u-boot.rom;" \
Stefan Roese9a111ce2016-06-28 15:45:13 +020060 "sf probe;sf update 100000 0 800000;saveenv\0"
Stefan Roese2a0b94c2016-03-16 08:48:21 +010061
62#define CONFIG_PREBOOT
63
64#endif /* __CONFIG_H */