Skip to contentSkip to conversation

nand: denali: enable ONFI detection for SoCFPGA SoC64

PATCH In review [email protected] 2 participants 2 messages Nov 4, 2025 – Nov 17, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nand: denali: enable ONFI detection for SoCFPGA SoC64

From: Dinesh Maniyam <[email protected]>

Enable ONFI parameter page detection for SoCFPGA SoC64 devices by selecting SYS_NAND_ONFI_DETECTION in the NAND_DENALI Kconfig entry.

This allows SoCFPGA SoC64 platforms using the Denali NAND controller to automatically detect NAND parameters via the ONFI interface instead of relying on hardcoded configuration values.

The selection is limited to TARGET_SOCFPGA_SOC64 to avoid affecting non-SoC64 platforms that use legacy NAND handling.

---
 drivers/mtd/nand/raw/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/mtd/nand/raw/Kconfig +1 -0
index 754b99bf3eb..a658defe794 100644
@@ -213,6 +213,7 @@ config NAND_CADENCE
 config NAND_DENALI
 	bool
 	select SYS_NAND_SELF_INIT
+	select SYS_NAND_ONFI_DETECTION if TARGET_SOCFPGA_SOC64
 	imply CMD_NAND
 
 config NAND_DENALI_DT
Signature · 1 line
2.43.7
Reviewed-by Tien Fong Chee on v1 1/1
#1 lore raw
Quoted 22 lines · On 5/11/2025 1:16 am, [email protected] wrote:

From: Dinesh Maniyam <[email protected]>

Enable ONFI parameter page detection for SoCFPGA SoC64 devices by selecting SYS_NAND_ONFI_DETECTION in the NAND_DENALI Kconfig entry.

This allows SoCFPGA SoC64 platforms using the Denali NAND controller to automatically detect NAND parameters via the ONFI interface instead of relying on hardcoded configuration values.

The selection is limited to TARGET_SOCFPGA_SOC64 to avoid affecting non-SoC64 platforms that use legacy NAND handling.

---
  drivers/mtd/nand/raw/Kconfig | 1 +
  1 file changed, 1 insertion(+)
drivers/mtd/nand/raw/Kconfig +0 -0
index 754b99bf3eb..a658defe794 100644

drivers/mtd/nand/raw/Kconfig config NAND_CADENCE · line 219

Quoted 7 lines
drivers/mtd/nand/raw/Kconfig +1 -0
@@ -213,6 +213,7 @@ config NAND_CADENCE
  config NAND_DENALI
  	bool
  	select SYS_NAND_SELF_INIT
+	select SYS_NAND_ONFI_DETECTION if TARGET_SOCFPGA_SOC64
  	imply CMD_NAND
 
  config NAND_DENALI_DT

Best regards,
Tien Fong