Skip to contentSkip to conversation

spi: update Makefile and Kconfig to include bbb spi driver

PATCH In review Laurentiu-Cristian Duca 2 participants 3 messages Jan 20, 2020 – Jan 22, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spi: update Makefile and Kconfig to include bbb spi driver

Updated SPI Makefile and Kconfig in order to contain the option to compile am335x beaglebone black omap4 spi real-time driver.

---
 kernel/drivers/spi/Kconfig  | 10 ++++++++++
 kernel/drivers/spi/Makefile |  2 ++
 2 files changed, 12 insertions(+)
kernel/drivers/spi/Kconfig +10 -0
index c2d47aa6c..b48aaf3f9 100644
@@ -22,6 +22,16 @@ config XENO_DRIVERS_SPI_SUN6I
 	Enables support for the SPI controller available from
 	Allwinner's A31, H3 SoCs.
 
+config XENO_DRIVERS_SPI_OMAP2_MCSPI_RT
+	tristate "McSPI rt-driver for OMAP"
+	depends on HAS_DMA
+	depends on ARCH_OMAP2PLUS || COMPILE_TEST
+	select XENO_DRIVERS_SPI
+	help
+
+	SPI real-time master controller for OMAP24XX and later Multichannel SPI
+	(McSPI) modules.
+
 config XENO_DRIVERS_SPI_DEBUG
        depends on XENO_DRIVERS_SPI
        bool "Enable SPI core debugging features"
kernel/drivers/spi/Makefile +2 -0
index 075641f92..889033c4f 100644
@@ -7,6 +7,8 @@ xeno_spi-y := spi-master.o spi-device.o
 
 obj-$(CONFIG_XENO_DRIVERS_SPI_BCM2835) += xeno_spi_bcm2835.o
 obj-$(CONFIG_XENO_DRIVERS_SPI_SUN6I) += xeno_spi_sun6i.o
+obj-$(CONFIG_XENO_DRIVERS_SPI_OMAP2_MCSPI_RT) += xeno_spi_omap2_mcspi_rt.o
 
 xeno_spi_bcm2835-y := spi-bcm2835.o
 xeno_spi_sun6i-y := spi-sun6i.o
+xeno_spi_omap2_mcspi_rt-y := spi-omap2-mcspi-rt.o
Signature · 1 line
2.17.1
#1 lore raw
Quoted 36 lines · Laurentiu-Cristian Duca via Xenomai

Updated SPI Makefile and Kconfig in order to contain the option to compile am335x beaglebone black omap4 spi real-time driver.

---
  kernel/drivers/spi/Kconfig  | 10 ++++++++++
  kernel/drivers/spi/Makefile |  2 ++
  2 files changed, 12 insertions(+)
kernel/drivers/spi/Kconfig +10 -0
index c2d47aa6c..b48aaf3f9 100644
@@ -22,6 +22,16 @@ config XENO_DRIVERS_SPI_SUN6I
  	Enables support for the SPI controller available from
  	Allwinner's A31, H3 SoCs.
 
+config XENO_DRIVERS_SPI_OMAP2_MCSPI_RT
+	tristate "McSPI rt-driver for OMAP"
+	depends on HAS_DMA
+	depends on ARCH_OMAP2PLUS || COMPILE_TEST
+	select XENO_DRIVERS_SPI
+	help
+
+	SPI real-time master controller for OMAP24XX and later Multichannel SPI
+	(McSPI) modules.
+
  config XENO_DRIVERS_SPI_DEBUG
         depends on XENO_DRIVERS_SPI
         bool "Enable SPI core debugging features"
kernel/drivers/spi/Makefile +0 -0
index 075641f92..889033c4f 100644

kernel/drivers/spi/Makefile xeno_spi-y := spi-master.o spi-device.o · line 14

Quoted 8 lines
kernel/drivers/spi/Makefile +2 -0
@@ -7,6 +7,8 @@ xeno_spi-y := spi-master.o spi-device.o
 
  obj-$(CONFIG_XENO_DRIVERS_SPI_BCM2835) += xeno_spi_bcm2835.o
  obj-$(CONFIG_XENO_DRIVERS_SPI_SUN6I) += xeno_spi_sun6i.o
+obj-$(CONFIG_XENO_DRIVERS_SPI_OMAP2_MCSPI_RT) += xeno_spi_omap2_mcspi_rt.o
 
  xeno_spi_bcm2835-y := spi-bcm2835.o
  xeno_spi_sun6i-y := spi-sun6i.o
+xeno_spi_omap2_mcspi_rt-y := spi-omap2-mcspi-rt.o

Thanks, applied to next. I've also turned it on in CI build testing - we need to check the build logs if that catches it on ARM builds. If not, we should tune that config further to ensure this.

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux
#2 lore raw
Quoted 38 lines · Jan Kiszka via Xenomai
Quoted 37 lines · Laurentiu-Cristian Duca via Xenomai

Updated SPI Makefile and Kconfig in order to contain the option to compile am335x beaglebone black omap4 spi real-time driver.

---
  kernel/drivers/spi/Kconfig  | 10 ++++++++++
  kernel/drivers/spi/Makefile |  2 ++

  2 files changed, 12 insertions(+)
kernel/drivers/spi/Kconfig +0 -0
index c2d47aa6c..b48aaf3f9 100644
@@ -22,6 +22,16 @@ config XENO_DRIVERS_SPI_SUN6I

      Enables support for the SPI controller available from Allwinner's A31, H3 SoCs.

kernel/drivers/spi/Kconfig +8 -0
+config XENO_DRIVERS_SPI_OMAP2_MCSPI_RT
+    tristate "McSPI rt-driver for OMAP"
+    depends on HAS_DMA
+    depends on ARCH_OMAP2PLUS || COMPILE_TEST
+    select XENO_DRIVERS_SPI
+    help
+
+    SPI real-time master controller for OMAP24XX and later 

Multichannel SPI
+    (McSPI) modules.
+
  config XENO_DRIVERS_SPI_DEBUG
         depends on XENO_DRIVERS_SPI
         bool "Enable SPI core debugging features"

kernel/drivers/spi/Makefile +0 -0
index 075641f92..889033c4f 100644
@@ -7,6 +7,8 @@ xeno_spi-y := spi-master.o spi-device.o

  obj-$(CONFIG_XENO_DRIVERS_SPI_BCM2835) += xeno_spi_bcm2835.o obj-$(CONFIG_XENO_DRIVERS_SPI_SUN6I) += xeno_spi_sun6i.o

Quoted 9 lines
Quoted 6 lines

+obj-$(CONFIG_XENO_DRIVERS_SPI_OMAP2_MCSPI_RT) += xeno_spi_omap2_mcspi_rt.o xeno_spi_bcm2835-y := spi-bcm2835.o xeno_spi_sun6i-y := spi-sun6i.o +xeno_spi_omap2_mcspi_rt-y := spi-omap2-mcspi-rt.o

Thanks, applied to next. I've also turned it on in CI build testing - we need to check the build logs if that catches it on ARM builds. If not, we should tune that config further to ensure this.

From the build log at [1], it seems this worked.

Jan

[1] https://travis-ci.com/xenomai-ci/xenomai/jobs/278036896