U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Enable MUX_MMIO at SPL stage
@ 2025-03-20  6:30 Anurag Dutta
  2025-03-20  6:30 ` [PATCH 1/3] mux: Kconfig: Add Kconfig options for MUX_MMIO Anurag Dutta
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Anurag Dutta @ 2025-03-20  6:30 UTC (permalink / raw)
  To: trini; +Cc: n-francis, s-vadapalli, vaishnav.a, a-limaye, u-boot, u-kumar1

This series enables MUX_MMIO at SPL stage for j7200 and j721e 
as it is required for successful hyperflash boot.

Test logs :
https://gist.github.com/anuragdutta731/b4c79ef8da56d8c50b38d953c9da4d45

Anurag Dutta (3):
  mux: Kconfig: Add Kconfig options for MUX_MMIO
  configs: j7200_evm_a72_defconfig: Enable MUX_MMIO at SPL
  configs: j721e_evm_a72_defconfig: Enable MUX_MMIO at SPL

 configs/j7200_evm_a72_defconfig |  1 +
 configs/j721e_evm_a72_defconfig |  1 +
 drivers/mux/Kconfig             | 10 ++++++++++
 3 files changed, 12 insertions(+)

-- 
2.34.1


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

* [PATCH 1/3] mux: Kconfig: Add Kconfig options for MUX_MMIO
  2025-03-20  6:30 [PATCH 0/3] Enable MUX_MMIO at SPL stage Anurag Dutta
@ 2025-03-20  6:30 ` Anurag Dutta
  2025-03-20  6:45   ` Neha Malcom Francis
                     ` (2 more replies)
  2025-03-20  6:30 ` [PATCH 2/3] configs: j7200_evm_a72_defconfig: Enable MUX_MMIO at SPL Anurag Dutta
                   ` (2 subsequent siblings)
  3 siblings, 3 replies; 8+ messages in thread
From: Anurag Dutta @ 2025-03-20  6:30 UTC (permalink / raw)
  To: trini; +Cc: n-francis, s-vadapalli, vaishnav.a, a-limaye, u-boot, u-kumar1

Add Kconfig options for MUX_MMIO so that it can be enabled
in SPL stage.

Signed-off-by: Anurag Dutta <a-dutta@ti.com>
---
 drivers/mux/Kconfig | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/drivers/mux/Kconfig b/drivers/mux/Kconfig
index f15ee4f833f..2b95eb02177 100644
--- a/drivers/mux/Kconfig
+++ b/drivers/mux/Kconfig
@@ -10,6 +10,16 @@ config MULTIPLEXER
 
 if MULTIPLEXER
 
+config SPL_MUX_MMIO
+	bool "MMIO register bitfield-controlled Multiplexer"
+        depends on MULTIPLEXER && SYSCON
+        help
+          MMIO register bitfield-controlled Multiplexer controller.
+
+          The driver builds multiplexer controllers for bitfields in a syscon
+          register. For N bit wide bitfields, there will be 2^N possible
+          multiplexer states.
+
 config MUX_MMIO
 	bool "MMIO register bitfield-controlled Multiplexer"
 	depends on MULTIPLEXER && SYSCON
-- 
2.34.1


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

* [PATCH 2/3] configs: j7200_evm_a72_defconfig: Enable MUX_MMIO at SPL
  2025-03-20  6:30 [PATCH 0/3] Enable MUX_MMIO at SPL stage Anurag Dutta
  2025-03-20  6:30 ` [PATCH 1/3] mux: Kconfig: Add Kconfig options for MUX_MMIO Anurag Dutta
@ 2025-03-20  6:30 ` Anurag Dutta
  2025-03-20  6:30 ` [PATCH 3/3] configs: j721e_evm_a72_defconfig: " Anurag Dutta
  2025-04-06 15:38 ` [PATCH 0/3] Enable MUX_MMIO at SPL stage Tom Rini
  3 siblings, 0 replies; 8+ messages in thread
From: Anurag Dutta @ 2025-03-20  6:30 UTC (permalink / raw)
  To: trini; +Cc: n-francis, s-vadapalli, vaishnav.a, a-limaye, u-boot, u-kumar1

MUX_MMIO is required in SPL stage in order to boot hyperflash
successfully. Add configs to enable MUX_MMIO in SPL stage.

Signed-off-by: Anurag Dutta <a-dutta@ti.com>
---
 configs/j7200_evm_a72_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configs/j7200_evm_a72_defconfig b/configs/j7200_evm_a72_defconfig
index 4760f7509f5..b167e2dcdc9 100644
--- a/configs/j7200_evm_a72_defconfig
+++ b/configs/j7200_evm_a72_defconfig
@@ -144,6 +144,7 @@ CONFIG_SPI_FLASH_S28HX_T=y
 CONFIG_SPI_FLASH_MTD=y
 CONFIG_MULTIPLEXER=y
 CONFIG_MUX_MMIO=y
+CONFIG_SPL_MUX_MMIO=y
 CONFIG_PHY_TI_DP83869=y
 CONFIG_PHY_FIXED=y
 CONFIG_TI_AM65_CPSW_NUSS=y
-- 
2.34.1


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

* [PATCH 3/3] configs: j721e_evm_a72_defconfig: Enable MUX_MMIO at SPL
  2025-03-20  6:30 [PATCH 0/3] Enable MUX_MMIO at SPL stage Anurag Dutta
  2025-03-20  6:30 ` [PATCH 1/3] mux: Kconfig: Add Kconfig options for MUX_MMIO Anurag Dutta
  2025-03-20  6:30 ` [PATCH 2/3] configs: j7200_evm_a72_defconfig: Enable MUX_MMIO at SPL Anurag Dutta
@ 2025-03-20  6:30 ` Anurag Dutta
  2025-04-06 15:38 ` [PATCH 0/3] Enable MUX_MMIO at SPL stage Tom Rini
  3 siblings, 0 replies; 8+ messages in thread
From: Anurag Dutta @ 2025-03-20  6:30 UTC (permalink / raw)
  To: trini; +Cc: n-francis, s-vadapalli, vaishnav.a, a-limaye, u-boot, u-kumar1

MUX_MMIO is required in SPL stage in order to boot hyperflash
successfully. Add configs to enable MUX_MMIO in SPL stage.

Signed-off-by: Anurag Dutta <a-dutta@ti.com>
---
 configs/j721e_evm_a72_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configs/j721e_evm_a72_defconfig b/configs/j721e_evm_a72_defconfig
index 71e6c2061b3..6bc716650cf 100644
--- a/configs/j721e_evm_a72_defconfig
+++ b/configs/j721e_evm_a72_defconfig
@@ -151,6 +151,7 @@ CONFIG_SPI_FLASH_MT35XU=y
 CONFIG_SPI_FLASH_MTD=y
 CONFIG_MULTIPLEXER=y
 CONFIG_MUX_MMIO=y
+CONFIG_SPL_MUX_MMIO=y
 CONFIG_PHY_TI_DP83867=y
 CONFIG_PHY_FIXED=y
 CONFIG_TI_AM65_CPSW_NUSS=y
-- 
2.34.1


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

* Re: [PATCH 1/3] mux: Kconfig: Add Kconfig options for MUX_MMIO
  2025-03-20  6:30 ` [PATCH 1/3] mux: Kconfig: Add Kconfig options for MUX_MMIO Anurag Dutta
@ 2025-03-20  6:45   ` Neha Malcom Francis
  2025-03-20  6:50   ` Neha Malcom Francis
  2025-03-24 17:24   ` Tom Rini
  2 siblings, 0 replies; 8+ messages in thread
From: Neha Malcom Francis @ 2025-03-20  6:45 UTC (permalink / raw)
  To: Anurag Dutta, trini; +Cc: s-vadapalli, vaishnav.a, a-limaye, u-boot, u-kumar1

Hi Anurag,

On 20/03/25 12:00, Anurag Dutta wrote:
> Add Kconfig options for MUX_MMIO so that it can be enabled
> in SPL stage.
> 
> Signed-off-by: Anurag Dutta <a-dutta@ti.com>
> ---
>  drivers/mux/Kconfig | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/drivers/mux/Kconfig b/drivers/mux/Kconfig
> index f15ee4f833f..2b95eb02177 100644
> --- a/drivers/mux/Kconfig
> +++ b/drivers/mux/Kconfig
> @@ -10,6 +10,16 @@ config MULTIPLEXER
>  
>  if MULTIPLEXER
>  
> +config SPL_MUX_MMIO
> +	bool "MMIO register bitfield-controlled Multiplexer"
> +        depends on MULTIPLEXER && SYSCON

Indentation seems to be off

> +        help
> +          MMIO register bitfield-controlled Multiplexer controller.
> +
> +          The driver builds multiplexer controllers for bitfields in a syscon
> +          register. For N bit wide bitfields, there will be 2^N possible
> +          multiplexer states.
> +
>  config MUX_MMIO
>  	bool "MMIO register bitfield-controlled Multiplexer"
>  	depends on MULTIPLEXER && SYSCON

-- 
Thanking You
Neha Malcom Francis

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

* Re: [PATCH 1/3] mux: Kconfig: Add Kconfig options for MUX_MMIO
  2025-03-20  6:30 ` [PATCH 1/3] mux: Kconfig: Add Kconfig options for MUX_MMIO Anurag Dutta
  2025-03-20  6:45   ` Neha Malcom Francis
@ 2025-03-20  6:50   ` Neha Malcom Francis
  2025-03-24 17:24   ` Tom Rini
  2 siblings, 0 replies; 8+ messages in thread
From: Neha Malcom Francis @ 2025-03-20  6:50 UTC (permalink / raw)
  To: Anurag Dutta, trini; +Cc: s-vadapalli, vaishnav.a, a-limaye, u-boot, u-kumar1

On 20/03/25 12:00, Anurag Dutta wrote:
> Add Kconfig options for MUX_MMIO so that it can be enabled
> in SPL stage.
> 
> Signed-off-by: Anurag Dutta <a-dutta@ti.com>
> ---
>  drivers/mux/Kconfig | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/drivers/mux/Kconfig b/drivers/mux/Kconfig
> index f15ee4f833f..2b95eb02177 100644
> --- a/drivers/mux/Kconfig
> +++ b/drivers/mux/Kconfig
> @@ -10,6 +10,16 @@ config MULTIPLEXER
>  
>  if MULTIPLEXER
>  
> +config SPL_MUX_MMIO
> +	bool "MMIO register bitfield-controlled Multiplexer"
> +        depends on MULTIPLEXER && SYSCON
> +        help
> +          MMIO register bitfield-controlled Multiplexer controller.
> +
> +          The driver builds multiplexer controllers for bitfields in a syscon
> +          register. For N bit wide bitfields, there will be 2^N possible
> +          multiplexer states.
> +
>  config MUX_MMIO
>  	bool "MMIO register bitfield-controlled Multiplexer"
>  	depends on MULTIPLEXER && SYSCON


Maybe I'm missing something but what is this config supposed to do
exactly? It only depends on a couple of configs (is not selecting them)
and I don't see it doing anything in the code.

-- 
Thanking You
Neha Malcom Francis

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

* Re: [PATCH 1/3] mux: Kconfig: Add Kconfig options for MUX_MMIO
  2025-03-20  6:30 ` [PATCH 1/3] mux: Kconfig: Add Kconfig options for MUX_MMIO Anurag Dutta
  2025-03-20  6:45   ` Neha Malcom Francis
  2025-03-20  6:50   ` Neha Malcom Francis
@ 2025-03-24 17:24   ` Tom Rini
  2 siblings, 0 replies; 8+ messages in thread
From: Tom Rini @ 2025-03-24 17:24 UTC (permalink / raw)
  To: Anurag Dutta
  Cc: n-francis, s-vadapalli, vaishnav.a, a-limaye, u-boot, u-kumar1

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

On Thu, Mar 20, 2025 at 12:00:02PM +0530, Anurag Dutta wrote:
> Add Kconfig options for MUX_MMIO so that it can be enabled
> in SPL stage.
> 
> Signed-off-by: Anurag Dutta <a-dutta@ti.com>
> ---
>  drivers/mux/Kconfig | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/drivers/mux/Kconfig b/drivers/mux/Kconfig
> index f15ee4f833f..2b95eb02177 100644
> --- a/drivers/mux/Kconfig
> +++ b/drivers/mux/Kconfig
> @@ -10,6 +10,16 @@ config MULTIPLEXER
>  
>  if MULTIPLEXER
>  
> +config SPL_MUX_MMIO
> +	bool "MMIO register bitfield-controlled Multiplexer"
> +        depends on MULTIPLEXER && SYSCON
> +        help
> +          MMIO register bitfield-controlled Multiplexer controller.
> +
> +          The driver builds multiplexer controllers for bitfields in a syscon
> +          register. For N bit wide bitfields, there will be 2^N possible
> +          multiplexer states.
> +
>  config MUX_MMIO
>  	bool "MMIO register bitfield-controlled Multiplexer"
>  	depends on MULTIPLEXER && SYSCON

First, "config SPL_FOO" should follow "config FOO". Second, "config
MUX_MMIO" is written wrong because doing:

if MULTIPLEXER

config MUX_MMIO
	bool "..."
	depends on MULTIPLEXER

endif

Is redundant. Lets fix that and then not repeat it when adding
SPL_MUX_MMIO.

Next, it should be "default y if MUX_MMIO" _unless_ it's really not
going to be needed in most cases, and then yes, what you did is right.

Finally, SPL_MUX_MMIO should depend on SPL_SYSCON as that symbol does
exist.

Thanks.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

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

* Re: [PATCH 0/3] Enable MUX_MMIO at SPL stage
  2025-03-20  6:30 [PATCH 0/3] Enable MUX_MMIO at SPL stage Anurag Dutta
                   ` (2 preceding siblings ...)
  2025-03-20  6:30 ` [PATCH 3/3] configs: j721e_evm_a72_defconfig: " Anurag Dutta
@ 2025-04-06 15:38 ` Tom Rini
  3 siblings, 0 replies; 8+ messages in thread
From: Tom Rini @ 2025-04-06 15:38 UTC (permalink / raw)
  To: Anurag Dutta
  Cc: n-francis, s-vadapalli, vaishnav.a, a-limaye, u-boot, u-kumar1

On Thu, 20 Mar 2025 12:00:01 +0530, Anurag Dutta wrote:

> This series enables MUX_MMIO at SPL stage for j7200 and j721e
> as it is required for successful hyperflash boot.
> 
> Test logs :
> https://gist.github.com/anuragdutta731/b4c79ef8da56d8c50b38d953c9da4d45
> 
> Anurag Dutta (3):
>   mux: Kconfig: Add Kconfig options for MUX_MMIO
>   configs: j7200_evm_a72_defconfig: Enable MUX_MMIO at SPL
>   configs: j721e_evm_a72_defconfig: Enable MUX_MMIO at SPL
> 
> [...]

Applied to u-boot/next, thanks!

[1/3] mux: Kconfig: Add Kconfig options for MUX_MMIO
      commit: 9b838d0d7b619e1c8f67a0df930d2a53c33e8431
[2/3] configs: j7200_evm_a72_defconfig: Enable MUX_MMIO at SPL
      commit: a434bcfbe68d44c6b4c4b7cd27b2bdc3081684e2
[3/3] configs: j721e_evm_a72_defconfig: Enable MUX_MMIO at SPL
      commit: d042761ec0043bd4fe9466bed5e2852ff5a8166a
-- 
Tom



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

end of thread, other threads:[~2025-04-06 15:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-20  6:30 [PATCH 0/3] Enable MUX_MMIO at SPL stage Anurag Dutta
2025-03-20  6:30 ` [PATCH 1/3] mux: Kconfig: Add Kconfig options for MUX_MMIO Anurag Dutta
2025-03-20  6:45   ` Neha Malcom Francis
2025-03-20  6:50   ` Neha Malcom Francis
2025-03-24 17:24   ` Tom Rini
2025-03-20  6:30 ` [PATCH 2/3] configs: j7200_evm_a72_defconfig: Enable MUX_MMIO at SPL Anurag Dutta
2025-03-20  6:30 ` [PATCH 3/3] configs: j721e_evm_a72_defconfig: " Anurag Dutta
2025-04-06 15:38 ` [PATCH 0/3] Enable MUX_MMIO at SPL stage Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox