Commit d5359f2e4dd11d7a1e980beadff22a6e25578ad4
1 parent
5078792807
Exists in
v2017.01-smarct4x
and in
33 other branches
dm: spi: Enable environment for minnowmax
Enable a SPI environment and store it in a suitable place. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Jagan Teki <jteki@openedev.com>
Showing 1 changed file with 2 additions and 3 deletions Inline Diff
include/configs/minnowmax.h
| 1 | /* | 1 | /* |
| 2 | * Copyright (C) 2015 Google, Inc | 2 | * Copyright (C) 2015 Google, Inc |
| 3 | * | 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ | 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | /* | 7 | /* |
| 8 | * board/config.h - configuration options, board specific | 8 | * board/config.h - configuration options, board specific |
| 9 | */ | 9 | */ |
| 10 | 10 | ||
| 11 | #ifndef __CONFIG_H | 11 | #ifndef __CONFIG_H |
| 12 | #define __CONFIG_H | 12 | #define __CONFIG_H |
| 13 | 13 | ||
| 14 | #include <configs/x86-common.h> | 14 | #include <configs/x86-common.h> |
| 15 | 15 | ||
| 16 | #define CONFIG_SYS_MONITOR_LEN (1 << 20) | 16 | #define CONFIG_SYS_MONITOR_LEN (1 << 20) |
| 17 | #define CONFIG_BOARD_EARLY_INIT_F | 17 | #define CONFIG_BOARD_EARLY_INIT_F |
| 18 | #define CONFIG_ARCH_EARLY_INIT_R | 18 | #define CONFIG_ARCH_EARLY_INIT_R |
| 19 | 19 | ||
| 20 | #define CONFIG_X86_SERIAL | 20 | #define CONFIG_X86_SERIAL |
| 21 | #define CONFIG_SMSC_LPC47M | 21 | #define CONFIG_SMSC_LPC47M |
| 22 | 22 | ||
| 23 | #define CONFIG_PCI_MEM_BUS 0xd0000000 | 23 | #define CONFIG_PCI_MEM_BUS 0xd0000000 |
| 24 | #define CONFIG_PCI_MEM_PHYS CONFIG_PCI_MEM_BUS | 24 | #define CONFIG_PCI_MEM_PHYS CONFIG_PCI_MEM_BUS |
| 25 | #define CONFIG_PCI_MEM_SIZE 0x10000000 | 25 | #define CONFIG_PCI_MEM_SIZE 0x10000000 |
| 26 | 26 | ||
| 27 | #define CONFIG_PCI_PREF_BUS 0xc0000000 | 27 | #define CONFIG_PCI_PREF_BUS 0xc0000000 |
| 28 | #define CONFIG_PCI_PREF_PHYS CONFIG_PCI_PREF_BUS | 28 | #define CONFIG_PCI_PREF_PHYS CONFIG_PCI_PREF_BUS |
| 29 | #define CONFIG_PCI_PREF_SIZE 0x10000000 | 29 | #define CONFIG_PCI_PREF_SIZE 0x10000000 |
| 30 | 30 | ||
| 31 | #define CONFIG_PCI_IO_BUS 0x2000 | 31 | #define CONFIG_PCI_IO_BUS 0x2000 |
| 32 | #define CONFIG_PCI_IO_PHYS CONFIG_PCI_IO_BUS | 32 | #define CONFIG_PCI_IO_PHYS CONFIG_PCI_IO_BUS |
| 33 | #define CONFIG_PCI_IO_SIZE 0xe000 | 33 | #define CONFIG_PCI_IO_SIZE 0xe000 |
| 34 | 34 | ||
| 35 | #define CONFIG_SYS_EARLY_PCI_INIT | 35 | #define CONFIG_SYS_EARLY_PCI_INIT |
| 36 | #define CONFIG_PCI_PNP | 36 | #define CONFIG_PCI_PNP |
| 37 | #define CONFIG_RTL8169 | 37 | #define CONFIG_RTL8169 |
| 38 | #define CONFIG_STD_DEVICES_SETTINGS "stdin=usbkbd,vga,serial\0" \ | 38 | #define CONFIG_STD_DEVICES_SETTINGS "stdin=usbkbd,vga,serial\0" \ |
| 39 | "stdout=vga,serial\0" \ | 39 | "stdout=vga,serial\0" \ |
| 40 | "stderr=vga,serial\0" | 40 | "stderr=vga,serial\0" |
| 41 | 41 | ||
| 42 | #define CONFIG_SCSI_DEV_LIST \ | 42 | #define CONFIG_SCSI_DEV_LIST \ |
| 43 | {PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA} | 43 | {PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA} |
| 44 | #define CONFIG_SPI_FLASH_STMICRO | 44 | #define CONFIG_SPI_FLASH_STMICRO |
| 45 | 45 | ||
| 46 | #define CONFIG_MMC | 46 | #define CONFIG_MMC |
| 47 | #define CONFIG_SDHCI | 47 | #define CONFIG_SDHCI |
| 48 | #define CONFIG_GENERIC_MMC | 48 | #define CONFIG_GENERIC_MMC |
| 49 | #define CONFIG_MMC_SDMA | 49 | #define CONFIG_MMC_SDMA |
| 50 | #define CONFIG_CMD_MMC | 50 | #define CONFIG_CMD_MMC |
| 51 | 51 | ||
| 52 | #undef CONFIG_USB_MAX_CONTROLLER_COUNT | 52 | #undef CONFIG_USB_MAX_CONTROLLER_COUNT |
| 53 | #define CONFIG_USB_MAX_CONTROLLER_COUNT 1 | 53 | #define CONFIG_USB_MAX_CONTROLLER_COUNT 1 |
| 54 | 54 | ||
| 55 | #define VIDEO_IO_OFFSET 0 | 55 | #define VIDEO_IO_OFFSET 0 |
| 56 | #define CONFIG_X86EMU_RAW_IO | 56 | #define CONFIG_X86EMU_RAW_IO |
| 57 | #define CONFIG_VGA_AS_SINGLE_DEVICE | 57 | #define CONFIG_VGA_AS_SINGLE_DEVICE |
| 58 | 58 | ||
| 59 | #define CONFIG_FIT_SIGNATURE | 59 | #define CONFIG_FIT_SIGNATURE |
| 60 | #define CONFIG_RSA | 60 | #define CONFIG_RSA |
| 61 | 61 | ||
| 62 | /* Avoid a warning in the Realtek Ethernet driver */ | 62 | /* Avoid a warning in the Realtek Ethernet driver */ |
| 63 | #define CONFIG_SYS_CACHELINE_SIZE 16 | 63 | #define CONFIG_SYS_CACHELINE_SIZE 16 |
| 64 | 64 | ||
| 65 | /* Environment in SPI flash is unsupported for now */ | 65 | #define CONFIG_ENV_SECT_SIZE 0x1000 |
| 66 | #undef CONFIG_ENV_IS_IN_SPI_FLASH | 66 | #define CONFIG_ENV_OFFSET 0x007fe000 |
| 67 | #define CONFIG_ENV_IS_NOWHERE | ||
| 68 | 67 | ||
| 69 | #endif /* __CONFIG_H */ | 68 | #endif /* __CONFIG_H */ |
| 70 | 69 |