diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2017-07-06 10:33:25 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-07-08 15:56:03 -0400 |
commit | f88c431b8a264872e9391e039541792a13a5076a (patch) | |
tree | 1a7a68402404e2f886aacc80a980ef4131412c1e | |
parent | fad51ac3af429d5b5b6f6ad4d924ee00e1525db1 (diff) | |
download | u-boot-f88c431b8a264872e9391e039541792a13a5076a.tar.gz |
powerpc, 8xx: move SPI driver to drivers/spi/
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
-rw-r--r-- | arch/powerpc/cpu/mpc8xx/Makefile | 1 | ||||
-rw-r--r-- | drivers/spi/Kconfig | 6 | ||||
-rw-r--r-- | drivers/spi/Makefile | 1 | ||||
-rw-r--r-- | drivers/spi/mpc8xx_spi.c (renamed from arch/powerpc/cpu/mpc8xx/spi.c) | 3 |
4 files changed, 7 insertions, 4 deletions
diff --git a/arch/powerpc/cpu/mpc8xx/Makefile b/arch/powerpc/cpu/mpc8xx/Makefile index f67c3f8463..173cf01869 100644 --- a/arch/powerpc/cpu/mpc8xx/Makefile +++ b/arch/powerpc/cpu/mpc8xx/Makefile @@ -15,4 +15,3 @@ obj-y += interrupts.o obj-$(CONFIG_CMD_REGINFO) += reginfo.o obj-y += serial.o obj-y += speed.o -obj-y += spi.o diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index fe01c737d7..8a8e8e480f 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -223,4 +223,10 @@ config TI_QSPI Enable the TI Quad-SPI (QSPI) driver for DRA7xx and AM43xx evms. This driver support spi flash single, quad and memory reads. +config MPC8XX_SPI + bool "MPC8XX SPI Driver" + depends on 8xx + help + Enable support for SPI on MPC8XX + endmenu # menu "SPI Support" diff --git a/drivers/spi/Makefile b/drivers/spi/Makefile index c090562c77..9f8b86de76 100644 --- a/drivers/spi/Makefile +++ b/drivers/spi/Makefile @@ -30,6 +30,7 @@ obj-$(CONFIG_FSL_QSPI) += fsl_qspi.o obj-$(CONFIG_ICH_SPI) += ich.o obj-$(CONFIG_KIRKWOOD_SPI) += kirkwood_spi.o obj-$(CONFIG_LPC32XX_SSP) += lpc32xx_ssp.o +obj-$(CONFIG_MPC8XX_SPI) += mpc8xx_spi.o obj-$(CONFIG_MPC8XXX_SPI) += mpc8xxx_spi.o obj-$(CONFIG_MVEBU_A3700_SPI) += mvebu_a3700_spi.o obj-$(CONFIG_MXC_SPI) += mxc_spi.o diff --git a/arch/powerpc/cpu/mpc8xx/spi.c b/drivers/spi/mpc8xx_spi.c index 6e3e86fb0f..b5bd558526 100644 --- a/arch/powerpc/cpu/mpc8xx/spi.c +++ b/drivers/spi/mpc8xx_spi.c @@ -25,8 +25,6 @@ #include <post.h> #include <serial.h> -#ifdef CONFIG_SPI - #define SPI_EEPROM_WREN 0x06 #define SPI_EEPROM_RDSR 0x05 #define SPI_EEPROM_READ 0x03 @@ -336,4 +334,3 @@ ssize_t spi_xfer(size_t count) return count; } -#endif /* CONFIG_SPI */ |