All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] spi: update Makefile and Kconfig to include bbb spi driver
@ 2020-01-20 13:22 Laurentiu-Cristian Duca
  2020-01-21 17:44 ` Jan Kiszka
  0 siblings, 1 reply; 3+ messages in thread
From: Laurentiu-Cristian Duca @ 2020-01-20 13:22 UTC (permalink / raw)
  To: xenomai; +Cc: Laurentiu-Cristian Duca

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

Signed-off-by: Laurentiu-Cristian Duca <laurentiu.duca@gmail.com>
---
 kernel/drivers/spi/Kconfig  | 10 ++++++++++
 kernel/drivers/spi/Makefile |  2 ++
 2 files changed, 12 insertions(+)

diff --git a/kernel/drivers/spi/Kconfig b/kernel/drivers/spi/Kconfig
index c2d47aa6c..b48aaf3f9 100644
--- a/kernel/drivers/spi/Kconfig
+++ b/kernel/drivers/spi/Kconfig
@@ -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"
diff --git a/kernel/drivers/spi/Makefile b/kernel/drivers/spi/Makefile
index 075641f92..889033c4f 100644
--- a/kernel/drivers/spi/Makefile
+++ b/kernel/drivers/spi/Makefile
@@ -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
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] spi: update Makefile and Kconfig to include bbb spi driver
  2020-01-20 13:22 [PATCH] spi: update Makefile and Kconfig to include bbb spi driver Laurentiu-Cristian Duca
@ 2020-01-21 17:44 ` Jan Kiszka
  2020-01-22 17:24   ` Jan Kiszka
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Kiszka @ 2020-01-21 17:44 UTC (permalink / raw)
  To: Laurentiu-Cristian Duca, xenomai

On 20.01.20 14:22, Laurentiu-Cristian Duca via Xenomai wrote:
> Updated SPI Makefile and Kconfig in order to contain the option
> to compile am335x beaglebone black omap4 spi real-time driver.
> 
> Signed-off-by: Laurentiu-Cristian Duca <laurentiu.duca@gmail.com>
> ---
>   kernel/drivers/spi/Kconfig  | 10 ++++++++++
>   kernel/drivers/spi/Makefile |  2 ++
>   2 files changed, 12 insertions(+)
> 
> diff --git a/kernel/drivers/spi/Kconfig b/kernel/drivers/spi/Kconfig
> index c2d47aa6c..b48aaf3f9 100644
> --- a/kernel/drivers/spi/Kconfig
> +++ b/kernel/drivers/spi/Kconfig
> @@ -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"
> diff --git a/kernel/drivers/spi/Makefile b/kernel/drivers/spi/Makefile
> index 075641f92..889033c4f 100644
> --- a/kernel/drivers/spi/Makefile
> +++ b/kernel/drivers/spi/Makefile
> @@ -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

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] spi: update Makefile and Kconfig to include bbb spi driver
  2020-01-21 17:44 ` Jan Kiszka
@ 2020-01-22 17:24   ` Jan Kiszka
  0 siblings, 0 replies; 3+ messages in thread
From: Jan Kiszka @ 2020-01-22 17:24 UTC (permalink / raw)
  To: Laurentiu-Cristian Duca, xenomai

On 21.01.20 18:44, Jan Kiszka via Xenomai wrote:
> On 20.01.20 14:22, Laurentiu-Cristian Duca via Xenomai wrote:
>> Updated SPI Makefile and Kconfig in order to contain the option
>> to compile am335x beaglebone black omap4 spi real-time driver.
>>
>> Signed-off-by: Laurentiu-Cristian Duca <laurentiu.duca@gmail.com>
>> ---
>>   kernel/drivers/spi/Kconfig  | 10 ++++++++++
>>   kernel/drivers/spi/Makefile |  2 ++
>>   2 files changed, 12 insertions(+)
>>
>> diff --git a/kernel/drivers/spi/Kconfig b/kernel/drivers/spi/Kconfig
>> index c2d47aa6c..b48aaf3f9 100644
>> --- a/kernel/drivers/spi/Kconfig
>> +++ b/kernel/drivers/spi/Kconfig
>> @@ -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"
>> diff --git a/kernel/drivers/spi/Makefile b/kernel/drivers/spi/Makefile
>> index 075641f92..889033c4f 100644
>> --- a/kernel/drivers/spi/Makefile
>> +++ b/kernel/drivers/spi/Makefile
>> @@ -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.
> 

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

Jan

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-01-22 17:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-20 13:22 [PATCH] spi: update Makefile and Kconfig to include bbb spi driver Laurentiu-Cristian Duca
2020-01-21 17:44 ` Jan Kiszka
2020-01-22 17:24   ` Jan Kiszka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.