Thread (17 messages) 17 messages, 4 authors, 2020-07-14

Re: [PATCH v3 4/8] mux: sparx5: Add Sparx5 SPI mux driver

From: Lars Povlsen <hidden>
Date: 2020-07-02 11:33:38
Also in: linux-arm-kernel, linux-spi, lkml

Lars Povlsen writes:
The Sparx5 mux driver may be used to control selecting between two
alternate SPI bus segments connected to the SPI controller
(spi-dw-mmio).

Signed-off-by: Lars Povlsen <redacted>
---
 drivers/mux/Makefile     |   2 +
 drivers/mux/sparx5-spi.c | 138 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 140 insertions(+)
 create mode 100644 drivers/mux/sparx5-spi.c
...
+
+#define SPARX5_MAX_CS	16
+
+struct mux_sparx5 {
+	struct regmap *syscon;
+	u8 bus[SPARX5_MAX_CS];
+	int cur_bus;
+};
Yeah, "cur_bus" is a leftover. I'll remove it.

-- 
Lars Povlsen,
Microchip
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help