Skip to content

Commit 5302e1f

Browse files
chintingkuobroonie
authored andcommitted
spi: aspeed: Fix typo in mode_bits field for AST2600 platform
Both quad SPI TX and RX modes can be supported on AST2600. Correct typo in mode_bits field in both ast2600_fmc_data and ast2600_spi_data structs. Signed-off-by: Chin-Ting Kuo <[email protected]> Reviewed-by: Cédric Le Goater <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent b25fe93 commit 5302e1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/spi/spi-aspeed-smc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,7 @@ static const struct aspeed_spi_data ast2500_spi_data = {
11631163
static const struct aspeed_spi_data ast2600_fmc_data = {
11641164
.max_cs = 3,
11651165
.hastype = false,
1166-
.mode_bits = SPI_RX_QUAD | SPI_RX_QUAD,
1166+
.mode_bits = SPI_RX_QUAD | SPI_TX_QUAD,
11671167
.we0 = 16,
11681168
.ctl0 = CE0_CTRL_REG,
11691169
.timing = CE0_TIMING_COMPENSATION_REG,
@@ -1178,7 +1178,7 @@ static const struct aspeed_spi_data ast2600_fmc_data = {
11781178
static const struct aspeed_spi_data ast2600_spi_data = {
11791179
.max_cs = 2,
11801180
.hastype = false,
1181-
.mode_bits = SPI_RX_QUAD | SPI_RX_QUAD,
1181+
.mode_bits = SPI_RX_QUAD | SPI_TX_QUAD,
11821182
.we0 = 16,
11831183
.ctl0 = CE0_CTRL_REG,
11841184
.timing = CE0_TIMING_COMPENSATION_REG,

0 commit comments

Comments
 (0)