Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f9f1b074 authored by Ashish Kori's avatar Ashish Kori
Browse files

platform: qcom-geni-se: Correct macro definition of GENI_IO_MUX_1_EN



Correct macro definition of GENI_IO_MUX_1_EN to support SPI slave
full-duplex mode for MISO<->MOSI connection. Without this SPI
Slave full-duplex mode won't work.

In 'commit 005c3a05 ("spi: spi-geni-qcom: Allow MISO<->MOSI
connectivity for slave pins")'  GENI_IO_MUX_1_EN is configured
as 4 that should be 2 to configure SPI Slave MOSI line correctly
to support SPI Slave full-duplex mode.

Default SPI slave and master connection is MISO<->MISO and MOSI<->MOSI
line. This is a FIX for SPI Slave in which SPI slave MISO line is connected
to MOSI and vice versa.


Change-Id: I6d5bd2b3e7252ad272d88352a52dc005e4368af1
Signed-off-by: default avatarAshish Kori <akori@codeaurora.org>
parent 3eb9c77d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -182,7 +182,7 @@ struct se_geni_rsc {
/* GENI_OUTPUT_CTRL fields */
#define DEFAULT_IO_OUTPUT_CTRL_MSK	(GENMASK(6, 0))
#define GENI_IO_MUX_0_EN			BIT(0)
#define GENI_IO_MUX_1_EN			BIT(2)
#define GENI_IO_MUX_1_EN			BIT(1)

/* GENI_CFG_REG80 fields */
#define IO1_SEL_TX			BIT(2)