drivers: spi: enable gpio driver automatically when needed
Enable gpio driver automatically when an app or upper level driver needs it as chip select for spi. Change-Id: I2bed134939426e2c84f313393d638a878c84fbfc Signed-off-by: Baohong Liu <baohong.liu@intel.com>
This commit is contained in:
parent
9f7a643310
commit
77b7cb90d3
1 changed files with 3 additions and 2 deletions
|
@ -68,7 +68,7 @@ config SYS_LOG_SPI_LEVEL
|
|||
|
||||
config SPI_CS_GPIO
|
||||
bool "SPI port CS pin is controlled via a GPIO port"
|
||||
depends on GPIO
|
||||
select GPIO
|
||||
default n
|
||||
|
||||
config SPI_0
|
||||
|
@ -197,7 +197,8 @@ config SPI_SS_INIT_PRIORITY
|
|||
|
||||
config SPI_SS_CS_GPIO
|
||||
bool "SPI port CS pin is controlled via a GPIO port"
|
||||
depends on GPIO && SPI_QMSI_SS
|
||||
select GPIO
|
||||
depends on SPI_QMSI_SS
|
||||
default n
|
||||
|
||||
config SPI_SS_0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue