From fd4853be5157247bb73fc22b9d4f8300228fe6ce Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Thu, 16 Oct 2014 11:20:15 -0700 Subject: [PATCH] bg4cd: provide support for the SPI_WRAPPER configuration mode The SOC code should include the SPI controller driver when configured. With the upcoming configuration change media.c is not needed anymore. BRANCH=none BUG=chrome-os-partner:32631 TEST=the driver compiles when the upcoming patches are applied Change-Id: If7e12e2fb04e63c36d9696d13e08397b91a77a8c Signed-off-by: Vadim Bendebury Reviewed-on: https://chromium-review.googlesource.com/223750 Reviewed-by: Aaron Durbin --- src/soc/marvell/bg4cd/Makefile.inc | 8 ++++---- src/soc/marvell/bg4cd/media.c | 25 ------------------------- 2 files changed, 4 insertions(+), 29 deletions(-) delete mode 100644 src/soc/marvell/bg4cd/media.c diff --git a/src/soc/marvell/bg4cd/Makefile.inc b/src/soc/marvell/bg4cd/Makefile.inc index 7367c3dd17..0271fc75d5 100644 --- a/src/soc/marvell/bg4cd/Makefile.inc +++ b/src/soc/marvell/bg4cd/Makefile.inc @@ -20,26 +20,26 @@ bootblock-y += bootblock.c bootblock-y += cbmem.c bootblock-y += i2c.c -bootblock-y += media.c bootblock-y += monotonic_timer.c +bootblock-$(CONFIG_SPI_FLASH) += spi.c bootblock-$(CONFIG_CONSOLE_SERIAL) += uart.c verstage-y += i2c.c -verstage-y += media.c verstage-y += monotonic_timer.c +verstage-$(CONFIG_SPI_FLASH) += spi.c verstage-$(CONFIG_CONSOLE_SERIAL) += uart.c romstage-y += cbmem.c romstage-y += i2c.c -romstage-y += media.c romstage-y += monotonic_timer.c romstage-y += sdram.c +romstage-$(CONFIG_SPI_FLASH) += spi.c romstage-$(CONFIG_CONSOLE_SERIAL) += uart.c ramstage-y += cbmem.c ramstage-y += i2c.c -ramstage-y += media.c ramstage-y += monotonic_timer.c +ramstage-$(CONFIG_SPI_FLASH) += spi.c ramstage-$(CONFIG_CONSOLE_SERIAL) += uart.c $(objcbfs)/bootblock.raw.elf: $(objcbfs)/bootblock.elf diff --git a/src/soc/marvell/bg4cd/media.c b/src/soc/marvell/bg4cd/media.c deleted file mode 100644 index 5a4dc5f56f..0000000000 --- a/src/soc/marvell/bg4cd/media.c +++ /dev/null @@ -1,25 +0,0 @@ -/* - * This file is part of the coreboot project. - * - * Copyright 2014 Google Inc. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include - -int init_default_cbfs_media(struct cbfs_media *media) -{ - return 0; -}