diff options
author | Adam Ford <aford173@gmail.com> | 2018-04-15 13:51:26 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-04-27 14:54:11 -0400 |
commit | f1b1f77060beadbfe9f42a3be00019bd025afbd6 (patch) | |
tree | c3c189037cd6ccdb3e3ece5c60e08d86215627f5 /drivers/spi | |
parent | ec37f05ec0a999e0bd79f87354716df6f9bc074d (diff) |
Convert CONFIG_SPI to Kconfig
This converts the following to Kconfig:
CONFIG_SPI
This partly involves updating code that assumes that CONFIG_SPI implies
things that are specific to the MPC8xx SPI driver. For now, just update
the CONFIG tests. This also involves reworking the default for
CONFIG_SYS_DEF_EEPROM_ADDR so that we don't set it when we cannot make a
reasonable default, as it does not cause any compile failures.
Signed-off-by: Adam Ford <aford173@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/Kconfig | 7 | ||||
-rw-r--r-- | drivers/spi/cf_spi.c | 8 | ||||
-rw-r--r-- | drivers/spi/fsl_dspi.c | 10 |
3 files changed, 5 insertions, 20 deletions
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index ec92b84ed28..6667f7321f0 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -1,4 +1,7 @@ -menu "SPI Support" +menuconfig SPI + bool "SPI Support" + +if SPI config DM_SPI bool "Enable Driver Model for SPI drivers" @@ -312,4 +315,4 @@ config OMAP3_SPI (McSPI). This driver be used to access SPI chips on platforms embedding this OMAP3 McSPI IP core. -endmenu # menu "SPI Support" +endif # menu "SPI Support" diff --git a/drivers/spi/cf_spi.c b/drivers/spi/cf_spi.c index 7be94277815..68317ed633f 100644 --- a/drivers/spi/cf_spi.c +++ b/drivers/spi/cf_spi.c @@ -288,14 +288,6 @@ int spi_cs_is_valid(unsigned int bus, unsigned int cs) return 0; } -void spi_init_f(void) -{ -} - -void spi_init_r(void) -{ -} - void spi_init(void) { cfspi_init(); diff --git a/drivers/spi/fsl_dspi.c b/drivers/spi/fsl_dspi.c index 42086197d98..41d1ba2fa52 100644 --- a/drivers/spi/fsl_dspi.c +++ b/drivers/spi/fsl_dspi.c @@ -396,16 +396,6 @@ void spi_init(void) /* Nothing to do */ } -void spi_init_f(void) -{ - /* Nothing to do */ -} - -void spi_init_r(void) -{ - /* Nothing to do */ -} - int spi_cs_is_valid(unsigned int bus, unsigned int cs) { if (((cs >= 0) && (cs < 8)) && ((bus >= 0) && (bus < 8))) |