U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: William Zhang <william.zhang@broadcom.com>
To: U-Boot Mailing List <u-boot@lists.denx.de>,
	anand.gore@broadcom.com, kursad.oney@broadcom.com,
	noltari@gmail.com, philippe.reynes@softathome.com,
	tomer.yacoby@broadcom.com, dregan@mail.com
Cc: William Zhang <william.zhang@broadcom.com>,
	joel.peshkin@broadcom.com, dan.beygelman@broadcom.com,
	Bharat Gooty <bharat.gooty@broadcom.com>,
	Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
Subject: [PATCH v3 09/10] broadcom: bcmbca: Enable SPI drivers by default
Date: Wed,  7 Jun 2023 16:37:09 -0700	[thread overview]
Message-ID: <20230607233710.3805-10-william.zhang@broadcom.com> (raw)
In-Reply-To: <20230607233710.3805-1-william.zhang@broadcom.com>

[-- Attachment #1: Type: text/plain, Size: 4272 bytes --]

SPI controller is always presented in BCMBCA platform SoCs so enable the
controller driver and SPI core by default.

Signed-off-by: William Zhang <william.zhang@broadcom.com>
---

Changes in v3:
- Move BCMBCA_HSSPI config enabling and its dependent config from new
BCMBCA driver patch to this more relevant patch
- Combine multi-line condition into single line for HAVE_SPI_CS_CTRL

Changes in v2: None

 arch/arm/Kconfig             |  2 ++
 arch/arm/mach-bcmbca/Kconfig | 23 +++++++++++++++++++++++
 2 files changed, 25 insertions(+)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 99264a64780c..c92f6c715861 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -660,6 +660,8 @@ config ARCH_BCMSTB
 config ARCH_BCMBCA
 	bool "Broadcom broadband chip family"
 	select DM
+	select DM_SPI
+	select SPI
 	select OF_CONTROL
 	imply CMD_DM
 
diff --git a/arch/arm/mach-bcmbca/Kconfig b/arch/arm/mach-bcmbca/Kconfig
index 62b371612b6a..e69a71134c8a 100644
--- a/arch/arm/mach-bcmbca/Kconfig
+++ b/arch/arm/mach-bcmbca/Kconfig
@@ -11,6 +11,7 @@ config BCM47622
 	select CPU_V7A
 	select DM_SERIAL
 	select PL01X_SERIAL
+	select BCM63XX_HSSPI
 
 config BCM4908
 	bool "Support for Broadcom 4908 Family"
@@ -18,6 +19,7 @@ config BCM4908
 	select SYS_ARCH_TIMER
 	select DM_SERIAL
 	select BCM6345_SERIAL
+	select BCM63XX_HSSPI
 
 config BCM4912
 	bool "Support for Broadcom 4912 Family"
@@ -25,6 +27,7 @@ config BCM4912
 	select SYS_ARCH_TIMER
 	select DM_SERIAL
 	select PL01X_SERIAL
+	select BCMBCA_HSSPI
 
 config BCM63138
 	bool "Support for Broadcom 63138 Family"
@@ -33,6 +36,7 @@ config BCM63138
 	select CPU_V7A
 	select DM_SERIAL
 	select BCM6345_SERIAL
+	select BCM63XX_HSSPI
 
 config BCM63146
 	bool "Support for Broadcom 63146 Family"
@@ -40,6 +44,7 @@ config BCM63146
 	select SYS_ARCH_TIMER
 	select DM_SERIAL
 	select PL01X_SERIAL
+	select BCM63XX_HSSPI
 
 config BCM63148
 	bool "Support for Broadcom 63148 Family"
@@ -47,6 +52,7 @@ config BCM63148
 	select CPU_V7A
 	select DM_SERIAL
 	select BCM6345_SERIAL
+	select BCM63XX_HSSPI
 
 config BCM63158
 	bool "Support for Broadcom 63158 Family"
@@ -54,6 +60,7 @@ config BCM63158
 	select SYS_ARCH_TIMER
 	select DM_SERIAL
 	select PL01X_SERIAL
+	select BCM63XX_HSSPI
 
 config BCM63178
 	bool "Support for Broadcom 63178 Family"
@@ -61,6 +68,7 @@ config BCM63178
 	select CPU_V7A
 	select DM_SERIAL
 	select PL01X_SERIAL
+	select BCM63XX_HSSPI
 
 config BCM6756
 	bool "Support for Broadcom 6756 Family"
@@ -68,6 +76,7 @@ config BCM6756
 	select CPU_V7A
 	select DM_SERIAL
 	select PL01X_SERIAL
+	select BCMBCA_HSSPI
 
 config BCM6813
 	bool "Support for Broadcom 6813 Family"
@@ -75,6 +84,7 @@ config BCM6813
 	select SYS_ARCH_TIMER
 	select DM_SERIAL
 	select PL01X_SERIAL
+	select BCMBCA_HSSPI
 
 config BCM6846
 	bool "Support for Broadcom 6846 Family"
@@ -82,6 +92,7 @@ config BCM6846
 	select CPU_V7A
 	select DM_SERIAL
 	select BCM6345_SERIAL
+	select BCM63XX_HSSPI
 
 config BCM6855
 	bool "Support for Broadcom 6855 Family"
@@ -89,6 +100,7 @@ config BCM6855
 	select CPU_V7A
 	select DM_SERIAL
 	select PL01X_SERIAL
+	select BCMBCA_HSSPI
 	help
 	  Broadcom BCM6855 is a triple core Cortex A7 based xPON Gateway
 	  SoC. This SoC family includes BCM6855x, BCM68252 and BCM6753.
@@ -99,6 +111,7 @@ config BCM6856
 	select SYS_ARCH_TIMER
 	select DM_SERIAL
 	select BCM6345_SERIAL
+	select BCM63XX_HSSPI
 	help
 	  Broadcom BCM6856 is a dual core Brahma-B53 ARMv8 based xPON Gateway
 	  SoC. This SoC family includes BCM6856, BCM6836 and BCM4910.
@@ -109,6 +122,7 @@ config BCM6858
 	select SYS_ARCH_TIMER
 	select DM_SERIAL
 	select BCM6345_SERIAL
+	select BCM63XX_HSSPI
 	help
 	  Broadcom BCM6858 is a quad core Brahma-B53 ARMv8 based xPON Gateway
 	  SoC. This SoC family includes BCM6858, BCM49508, BCM5504X and BCM6545.
@@ -119,6 +133,15 @@ config BCM6878
 	select CPU_V7A
 	select DM_SERIAL
 	select PL01X_SERIAL
+	select BCM63XX_HSSPI
+
+config HAVE_SPI_CS_CTRL
+	bool "SoC supports SPI chip select control"
+	default y if BCM4912 || BCM6756 || BCM6855 || BCM6813
+	default n
+	help
+	  Enable this option if SoC supports SPI chip select control explicitly
+	  through software.
 
 source "arch/arm/mach-bcmbca/bcm47622/Kconfig"
 source "arch/arm/mach-bcmbca/bcm4908/Kconfig"
-- 
2.37.3


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4212 bytes --]

  parent reply	other threads:[~2023-06-07 23:40 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-07 23:37 [PATCH v3 00/10] spi: bcm63xx-hsspi: driver and doc updates William Zhang
2023-06-07 23:37 ` [PATCH v3 01/10] spi: bcm63xx-hsspi: Make driver depend on BCMBCA arch William Zhang
2023-06-11 10:39   ` Jagan Teki
2023-06-07 23:37 ` [PATCH v3 02/10] spi: bcm63xx-hsspi: Fix multi-bit mode setting William Zhang
2023-06-11 10:40   ` Jagan Teki
2023-06-07 23:37 ` [PATCH v3 03/10] spi: bcm63xx-hsspi: Add new compatible string support William Zhang
2023-06-11 10:41   ` Jagan Teki
2023-06-07 23:37 ` [PATCH v3 04/10] spi: bcm63xx-hsspi: Add prepend mode support William Zhang
2023-06-11 10:42   ` Jagan Teki
2023-06-07 23:37 ` [PATCH v3 05/10] spi: bcmbca-hsspi: Add driver for newer HSSPI controller William Zhang
2023-06-11 10:42   ` Jagan Teki
2023-06-07 23:37 ` [PATCH v3 06/10] dt-bindings: spi: Add bcm63xx-hsspi controller support William Zhang
2023-06-11 10:43   ` Jagan Teki
2023-06-14 19:59     ` William Zhang
2023-06-07 23:37 ` [PATCH v3 07/10] ARM: dts: broadcom: bcmbca: Add spi controller node William Zhang
2023-06-07 23:37 ` [PATCH v3 08/10] arm64: " William Zhang
2023-06-07 23:37 ` William Zhang [this message]
2023-06-07 23:37 ` [PATCH v3 10/10] MAINTAINERS: Add Broadcom Broadband SoC HS SPI drivers William Zhang
2023-08-09  2:02   ` Tom Rini
2023-08-11 23:57     ` William Zhang
2023-08-12  1:00       ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230607233710.3805-10-william.zhang@broadcom.com \
    --to=william.zhang@broadcom.com \
    --cc=anand.gore@broadcom.com \
    --cc=bharat.gooty@broadcom.com \
    --cc=dan.beygelman@broadcom.com \
    --cc=dregan@mail.com \
    --cc=joel.peshkin@broadcom.com \
    --cc=kursad.oney@broadcom.com \
    --cc=noltari@gmail.com \
    --cc=philippe.reynes@softathome.com \
    --cc=rayagonda.kokatanur@broadcom.com \
    --cc=tomer.yacoby@broadcom.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox