Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Stefan Roese | 312dc93 | 2016-08-15 13:50:49 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2016 Stefan Roese <sr@denx.de> |
Stefan Roese | 312dc93 | 2016-08-15 13:50:49 +0200 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | /* |
| 7 | * board/config.h - configuration options, board specific |
| 8 | */ |
| 9 | |
| 10 | #ifndef __CONFIG_H |
| 11 | #define __CONFIG_H |
| 12 | |
| 13 | #include <configs/x86-common.h> |
| 14 | |
| 15 | #define CONFIG_SYS_MONITOR_LEN (1 << 20) |
Stefan Roese | 312dc93 | 2016-08-15 13:50:49 +0200 | [diff] [blame] | 16 | |
| 17 | #ifndef CONFIG_INTERNAL_UART |
| 18 | /* Use BayTrail internal HS UART which is memory-mapped */ |
| 19 | #undef CONFIG_SYS_NS16550_PORT_MAPPED |
| 20 | #endif |
| 21 | |
Stefan Roese | 312dc93 | 2016-08-15 13:50:49 +0200 | [diff] [blame] | 22 | #define CONFIG_STD_DEVICES_SETTINGS "stdin=serial\0" \ |
| 23 | "stdout=serial\0" \ |
| 24 | "stderr=serial\0" |
| 25 | |
Stefan Roese | 312dc93 | 2016-08-15 13:50:49 +0200 | [diff] [blame] | 26 | #define VIDEO_IO_OFFSET 0 |
| 27 | #define CONFIG_X86EMU_RAW_IO |
Stefan Roese | 312dc93 | 2016-08-15 13:50:49 +0200 | [diff] [blame] | 28 | |
| 29 | #define CONFIG_ENV_SECT_SIZE 0x1000 |
| 30 | #define CONFIG_ENV_OFFSET 0x006ef000 |
| 31 | |
Stefan Roese | 312dc93 | 2016-08-15 13:50:49 +0200 | [diff] [blame] | 32 | #undef CONFIG_BOOTCOMMAND |
Stefan Roese | 312dc93 | 2016-08-15 13:50:49 +0200 | [diff] [blame] | 33 | #define CONFIG_BOOTCOMMAND \ |
| 34 | "load scsi 0:1 03000000 /boot/vmlinuz-${kernel-ver}-generic;" \ |
| 35 | "load scsi 0:1 04000000 /boot/initrd.img-${kernel-ver}-generic;" \ |
| 36 | "run boot" |
| 37 | |
| 38 | #undef CONFIG_EXTRA_ENV_SETTINGS |
| 39 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 40 | "kernel-ver=4.4.0-24\0" \ |
| 41 | "boot=zboot 03000000 0 04000000 ${filesize}\0" \ |
| 42 | "upd_uboot=usb reset;tftp 100000 dfi/u-boot.rom;" \ |
| 43 | "sf probe;sf update 100000 0 800000;saveenv\0" |
| 44 | |
| 45 | #define CONFIG_PREBOOT |
| 46 | |
| 47 | #endif /* __CONFIG_H */ |