]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
at91: gurnard: Enable DM_SPI
authorJagan Teki <jagan@amarulasolutions.com>
Wed, 14 Mar 2018 13:16:32 +0000 (18:46 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 6 Apr 2018 20:11:09 +0000 (16:11 -0400)
Enable DM_SPI for atmel SPI driver on gurnard board.

Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
arch/arm/mach-at91/Kconfig
board/bluewater/gurnard/gurnard.c

index 6907263539252cf882e2017419040c94a7182b98..d73adf3723f7882d6bb29a0fa2da555d6ef50f9d 100644 (file)
@@ -85,6 +85,7 @@ config TARGET_GURNARD
        select BOARD_LATE_INIT
        select DM
        select DM_SERIAL
+       select DM_SPI
        select DM_GPIO
        select DM_ETH
 
index 8733a9af163b1489eb3a0d1f4e0f03aee1a911d3..d8e92b1196dc990de98a8cb382e5d9647e727116 100644 (file)
@@ -18,7 +18,6 @@
 #ifndef CONFIG_DM_ETH
 #include <netdev.h>
 #endif
-#include <spi.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <asm/mach-types.h>
@@ -415,25 +414,6 @@ void reset_phy(void)
 {
 }
 
-/* SPI chip select control - only used for FPGA programming */
-#ifdef CONFIG_ATMEL_SPI
-
-int spi_cs_is_valid(unsigned int bus, unsigned int cs)
-{
-       return bus == 0 && cs == 0;
-}
-
-void spi_cs_activate(struct spi_slave *slave)
-{
-       /* We don't use chipselects for FPGA programming */
-}
-
-void spi_cs_deactivate(struct spi_slave *slave)
-{
-       /* We don't use chipselects for FPGA programming */
-}
-#endif /* CONFIG_ATMEL_SPI */
-
 static struct atmel_serial_platdata at91sam9260_serial_plat = {
        .base_addr = ATMEL_BASE_DBGU,
 };