Stefan Roese | b1ad6c6 | 2016-08-15 13:50:49 +0200 | [diff] [blame] | 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 | |
| 19 | #ifndef CONFIG_INTERNAL_UART |
| 20 | /* Use BayTrail internal HS UART which is memory-mapped */ |
| 21 | #undef CONFIG_SYS_NS16550_PORT_MAPPED |
| 22 | #endif |
| 23 | |
| 24 | #define CONFIG_PCI_PNP |
| 25 | |
| 26 | #define CONFIG_STD_DEVICES_SETTINGS "stdin=serial\0" \ |
| 27 | "stdout=serial\0" \ |
| 28 | "stderr=serial\0" |
| 29 | |
| 30 | #define CONFIG_SCSI_DEV_LIST \ |
| 31 | {PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA}, \ |
| 32 | {PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA_ALT} |
| 33 | |
| 34 | #define CONFIG_MMC |
| 35 | #define CONFIG_SDHCI |
| 36 | #define CONFIG_GENERIC_MMC |
| 37 | #define CONFIG_MMC_SDMA |
| 38 | |
| 39 | #undef CONFIG_USB_MAX_CONTROLLER_COUNT |
| 40 | #define CONFIG_USB_MAX_CONTROLLER_COUNT 1 |
| 41 | |
| 42 | #define CONFIG_USB_HOST_ETHER |
| 43 | #define CONFIG_USB_ETHER_ASIX |
| 44 | #define CONFIG_USB_ETHER_SMSC95XX |
| 45 | #define CONFIG_USB_ETHER_MCS7830 |
| 46 | #define CONFIG_USB_ETHER_RTL8152 |
| 47 | |
| 48 | #define VIDEO_IO_OFFSET 0 |
| 49 | #define CONFIG_X86EMU_RAW_IO |
| 50 | #define CONFIG_CMD_BMP |
| 51 | |
| 52 | #define CONFIG_ENV_SECT_SIZE 0x1000 |
| 53 | #define CONFIG_ENV_OFFSET 0x006ef000 |
| 54 | |
| 55 | #undef CONFIG_BOOTARGS |
| 56 | #undef CONFIG_BOOTCOMMAND |
| 57 | |
| 58 | #define CONFIG_BOOTARGS \ |
| 59 | "root=/dev/sda1 ro quiet" |
| 60 | #define CONFIG_BOOTCOMMAND \ |
| 61 | "load scsi 0:1 03000000 /boot/vmlinuz-${kernel-ver}-generic;" \ |
| 62 | "load scsi 0:1 04000000 /boot/initrd.img-${kernel-ver}-generic;" \ |
| 63 | "run boot" |
| 64 | |
| 65 | #undef CONFIG_EXTRA_ENV_SETTINGS |
| 66 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 67 | "kernel-ver=4.4.0-24\0" \ |
| 68 | "boot=zboot 03000000 0 04000000 ${filesize}\0" \ |
| 69 | "upd_uboot=usb reset;tftp 100000 dfi/u-boot.rom;" \ |
| 70 | "sf probe;sf update 100000 0 800000;saveenv\0" |
| 71 | |
| 72 | #define CONFIG_PREBOOT |
| 73 | |
| 74 | #endif /* __CONFIG_H */ |