|
|
@@ -133,7 +133,7 @@ static inline void dw_spi_debugfs_remove(struct dw_spi *dws)
|
|
|
}
|
|
|
#endif /* CONFIG_DEBUG_FS */
|
|
|
|
|
|
-static void dw_spi_set_cs(struct spi_device *spi, bool enable)
|
|
|
+void dw_spi_set_cs(struct spi_device *spi, bool enable)
|
|
|
{
|
|
|
struct dw_spi *dws = spi_controller_get_devdata(spi->controller);
|
|
|
struct chip_data *chip = spi_get_ctldata(spi);
|
|
|
@@ -145,6 +145,7 @@ static void dw_spi_set_cs(struct spi_device *spi, bool enable)
|
|
|
if (!enable)
|
|
|
dw_writel(dws, DW_SPI_SER, BIT(spi->chip_select));
|
|
|
}
|
|
|
+EXPORT_SYMBOL_GPL(dw_spi_set_cs);
|
|
|
|
|
|
/* Return the max entries we can fill into tx fifo */
|
|
|
static inline u32 tx_max(struct dw_spi *dws)
|