All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86: spi: Only use the fast SPI peripheral when support
@ 2020-03-24 13:45 Simon Glass
  2020-03-25  7:25 ` Bin Meng
  2020-04-23  7:36 ` Bin Meng
  0 siblings, 2 replies; 13+ messages in thread
From: Simon Glass @ 2020-03-24 13:45 UTC (permalink / raw)
  To: u-boot

At present we query the memory map on boards which don't support it. Fix
this by only doing it on Apollo Lake.

This fixes booting on chromebook_link.

Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: 92842147c31 ("spi: ich: Add support for get_mmap() method")
---

 drivers/spi/ich.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/spi/ich.c b/drivers/spi/ich.c
index a9d7715a55..9f8af45242 100644
--- a/drivers/spi/ich.c
+++ b/drivers/spi/ich.c
@@ -637,7 +637,10 @@ static int ich_get_mmap(struct udevice *dev, ulong *map_basep, uint *map_sizep,
 			uint *offsetp)
 {
 	struct udevice *bus = dev_get_parent(dev);
+	struct ich_spi_platdata *plat = dev_get_platdata(bus);
 
+	if (plat->ich_version != ICHV_APL)
+		return -ENOENT;
 	return ich_get_mmap_bus(bus, map_basep, map_sizep, offsetp);
 }
 
-- 
2.25.1.696.g5e7596f4ac-goog

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2020-04-23  7:36 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-24 13:45 [PATCH] x86: spi: Only use the fast SPI peripheral when support Simon Glass
2020-03-25  7:25 ` Bin Meng
2020-03-26 16:19   ` Simon Glass
2020-03-26 16:22     ` Bin Meng
2020-03-28 20:04       ` Simon Glass
2020-03-28 20:58       ` Simon Glass
2020-03-30  9:41         ` Bin Meng
2020-03-30 23:56           ` Simon Glass
2020-03-31  9:49             ` Bin Meng
2020-03-31 13:16               ` Simon Glass
2020-04-19 19:14                 ` Simon Glass
2020-04-20 10:01                   ` Bin Meng
2020-04-23  7:36 ` Bin Meng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.