summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/chromebook-x86/coreboot/Makefile1
-rw-r--r--board/chromebook-x86/coreboot/flash.c31
-rw-r--r--include/configs/coreboot.h2
3 files changed, 2 insertions, 32 deletions
diff --git a/board/chromebook-x86/coreboot/Makefile b/board/chromebook-x86/coreboot/Makefile
index f78d94fa5a2..635f69d3aec 100644
--- a/board/chromebook-x86/coreboot/Makefile
+++ b/board/chromebook-x86/coreboot/Makefile
@@ -34,7 +34,6 @@ LIB = $(obj)lib$(BOARD).o
COBJS-y += coreboot.o
COBJS-$(CONFIG_PCI) += coreboot_pci.o
-COBJS-y += flash.o
SOBJS-y += coreboot_start16.o
SOBJS-y += coreboot_start.o
diff --git a/board/chromebook-x86/coreboot/flash.c b/board/chromebook-x86/coreboot/flash.c
deleted file mode 100644
index 9c8da61a09e..00000000000
--- a/board/chromebook-x86/coreboot/flash.c
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- *
- * Alternatively, this software may be distributed under the terms of the
- * GNU General Public License ("GPL") version 2 as published by the Free
- * Software Foundation.
- */
-
-#include <common.h>
-#include <config.h>
-#include <flash.h>
-
-#ifndef CONFIG_SYS_NO_FLASH
-
-flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
-
-unsigned long flash_init(void)
-{
- printf("flash_init used but not implemented.\n");
- return 0;
-}
-
-int write_buff(flash_info_t *info, uchar *src, ulong addr, ulong cnt)
-{
- printf("write_buff used but not implemented.\n");
- return 0;
-}
-
-#endif /* !CONFIG_SYS_NO_FLASH */
diff --git a/include/configs/coreboot.h b/include/configs/coreboot.h
index 58bda5562e7..8e5bcb15018 100644
--- a/include/configs/coreboot.h
+++ b/include/configs/coreboot.h
@@ -295,6 +295,8 @@
#define CONFIG_SYS_MAX_FLASH_SECT 1
#define CONFIG_SYS_MAX_FLASH_BANKS 1
+#define CONFIG_SYS_NO_FLASH /* means no NOR flash */
+
/*-----------------------------------------------------------------------
* Environment configuration
*/