浏览代码

spi: fsl-espi: separate fsl-espi from fsl-lib completely

After having removed all code dependencies we can make fsl-espi
completely independent of fsl-lib now.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Heiner Kallweit 8 年之前
父节点
当前提交
278c48d2ab
共有 3 个文件被更改,包括 0 次插入10 次删除
  1. 0 1
      drivers/spi/Kconfig
  2. 0 2
      drivers/spi/spi-fsl-espi.c
  3. 0 7
      drivers/spi/spi-fsl-lib.h

+ 0 - 1
drivers/spi/Kconfig

@@ -373,7 +373,6 @@ config SPI_FSL_DSPI
 config SPI_FSL_ESPI
 config SPI_FSL_ESPI
 	tristate "Freescale eSPI controller"
 	tristate "Freescale eSPI controller"
 	depends on FSL_SOC
 	depends on FSL_SOC
-	select SPI_FSL_LIB
 	help
 	help
 	  This enables using the Freescale eSPI controllers in master mode.
 	  This enables using the Freescale eSPI controllers in master mode.
 	  From MPC8536, 85xx platform uses the controller, and all P10xx,
 	  From MPC8536, 85xx platform uses the controller, and all P10xx,

+ 0 - 2
drivers/spi/spi-fsl-espi.c

@@ -23,8 +23,6 @@
 #include <linux/pm_runtime.h>
 #include <linux/pm_runtime.h>
 #include <sysdev/fsl_soc.h>
 #include <sysdev/fsl_soc.h>
 
 
-#include "spi-fsl-lib.h"
-
 /* eSPI Controller registers */
 /* eSPI Controller registers */
 #define ESPI_SPMODE	0x00	/* eSPI mode register */
 #define ESPI_SPMODE	0x00	/* eSPI mode register */
 #define ESPI_SPIE	0x04	/* eSPI event register */
 #define ESPI_SPIE	0x04	/* eSPI event register */

+ 0 - 7
drivers/spi/spi-fsl-lib.h

@@ -28,13 +28,6 @@ struct mpc8xxx_spi {
 	/* rx & tx bufs from the spi_transfer */
 	/* rx & tx bufs from the spi_transfer */
 	const void *tx;
 	const void *tx;
 	void *rx;
 	void *rx;
-#if IS_ENABLED(CONFIG_SPI_FSL_ESPI)
-	unsigned int rx_len;
-	unsigned int tx_len;
-	unsigned int rxskip;
-	u8 *local_buf;
-	spinlock_t lock;
-#endif
 
 
 	int subblock;
 	int subblock;
 	struct spi_pram __iomem *pram;
 	struct spi_pram __iomem *pram;