1 /*
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
18 #define CONFIG_ARCH_EARLY_INIT_R
19 #define CONFIG_ARCH_MISC_INIT
20 
21 #define CONFIG_STD_DEVICES_SETTINGS     "stdin=serial\0" \
22 					"stdout=serial\0" \
23 					"stderr=serial\0"
24 
25 #define CONFIG_SCSI_DEV_LIST		\
26 	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA}, \
27 	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA_ALT}
28 
29 #define CONFIG_GENERIC_MMC
30 
31 #undef CONFIG_USB_MAX_CONTROLLER_COUNT
32 #define CONFIG_USB_MAX_CONTROLLER_COUNT		1
33 
34 #define VIDEO_IO_OFFSET				0
35 #define CONFIG_X86EMU_RAW_IO
36 #define CONFIG_CMD_BMP
37 
38 #define CONFIG_ENV_SECT_SIZE		0x1000
39 #define CONFIG_ENV_OFFSET		0x006ef000
40 
41 #undef CONFIG_BOOTARGS
42 #undef CONFIG_BOOTCOMMAND
43 
44 #define CONFIG_BOOTARGS		\
45 	"root=/dev/sda2 ro quiet"
46 #define CONFIG_BOOTCOMMAND	\
47 	"load scsi 0:2 03000000 /boot/vmlinuz-${kernel-ver}-generic;"	\
48 	"load scsi 0:2 04000000 /boot/initrd.img-${kernel-ver}-generic;" \
49 	"run boot"
50 
51 #undef CONFIG_EXTRA_ENV_SETTINGS
52 #define CONFIG_EXTRA_ENV_SETTINGS				\
53 	"kernel-ver=4.4.0-22\0"					\
54 	"boot=zboot 03000000 0 04000000 ${filesize}\0"		\
55 	"upd_uboot=tftp 100000 conga/u-boot.rom;"		\
56 		"sf probe;sf update 100000 0 800000;saveenv\0"
57 
58 #define CONFIG_PREBOOT
59 
60 #endif	/* __CONFIG_H */
61