* [PATCH 0/4] spi: Various Kconfig fixes
@ 2024-04-27 5:40 John Watts
2024-04-27 5:40 ` [PATCH 1/4] spi: Kconfig: Add some required arch depends for drivers John Watts
` (4 more replies)
0 siblings, 5 replies; 7+ messages in thread
From: John Watts @ 2024-04-27 5:40 UTC (permalink / raw)
To: Jagan Teki, Tom Rini, Ryder Lee, Weijie Gao, Chunfeng Yun,
GSS_MTK_Uboot_upstream, Alex Nemirovsky
Cc: u-boot, John Watts
I'm doing some SPI work so I tried to compile all the drivers on my
sunxi board to try and avoid some regressions. This failed, so here are
some fixes for this.
Signed-off-by: John Watts <contact@jookia.org>
---
John Watts (4):
spi: Kconfig: Add some required arch depends for drivers
spi: mtk_spim: Remove completion.h include
spi: ca_sflash: Add missing dm include
spi: rockchip_sfc: Select BOUNCE_BUFFER
drivers/spi/Kconfig | 17 +++++++++++++++++
drivers/spi/ca_sflash.c | 1 +
drivers/spi/mtk_spim.c | 1 -
3 files changed, 18 insertions(+), 1 deletion(-)
---
base-commit: 174ac987655c888017c82df1883c0c2ea0dc2495
change-id: 20240427-spikconfig-2417bbcf4c14
Best regards,
--
John Watts <contact@jookia.org>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/4] spi: Kconfig: Add some required arch depends for drivers
2024-04-27 5:40 [PATCH 0/4] spi: Various Kconfig fixes John Watts
@ 2024-04-27 5:40 ` John Watts
2024-04-27 5:40 ` [PATCH 2/4] spi: mtk_spim: Remove completion.h include John Watts
` (3 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: John Watts @ 2024-04-27 5:40 UTC (permalink / raw)
To: Jagan Teki, Tom Rini, Ryder Lee, Weijie Gao, Chunfeng Yun,
GSS_MTK_Uboot_upstream, Alex Nemirovsky
Cc: u-boot, John Watts
These dependencies are required for building the drivers and create
compile errors if not enabled.
Signed-off-by: John Watts <contact@jookia.org>
---
drivers/spi/Kconfig | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
index 612434633b..025c81adc9 100644
--- a/drivers/spi/Kconfig
+++ b/drivers/spi/Kconfig
@@ -93,6 +93,7 @@ config ATMEL_QSPI
config ATMEL_SPI
bool "Atmel SPI driver"
+ depends on ARCH_AT91
default y if ARCH_AT91
help
This enables driver for the Atmel SPI Controller, present on
@@ -126,6 +127,7 @@ config BCM63XX_SPI
config BCMSTB_SPI
bool "BCMSTB SPI driver"
+ depends on ARCH_BCMSTB
help
Enable the Broadcom set-top box SPI driver. This driver can
be used to access the SPI flash on platforms embedding this
@@ -164,6 +166,7 @@ config CADENCE_OSPI_VERSAL
config CF_SPI
bool "ColdFire SPI driver"
+ depends on M68K
help
Enable the ColdFire SPI driver. This driver can be used on
some m68k SoCs.
@@ -183,6 +186,7 @@ config DESIGNWARE_SPI
config EXYNOS_SPI
bool "Samsung Exynos SPI driver"
+ depends on ARCH_EXYNOS
help
Enable the Samsung Exynos SPI driver. This driver can be used to
access the SPI NOR flash on platforms embedding this Samsung
@@ -190,6 +194,7 @@ config EXYNOS_SPI
config FSL_DSPI
bool "Freescale DSPI driver"
+ depends on FSL_LAYERSCAPE || ARCH_VF610 || ARCH_LS1021A || ARCH_LS1028A
help
Enable the Freescale DSPI driver. This driver can be used to
access the SPI NOR flash and SPI Data flash on platforms embedding
@@ -220,6 +225,7 @@ config GXP_SPI
config ICH_SPI
bool "Intel ICH SPI driver"
+ depends on X86
help
Enable the Intel ICH SPI driver. This driver can be used to
access the SPI NOR flash on platforms embedding this Intel
@@ -233,6 +239,7 @@ config IPROC_QSPI
config KIRKWOOD_SPI
bool "Marvell Kirkwood SPI Driver"
+ depends on ARCH_KIRKWOOD
help
Enable support for SPI on various Marvell SoCs, such as
Kirkwood and Armada 375.
@@ -268,6 +275,7 @@ config MPC8XX_SPI
config MPC8XXX_SPI
bool "MPC8XXX SPI Driver"
+ depends on MPC83xx || MPC85xx
help
Enable support for SPI on the MPC8XXX PowerPC SoCs.
@@ -327,6 +335,7 @@ config MVEBU_A3700_SPI
config MXS_SPI
bool "MXS SPI Driver"
+ depends on MACH_IMX
help
Enable the MXS SPI controller driver. This driver can be used
on the i.MX23 and i.MX28 SoCs.
@@ -512,6 +521,7 @@ config STM32_SPI
config TEGRA114_SPI
bool "nVidia Tegra114 SPI driver"
+ depends on ARCH_TEGRA
help
Enable the nVidia Tegra114 SPI driver. This driver can be used to
access the SPI NOR flash on platforms embedding this nVidia Tegra114
@@ -522,6 +532,7 @@ config TEGRA114_SPI
config TEGRA20_SFLASH
bool "nVidia Tegra20 Serial Flash controller driver"
+ depends on ARCH_TEGRA
help
Enable the nVidia Tegra20 Serial Flash controller driver. This driver
can be used to access the SPI NOR flash on platforms embedding this
@@ -529,6 +540,7 @@ config TEGRA20_SFLASH
config TEGRA20_SLINK
bool "nVidia Tegra20/Tegra30 SLINK driver"
+ depends on ARCH_TEGRA
help
Enable the nVidia Tegra20/Tegra30 SLINK driver. This driver can
be used to access the SPI NOR flash on platforms embedding this
@@ -536,6 +548,7 @@ config TEGRA20_SLINK
config TEGRA210_QSPI
bool "nVidia Tegra210 QSPI driver"
+ depends on ARCH_TEGRA
help
Enable the Tegra Quad-SPI (QSPI) driver for T210. This driver
be used to access SPI chips on platforms embedding this
@@ -544,6 +557,7 @@ config TEGRA210_QSPI
config TI_QSPI
bool "TI QSPI driver"
imply TI_EDMA3
+ depends on ARCH_OMAP2PLUS
help
Enable the TI Quad-SPI (QSPI) driver for DRA7xx and AM43xx evms.
This driver support spi flash single, quad and memory reads.
@@ -599,12 +613,14 @@ config FSL_ESPI
config SH_QSPI
bool "Renesas Quad SPI driver"
+ depends on ARCH_RENESAS
help
Enable the Renesas Quad SPI controller driver. This driver can be
used on Renesas SoCs.
config MXC_SPI
bool "MXC SPI Driver"
+ depends on MACH_IMX
help
Enable the MXC SPI controller driver. This driver can be used
on various i.MX SoCs such as i.MX31/35/51/6/7.
--
2.44.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/4] spi: mtk_spim: Remove completion.h include
2024-04-27 5:40 [PATCH 0/4] spi: Various Kconfig fixes John Watts
2024-04-27 5:40 ` [PATCH 1/4] spi: Kconfig: Add some required arch depends for drivers John Watts
@ 2024-04-27 5:40 ` John Watts
2024-04-27 5:40 ` [PATCH 3/4] spi: ca_sflash: Add missing dm include John Watts
` (2 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: John Watts @ 2024-04-27 5:40 UTC (permalink / raw)
To: Jagan Teki, Tom Rini, Ryder Lee, Weijie Gao, Chunfeng Yun,
GSS_MTK_Uboot_upstream, Alex Nemirovsky
Cc: u-boot, John Watts
This created a conflict when linking.
Signed-off-by: John Watts <contact@jookia.org>
---
drivers/spi/mtk_spim.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/spi/mtk_spim.c b/drivers/spi/mtk_spim.c
index 90f4c3cecb..2979487fff 100644
--- a/drivers/spi/mtk_spim.c
+++ b/drivers/spi/mtk_spim.c
@@ -18,7 +18,6 @@
#include <dm/devres.h>
#include <dm/pinctrl.h>
#include <linux/bitops.h>
-#include <linux/completion.h>
#include <linux/dma-mapping.h>
#include <linux/io.h>
#include <linux/iopoll.h>
--
2.44.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 3/4] spi: ca_sflash: Add missing dm include
2024-04-27 5:40 [PATCH 0/4] spi: Various Kconfig fixes John Watts
2024-04-27 5:40 ` [PATCH 1/4] spi: Kconfig: Add some required arch depends for drivers John Watts
2024-04-27 5:40 ` [PATCH 2/4] spi: mtk_spim: Remove completion.h include John Watts
@ 2024-04-27 5:40 ` John Watts
2024-04-27 5:40 ` [PATCH 4/4] spi: rockchip_sfc: Select BOUNCE_BUFFER John Watts
2024-10-09 22:58 ` [PATCH 0/4] spi: Various Kconfig fixes Tom Rini
4 siblings, 0 replies; 7+ messages in thread
From: John Watts @ 2024-04-27 5:40 UTC (permalink / raw)
To: Jagan Teki, Tom Rini, Ryder Lee, Weijie Gao, Chunfeng Yun,
GSS_MTK_Uboot_upstream, Alex Nemirovsky
Cc: u-boot, John Watts
This code uses dev_err which is defined in dm/device_compat.h
Signed-off-by: John Watts <contact@jookia.org>
---
drivers/spi/ca_sflash.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/spi/ca_sflash.c b/drivers/spi/ca_sflash.c
index 38bddd3861..78e442cac9 100644
--- a/drivers/spi/ca_sflash.c
+++ b/drivers/spi/ca_sflash.c
@@ -11,6 +11,7 @@
#include <malloc.h>
#include <clk.h>
#include <dm.h>
+#include <dm/device_compat.h>
#include <errno.h>
#include <fdtdec.h>
#include <linux/compat.h>
--
2.44.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 4/4] spi: rockchip_sfc: Select BOUNCE_BUFFER
2024-04-27 5:40 [PATCH 0/4] spi: Various Kconfig fixes John Watts
` (2 preceding siblings ...)
2024-04-27 5:40 ` [PATCH 3/4] spi: ca_sflash: Add missing dm include John Watts
@ 2024-04-27 5:40 ` John Watts
2024-10-09 22:58 ` [PATCH 0/4] spi: Various Kconfig fixes Tom Rini
4 siblings, 0 replies; 7+ messages in thread
From: John Watts @ 2024-04-27 5:40 UTC (permalink / raw)
To: Jagan Teki, Tom Rini, Ryder Lee, Weijie Gao, Chunfeng Yun,
GSS_MTK_Uboot_upstream, Alex Nemirovsky
Cc: u-boot, John Watts
This is required for compiling.
Signed-off-by: John Watts <contact@jookia.org>
---
drivers/spi/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
index 025c81adc9..f1c6a838ae 100644
--- a/drivers/spi/Kconfig
+++ b/drivers/spi/Kconfig
@@ -417,6 +417,7 @@ config RENESAS_RPC_SPI
config ROCKCHIP_SFC
bool "Rockchip SFC Driver"
+ select BOUNCE_BUFFER
help
Enable the Rockchip SFC Driver for SPI NOR flash. This device is
a limited purpose SPI controller for driving NOR flash on certain
--
2.44.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 0/4] spi: Various Kconfig fixes
2024-04-27 5:40 [PATCH 0/4] spi: Various Kconfig fixes John Watts
` (3 preceding siblings ...)
2024-04-27 5:40 ` [PATCH 4/4] spi: rockchip_sfc: Select BOUNCE_BUFFER John Watts
@ 2024-10-09 22:58 ` Tom Rini
2024-10-10 4:25 ` John Watts
4 siblings, 1 reply; 7+ messages in thread
From: Tom Rini @ 2024-10-09 22:58 UTC (permalink / raw)
To: Jagan Teki, Ryder Lee, Weijie Gao, Chunfeng Yun,
GSS_MTK_Uboot_upstream, Alex Nemirovsky, John Watts
Cc: u-boot
On Sat, 27 Apr 2024 15:40:39 +1000, John Watts wrote:
> I'm doing some SPI work so I tried to compile all the drivers on my
> sunxi board to try and avoid some regressions. This failed, so here are
> some fixes for this.
>
>
Applied to u-boot/master, thanks!
--
Tom
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/4] spi: Various Kconfig fixes
2024-10-09 22:58 ` [PATCH 0/4] spi: Various Kconfig fixes Tom Rini
@ 2024-10-10 4:25 ` John Watts
0 siblings, 0 replies; 7+ messages in thread
From: John Watts @ 2024-10-10 4:25 UTC (permalink / raw)
To: Tom Rini
Cc: Jagan Teki, Ryder Lee, Weijie Gao, Chunfeng Yun,
GSS_MTK_Uboot_upstream, Alex Nemirovsky, u-boot
On Wed, Oct 09, 2024 at 04:58:15PM -0600, Tom Rini wrote:
> On Sat, 27 Apr 2024 15:40:39 +1000, John Watts wrote:
>
> > I'm doing some SPI work so I tried to compile all the drivers on my
> > sunxi board to try and avoid some regressions. This failed, so here are
> > some fixes for this.
> >
> >
>
> Applied to u-boot/master, thanks!
>
> --
> Tom
>
>
Thanks.
John.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-10-10 4:30 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-27 5:40 [PATCH 0/4] spi: Various Kconfig fixes John Watts
2024-04-27 5:40 ` [PATCH 1/4] spi: Kconfig: Add some required arch depends for drivers John Watts
2024-04-27 5:40 ` [PATCH 2/4] spi: mtk_spim: Remove completion.h include John Watts
2024-04-27 5:40 ` [PATCH 3/4] spi: ca_sflash: Add missing dm include John Watts
2024-04-27 5:40 ` [PATCH 4/4] spi: rockchip_sfc: Select BOUNCE_BUFFER John Watts
2024-10-09 22:58 ` [PATCH 0/4] spi: Various Kconfig fixes Tom Rini
2024-10-10 4:25 ` John Watts
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox