Skip to contentSkip to conversation

cmd: sf: Mark it default if DM_SPI_FLASH enabled

PATCH New Jagan Teki 2 participants 2 messages Oct 16, 2019 – Oct 17, 2019

lore
Share & tools
lore

Jagan Teki

author
#0 lore raw

PATCH 1/1 cmd: sf: Mark it default if DM_SPI_FLASH enabled

If DM_SPI_FLASH enabled that means it is using sf command for flash interface to access.

SPI_FLASH can be used via sf command and board/driver functions to call spi flash ops, so mark it default only for DM_SPI_FLASH.

This would prevent explicit adding of CONFIG_CMD_SF when DM_SPI_FLASH being enabled.

Cc Tom Rini <[email protected]>
Cc Vignesh Raghavendra <[email protected]>
---
 cmd/Kconfig | 1 +
 1 file changed, 1 insertion(+)
cmd/Kconfig +1 -0
index 07060c63a7..c45286cc20 100644
@@ -1168,6 +1168,7 @@ config CMD_SDRAM
 config CMD_SF
 	bool "sf"
 	depends on DM_SPI_FLASH || SPI_FLASH
+	default y if DM_SPI_FLASH
 	help
 	  SPI Flash support
 
Signature · 1 line
2.18.0.321.gffc6fa0e3
#1 lore raw

PATCH 1/1 cmd: sf: Mark it default if DM_SPI_FLASH enabled

Hi Jagan,

Quoted 7 lines · Jagan Teki

If DM_SPI_FLASH enabled that means it is using sf command for flash interface to access.

SPI_FLASH can be used via sf command and board/driver functions to call spi flash ops, so mark it default only for DM_SPI_FLASH.

Quoted 7 lines

This would prevent explicit adding of CONFIG_CMD_SF when DM_SPI_FLASH being enabled.

Cc Tom Rini <[email protected]>
Cc Vignesh Raghavendra <[email protected]>

---

Quoted 16 lines
 cmd/Kconfig | 1 +
 1 file changed, 1 insertion(+)
cmd/Kconfig +1 -0
index 07060c63a7..c45286cc20 100644
@@ -1168,6 +1168,7 @@ config CMD_SDRAM
 config CMD_SF
 	bool "sf"
 	depends on DM_SPI_FLASH || SPI_FLASH
+	default y if DM_SPI_FLASH
 	help
 	  SPI Flash support
 
Signature · 2 lines
Regards
Vignesh