Furquan Shaikh has uploaded a new change for review. ( https://review.coreboot.org/19781 )
Change subject: drivers/spi/spi-generic: Make spi_setup_slave strong symbol
......................................................................
drivers/spi/spi-generic: Make spi_setup_slave strong symbol
Now that all platforms are updated to provide spi bus map, there is no
need to keep the spi_setup_slave as a weak symbol.
BUG=b:38430839
Change-Id: I59b9bbb5303dad7ce062958a0ab8dee49a4ec1e0
Signed-off-by: Furquan Shaikh <furquan(a)chromium.org>
---
M src/drivers/spi/spi-generic.c
1 file changed, 1 insertion(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/81/19781/1
diff --git a/src/drivers/spi/spi-generic.c b/src/drivers/spi/spi-generic.c
index 579ceb1..252f371 100644
--- a/src/drivers/spi/spi-generic.c
+++ b/src/drivers/spi/spi-generic.c
@@ -115,8 +115,7 @@
const struct spi_ctrlr_buses spi_ctrlr_bus_map[0] __attribute__((weak));
const size_t spi_ctrlr_bus_map_count __attribute__((weak));
-int __attribute__((weak)) spi_setup_slave(unsigned int bus, unsigned int cs,
- struct spi_slave *slave)
+int spi_setup_slave(unsigned int bus, unsigned int cs, struct spi_slave *slave)
{
size_t i;
--
To view, visit https://review.coreboot.org/19781
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I59b9bbb5303dad7ce062958a0ab8dee49a4ec1e0
Gerrit-PatchSet: 1
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Owner: Furquan Shaikh <furquan(a)google.com>
Furquan Shaikh has uploaded a new change for review. ( https://review.coreboot.org/19775 )
Change subject: soc/marvell/bg4cd: Get rid of spi.c
......................................................................
soc/marvell/bg4cd: Get rid of spi.c
spi driver in marvell bg4cd is dummy. Get rid of this driver.
BUG=b:38430839
Change-Id: I53f0782fc8bd75ec569b74e4b199df5af481443d
Signed-off-by: Furquan Shaikh <furquan(a)chromium.org>
---
M src/soc/marvell/bg4cd/Makefile.inc
D src/soc/marvell/bg4cd/spi.c
2 files changed, 0 insertions(+), 25 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/75/19775/1
diff --git a/src/soc/marvell/bg4cd/Makefile.inc b/src/soc/marvell/bg4cd/Makefile.inc
index 86aa764..2b5f940 100644
--- a/src/soc/marvell/bg4cd/Makefile.inc
+++ b/src/soc/marvell/bg4cd/Makefile.inc
@@ -21,23 +21,19 @@
bootblock-y += cbmem.c
bootblock-y += i2c.c
bootblock-y += monotonic_timer.c
-bootblock-$(CONFIG_SPI_FLASH) += spi.c
verstage-y += i2c.c
verstage-y += monotonic_timer.c
-verstage-$(CONFIG_SPI_FLASH) += spi.c
romstage-y += romstage.S
romstage-y += cbmem.c
romstage-y += i2c.c
romstage-y += monotonic_timer.c
romstage-y += sdram.c
-romstage-$(CONFIG_SPI_FLASH) += spi.c
ramstage-y += cbmem.c
ramstage-y += i2c.c
ramstage-y += monotonic_timer.c
-ramstage-$(CONFIG_SPI_FLASH) += spi.c
CPPFLAGS_common += -Isrc/soc/marvell/bg4cd/include/
diff --git a/src/soc/marvell/bg4cd/spi.c b/src/soc/marvell/bg4cd/spi.c
deleted file mode 100644
index 188a6bd..0000000
--- a/src/soc/marvell/bg4cd/spi.c
+++ /dev/null
@@ -1,21 +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.
- */
-
-#include <stddef.h>
-#include <spi-generic.h>
-
-int spi_setup_slave(unsigned int bus, unsigned int cs, struct spi_slave *slave)
-{
- return -1;
-}
--
To view, visit https://review.coreboot.org/19775
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I53f0782fc8bd75ec569b74e4b199df5af481443d
Gerrit-PatchSet: 1
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Owner: Furquan Shaikh <furquan(a)google.com>