Commit a6ff01cc authored by Pieter De Gendt's avatar Pieter De Gendt Committed by Carles Cufi
Browse files

drivers: flash: spi: Move to using select in Kconfig for SPI bus



Move to using 'select SPI' instead of 'depends on SPI'
(see commit df81fef9 for more details)

Signed-off-by: default avatarPieter De Gendt <pieter.degendt@basalte.be>
parent 4a572ac8
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -21,14 +21,4 @@ config NUM_IRQS
config GPIO
	default y if "$(dt_nodelabel_enabled,daplink_qspi_mux)"

if FLASH

config SPI
	default y

config SPI_NOR
	default y if SPI_XLNX_AXI_QUADSPI

endif # FLASH

endif # BOARD_ARTY_A7_ARM_DESIGNSTART_M1 || BOARD_ARTY_A7_ARM_DESIGNSTART_M3
+0 −10
Original line number Diff line number Diff line
@@ -20,16 +20,6 @@ config MCG_VDIV0
config MCG_FCRDIV
	default 1

if FLASH

config SPI
	default y

config SPI_NOR
	default y

endif # FXOS8700

config FXOS8700_DRDY_INT1
	default y
	depends on FXOS8700_TRIGGER
+0 −6
Original line number Diff line number Diff line
@@ -13,12 +13,6 @@ config BT_CTLR

if FLASH

config SPI
	default y

config SPI_NOR
	default y

config SPI_NOR_FLASH_LAYOUT_PAGE_SIZE
	default 4096

+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ menuconfig SPI_FLASH_AT45
	depends on DT_HAS_ATMEL_AT45_ENABLED
	select FLASH_HAS_DRIVER_ENABLED
	select FLASH_HAS_PAGE_LAYOUT
	depends on SPI
	select SPI
	help
	  This driver can handle several instances of AT45 family chips that
	  are enabled by specifying devicetree nodes with the "compatible"
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ menuconfig SPI_NOR
	select FLASH_HAS_DRIVER_ENABLED
	select FLASH_HAS_PAGE_LAYOUT
	select FLASH_JESD216
	depends on SPI
	select SPI

if SPI_NOR