Loading drivers/spi/spi-mt65xx.c +6 −9 Original line number Diff line number Diff line Loading @@ -131,8 +131,6 @@ static const struct mtk_spi_compatible mt8183_compat = { * supplies it. */ static const struct mtk_chip_config mtk_default_chip_info = { .rx_mlsb = 1, .tx_mlsb = 1, .cs_pol = 0, .sample_sel = 0, }; Loading Loading @@ -203,14 +201,13 @@ static int mtk_spi_prepare_message(struct spi_master *master, reg_val &= ~SPI_CMD_CPOL; /* set the mlsbx and mlsbtx */ if (chip_config->tx_mlsb) reg_val |= SPI_CMD_TXMSBF; else if (spi->mode & SPI_LSB_FIRST) { reg_val &= ~SPI_CMD_TXMSBF; if (chip_config->rx_mlsb) reg_val |= SPI_CMD_RXMSBF; else reg_val &= ~SPI_CMD_RXMSBF; } else { reg_val |= SPI_CMD_TXMSBF; reg_val |= SPI_CMD_RXMSBF; } /* set the tx/rx endian */ #ifdef __LITTLE_ENDIAN Loading Loading @@ -607,7 +604,7 @@ static int mtk_spi_probe(struct platform_device *pdev) master->auto_runtime_pm = true; master->dev.of_node = pdev->dev.of_node; master->mode_bits = SPI_CPOL | SPI_CPHA; master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST; master->set_cs = mtk_spi_set_cs; master->prepare_message = mtk_spi_prepare_message; Loading include/linux/platform_data/spi-mt65xx.h +0 −2 Original line number Diff line number Diff line Loading @@ -14,8 +14,6 @@ /* Board specific platform_data */ struct mtk_chip_config { u32 tx_mlsb; u32 rx_mlsb; u32 cs_pol; u32 sample_sel; }; Loading Loading
drivers/spi/spi-mt65xx.c +6 −9 Original line number Diff line number Diff line Loading @@ -131,8 +131,6 @@ static const struct mtk_spi_compatible mt8183_compat = { * supplies it. */ static const struct mtk_chip_config mtk_default_chip_info = { .rx_mlsb = 1, .tx_mlsb = 1, .cs_pol = 0, .sample_sel = 0, }; Loading Loading @@ -203,14 +201,13 @@ static int mtk_spi_prepare_message(struct spi_master *master, reg_val &= ~SPI_CMD_CPOL; /* set the mlsbx and mlsbtx */ if (chip_config->tx_mlsb) reg_val |= SPI_CMD_TXMSBF; else if (spi->mode & SPI_LSB_FIRST) { reg_val &= ~SPI_CMD_TXMSBF; if (chip_config->rx_mlsb) reg_val |= SPI_CMD_RXMSBF; else reg_val &= ~SPI_CMD_RXMSBF; } else { reg_val |= SPI_CMD_TXMSBF; reg_val |= SPI_CMD_RXMSBF; } /* set the tx/rx endian */ #ifdef __LITTLE_ENDIAN Loading Loading @@ -607,7 +604,7 @@ static int mtk_spi_probe(struct platform_device *pdev) master->auto_runtime_pm = true; master->dev.of_node = pdev->dev.of_node; master->mode_bits = SPI_CPOL | SPI_CPHA; master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST; master->set_cs = mtk_spi_set_cs; master->prepare_message = mtk_spi_prepare_message; Loading
include/linux/platform_data/spi-mt65xx.h +0 −2 Original line number Diff line number Diff line Loading @@ -14,8 +14,6 @@ /* Board specific platform_data */ struct mtk_chip_config { u32 tx_mlsb; u32 rx_mlsb; u32 cs_pol; u32 sample_sel; }; Loading