Remove CONFIG_SPI_OWNBUS: Now it is not just a good idea, it is the law

This commit is contained in:
Gregory Nutt
2016-01-23 18:21:36 -06:00
parent e8ff3c3d59
commit de50bc82a7
115 changed files with 4 additions and 168 deletions
-2
View File
@@ -1008,7 +1008,6 @@ Configuration sub-directories
Device Drivers
CONFIG_SPI=y : Enable SPI support
CONFIG_SPI_EXCHANGE=y : The exchange() method is supported
CONFIG_SPI_OWNBUS=y : Smaller code if this is the only SPI device
CONFIG_SPI_BITBANG=y : Enable SPI bit-bang support
CONFIG_MMCSD=y : Enable MMC/SD support
@@ -1045,7 +1044,6 @@ Configuration sub-directories
Device Drivers
CONFIG_SPI=y : Enable SPI support
CONFIG_SPI_EXCHANGE=y : The exchange() method is supported
CONFIG_SPI_OWNBUS=y : Smaller code if this is the only SPI device
CONFIG_SPI_BITBANG=y : Enable SPI bit-bang support
CONFIG_INPUT=y : Enable support for input devices
-1
View File
@@ -665,7 +665,6 @@ CONFIG_ARCH_HAVE_I2CRESET=y
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_SLAVE is not set
# CONFIG_SPI_OWNBUS is not set
CONFIG_SPI_EXCHANGE=y
# CONFIG_SPI_CMDDATA is not set
# CONFIG_SPI_CALLBACK is not set
-1
View File
@@ -339,7 +339,6 @@ CONFIG_DEV_NULL=y
# CONFIG_ARCH_HAVE_I2CRESET is not set
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_OWNBUS is not set
CONFIG_SPI_EXCHANGE=y
# CONFIG_SPI_CMDDATA is not set
# CONFIG_SPI_CALLBACK is not set
-1
View File
@@ -339,7 +339,6 @@ CONFIG_DEV_NULL=y
# CONFIG_ARCH_HAVE_I2CRESET is not set
# CONFIG_I2C is not set
CONFIG_SPI=y
CONFIG_SPI_OWNBUS=y
CONFIG_SPI_EXCHANGE=y
# CONFIG_SPI_CMDDATA is not set
# CONFIG_SPI_CALLBACK is not set
@@ -341,7 +341,6 @@ CONFIG_DEV_NULL=y
# CONFIG_ARCH_HAVE_I2CRESET is not set
# CONFIG_I2C is not set
CONFIG_SPI=y
CONFIG_SPI_OWNBUS=y
CONFIG_SPI_EXCHANGE=y
# CONFIG_SPI_CMDDATA is not set
# CONFIG_SPI_CALLBACK is not set
-1
View File
@@ -340,7 +340,6 @@ CONFIG_DEV_NULL=y
# CONFIG_ARCH_HAVE_I2CRESET is not set
# CONFIG_I2C is not set
CONFIG_SPI=y
CONFIG_SPI_OWNBUS=y
CONFIG_SPI_EXCHANGE=y
# CONFIG_SPI_CMDDATA is not set
# CONFIG_SPI_CALLBACK is not set
-1
View File
@@ -384,7 +384,6 @@ CONFIG_DEV_NULL=y
# CONFIG_ARCH_HAVE_I2CRESET is not set
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_OWNBUS is not set
CONFIG_SPI_EXCHANGE=y
# CONFIG_SPI_CMDDATA is not set
CONFIG_SPI_CALLBACK=y
-1
View File
@@ -456,7 +456,6 @@ CONFIG_DEV_NULL=y
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_SLAVE is not set
# CONFIG_SPI_OWNBUS is not set
CONFIG_SPI_EXCHANGE=y
# CONFIG_SPI_CMDDATA is not set
CONFIG_SPI_CALLBACK=y
-1
View File
@@ -445,7 +445,6 @@ CONFIG_DEV_NULL=y
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_SLAVE is not set
# CONFIG_SPI_OWNBUS is not set
CONFIG_SPI_EXCHANGE=y
# CONFIG_SPI_CMDDATA is not set
CONFIG_SPI_CALLBACK=y
-1
View File
@@ -678,7 +678,6 @@ CONFIG_I2C_POLLED=y
# CONFIG_I2C_RESET is not set
CONFIG_SPI=y
# CONFIG_SPI_SLAVE is not set
# CONFIG_SPI_OWNBUS is not set
CONFIG_SPI_EXCHANGE=y
# CONFIG_SPI_CMDDATA is not set
# CONFIG_SPI_CALLBACK is not set
-1
View File
@@ -330,7 +330,6 @@ CONFIG_DISABLE_POLL=y
# CONFIG_ARCH_HAVE_I2CRESET is not set
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_OWNBUS is not set
CONFIG_SPI_EXCHANGE=y
# CONFIG_SPI_CMDDATA is not set
# CONFIG_SPI_BITBANG is not set
-1
View File
@@ -333,7 +333,6 @@ CONFIG_DISABLE_POLL=y
# CONFIG_ARCH_HAVE_I2CRESET is not set
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_OWNBUS is not set
CONFIG_SPI_EXCHANGE=y
# CONFIG_SPI_CMDDATA is not set
# CONFIG_SPI_BITBANG is not set
-1
View File
@@ -606,7 +606,6 @@ CONFIG_DEV_NULL=y
CONFIG_ARCH_HAVE_I2CRESET=y
# CONFIG_I2C is not set
CONFIG_SPI=y
CONFIG_SPI_OWNBUS=y
CONFIG_SPI_EXCHANGE=y
# CONFIG_SPI_CMDDATA is not set
# CONFIG_SPI_CALLBACK is not set
-1
View File
@@ -383,7 +383,6 @@ CONFIG_I2C_TRANSFER=y
# CONFIG_I2C_TRACE is not set
CONFIG_SPI=y
# CONFIG_SPI_SLAVE is not set
# CONFIG_SPI_OWNBUS is not set
CONFIG_SPI_EXCHANGE=y
# CONFIG_SPI_CMDDATA is not set
# CONFIG_SPI_CALLBACK is not set
-1
View File
@@ -450,7 +450,6 @@ CONFIG_DEV_NULL=y
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_SLAVE is not set
# CONFIG_SPI_OWNBUS is not set
CONFIG_SPI_EXCHANGE=y
# CONFIG_SPI_CMDDATA is not set
CONFIG_SPI_CALLBACK=y
-1
View File
@@ -450,7 +450,6 @@ CONFIG_DEV_NULL=y
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_SLAVE is not set
# CONFIG_SPI_OWNBUS is not set
CONFIG_SPI_EXCHANGE=y
# CONFIG_SPI_CMDDATA is not set
CONFIG_SPI_CALLBACK=y
-1
View File
@@ -423,7 +423,6 @@ CONFIG_DEV_NULL=y
# CONFIG_ARCH_HAVE_I2CRESET is not set
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_OWNBUS is not set
CONFIG_SPI_EXCHANGE=y
CONFIG_SPI_CMDDATA=y
# CONFIG_SPI_CALLBACK is not set
-1
View File
@@ -460,7 +460,6 @@ CONFIG_DEV_NULL=y
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_SLAVE is not set
# CONFIG_SPI_OWNBUS is not set
CONFIG_SPI_EXCHANGE=y
# CONFIG_SPI_CMDDATA is not set
CONFIG_SPI_CALLBACK=y
-1
View File
@@ -433,7 +433,6 @@ CONFIG_DEV_NULL=y
# CONFIG_ARCH_HAVE_I2CRESET is not set
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_OWNBUS is not set
CONFIG_SPI_EXCHANGE=y
CONFIG_SPI_CMDDATA=y
# CONFIG_SPI_CALLBACK is not set
-1
View File
@@ -427,7 +427,6 @@ CONFIG_I2C_TRANSFER=y
# CONFIG_I2C_TRACE is not set
CONFIG_SPI=y
# CONFIG_SPI_SLAVE is not set
# CONFIG_SPI_OWNBUS is not set
CONFIG_SPI_EXCHANGE=y
# CONFIG_SPI_CMDDATA is not set
# CONFIG_SPI_CALLBACK is not set
-1
View File
@@ -429,7 +429,6 @@ CONFIG_I2C_TRANSFER=y
# CONFIG_I2C_TRACE is not set
CONFIG_SPI=y
# CONFIG_SPI_SLAVE is not set
# CONFIG_SPI_OWNBUS is not set
# CONFIG_SPI_EXCHANGE is not set
# CONFIG_SPI_CMDDATA is not set
# CONFIG_SPI_CALLBACK is not set
-1
View File
@@ -429,7 +429,6 @@ CONFIG_DEV_NULL=y
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_SLAVE is not set
# CONFIG_SPI_OWNBUS is not set
# CONFIG_SPI_EXCHANGE is not set
# CONFIG_SPI_CMDDATA is not set
# CONFIG_SPI_CALLBACK is not set
-1
View File
@@ -402,7 +402,6 @@ CONFIG_DEV_NULL=y
# CONFIG_ARCH_HAVE_I2CRESET is not set
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_OWNBUS is not set
# CONFIG_SPI_EXCHANGE is not set
CONFIG_SPI_CMDDATA=y
# CONFIG_SPI_CALLBACK is not set
@@ -408,7 +408,6 @@ CONFIG_DEV_NULL=y
# CONFIG_ARCH_HAVE_I2CRESET is not set
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_OWNBUS is not set
# CONFIG_SPI_EXCHANGE is not set
# CONFIG_SPI_CMDDATA is not set
# CONFIG_SPI_CALLBACK is not set
-1
View File
@@ -433,7 +433,6 @@ CONFIG_I2C_TRANSFER=y
# CONFIG_I2C_TRACE is not set
# CONFIG_I2C_RESET is not set
CONFIG_SPI=y
CONFIG_SPI_OWNBUS=y
CONFIG_SPI_EXCHANGE=y
# CONFIG_SPI_CMDDATA is not set
# CONFIG_SPI_BITBANG is not set
-1
View File
@@ -397,7 +397,6 @@ CONFIG_DEV_NULL=y
# CONFIG_ARCH_HAVE_I2CRESET is not set
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_OWNBUS is not set
# CONFIG_SPI_EXCHANGE is not set
# CONFIG_SPI_CMDDATA is not set
# CONFIG_SPI_BITBANG is not set
@@ -347,7 +347,6 @@ CONFIG_DEV_NULL=y
# CONFIG_ARCH_HAVE_I2CRESET is not set
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_OWNBUS is not set
# CONFIG_SPI_EXCHANGE is not set
# CONFIG_SPI_CMDDATA is not set
CONFIG_SPI_CALLBACK=y
-1
View File
@@ -346,7 +346,6 @@ CONFIG_DEV_NULL=y
# CONFIG_ARCH_HAVE_I2CRESET is not set
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_OWNBUS is not set
# CONFIG_SPI_EXCHANGE is not set
# CONFIG_SPI_CMDDATA is not set
CONFIG_SPI_CALLBACK=y
@@ -119,9 +119,7 @@
* Private Function Prototypes
****************************************************************************/
#ifndef CONFIG_SPI_OWNBUS
static int spi_lock(FAR struct spi_dev_s *dev, bool lock);
#endif
static void spi_select(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool selected);
static uint32_t spi_setfrequency(FAR struct spi_dev_s *dev, uint32_t frequency);
static uint8_t spi_status(FAR struct spi_dev_s *dev, enum spi_dev_e devid);
@@ -138,9 +136,7 @@ static void spi_recvblock(FAR struct spi_dev_s *dev, FAR void *buffer, size_t nw
static const struct spi_ops_s g_spiops =
{
#ifndef CONFIG_SPI_OWNBUS
.lock = spi_lock,
#endif
.select = spi_select,
.setfrequency = spi_setfrequency,
.status = spi_status,
@@ -184,14 +180,12 @@ static struct spi_dev_s g_spidev = { &g_spiops };
*
****************************************************************************/
#ifndef CONFIG_SPI_OWNBUS
static int spi_lock(FAR struct spi_dev_s *dev, bool lock)
{
/* Not implemented */
return -ENOSYS;
}
#endif
/****************************************************************************
* Name: spi_select
-1
View File
@@ -347,7 +347,6 @@ CONFIG_DEV_NULL=y
# CONFIG_ARCH_HAVE_I2CRESET is not set
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_OWNBUS is not set
# CONFIG_SPI_EXCHANGE is not set
# CONFIG_SPI_CMDDATA is not set
# CONFIG_SPI_CALLBACK is not set
@@ -670,7 +670,6 @@ CONFIG_ARCH_HAVE_I2CRESET=y
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_SLAVE is not set
# CONFIG_SPI_OWNBUS is not set
CONFIG_SPI_EXCHANGE=y
# CONFIG_SPI_CMDDATA is not set
CONFIG_SPI_CALLBACK=y
-1
View File
@@ -674,7 +674,6 @@ CONFIG_ARCH_HAVE_I2CRESET=y
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_SLAVE is not set
# CONFIG_SPI_OWNBUS is not set
CONFIG_SPI_EXCHANGE=y
# CONFIG_SPI_CMDDATA is not set
# CONFIG_SPI_CALLBACK is not set
-1
View File
@@ -647,7 +647,6 @@ CONFIG_ARCH_HAVE_I2CRESET=y
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_SLAVE is not set
# CONFIG_SPI_OWNBUS is not set
CONFIG_SPI_EXCHANGE=y
# CONFIG_SPI_CMDDATA is not set
# CONFIG_SPI_CALLBACK is not set
-1
View File
@@ -654,7 +654,6 @@ CONFIG_ARCH_HAVE_I2CRESET=y
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_SLAVE is not set
# CONFIG_SPI_OWNBUS is not set
CONFIG_SPI_EXCHANGE=y
# CONFIG_SPI_CMDDATA is not set
# CONFIG_SPI_CALLBACK is not set
-3
View File
@@ -574,7 +574,6 @@ Analog Input
CONFIG_ADC=y : Enable support for analog input devices
CONFIG_PIC32MX_ADC=y : Enable support the PIC32 ADC driver
CONFIG_SPI_OWNBUS=n : The PGA117 is *not* the only device on the bus
CONFIG_ADC_PGA11X=y : Enable support for the PGA117
When CONFIG_PIC32MX_ADC=y is defined, the Mirtoo boot up logic will
@@ -892,7 +891,6 @@ Where <subdir> is one of the following:
but can be enabled by setting:
CONFIG_ADC=y : Enable support for analog input devices
CONFIG_SPI_OWNBUS=y : If the PGA117 is the only device on the bus
CONFIG_ADC_PGA11X=y : Enable support for the PGA117
nxffs
@@ -992,5 +990,4 @@ Where <subdir> is one of the following:
configuration but can be enabled by setting:
CONFIG_ADC=y : Enable support for anlog input devices
CONFIG_SPI_OWNBUS=n : The PGA117 is *not* the only device on the bus
CONFIG_ADC_PGA11X=y : Enable support for the PGA117
-1
View File
@@ -447,7 +447,6 @@ CONFIG_DEV_NULL=y
# CONFIG_ARCH_HAVE_I2CRESET is not set
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_OWNBUS is not set
# CONFIG_SPI_EXCHANGE is not set
# CONFIG_SPI_CMDDATA is not set
# CONFIG_SPI_CALLBACK is not set
-1
View File
@@ -66,7 +66,6 @@
*
* CONFIG_ADC=y : Enable support for analog input devices
* CONFIG_PIC32MX_ADC=y : Enable support the PIC32 ADC driver
* CONFIG_SPI_OWNBUS=n : The PGA117 is *not* the only device on the bus
* CONFIG_ADC_PGA11X=y : Enable support for the PGA117
*
* When CONFIG_PIC32MX_ADC=y is defined, the Mirtoo boot up logic will automatically
-1
View File
@@ -298,7 +298,6 @@ CONFIG_DEV_NULL=y
# CONFIG_ARCH_HAVE_I2CRESET is not set
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_OWNBUS is not set
# CONFIG_SPI_EXCHANGE is not set
# CONFIG_SPI_CMDDATA is not set
# CONFIG_SPI_BITBANG is not set
-1
View File
@@ -614,7 +614,6 @@ CONFIG_ARCH_HAVE_I2CRESET=y
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_SLAVE is not set
# CONFIG_SPI_OWNBUS is not set
CONFIG_SPI_EXCHANGE=y
CONFIG_SPI_CMDDATA=y
# CONFIG_SPI_CALLBACK is not set
-1
View File
@@ -530,7 +530,6 @@ CONFIG_DEV_NULL=y
CONFIG_ARCH_HAVE_I2CRESET=y
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_OWNBUS is not set
CONFIG_SPI_EXCHANGE=y
# CONFIG_SPI_CMDDATA is not set
# CONFIG_SPI_BITBANG is not set
-1
View File
@@ -522,7 +522,6 @@ CONFIG_DEV_NULL=y
CONFIG_ARCH_HAVE_I2CRESET=y
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_OWNBUS is not set
CONFIG_SPI_EXCHANGE=y
# CONFIG_SPI_CMDDATA is not set
# CONFIG_SPI_BITBANG is not set
-1
View File
@@ -415,7 +415,6 @@ CONFIG_DEV_NULL=y
# CONFIG_ARCH_HAVE_I2CRESET is not set
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_OWNBUS is not set
# CONFIG_SPI_EXCHANGE is not set
# CONFIG_SPI_CMDDATA is not set
# CONFIG_SPI_CALLBACK is not set
-1
View File
@@ -397,7 +397,6 @@ CONFIG_DEV_NULL=y
# CONFIG_ARCH_HAVE_I2CRESET is not set
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_OWNBUS is not set
# CONFIG_SPI_EXCHANGE is not set
# CONFIG_SPI_CMDDATA is not set
# CONFIG_SPI_CALLBACK is not set
-1
View File
@@ -420,7 +420,6 @@ CONFIG_DEV_NULL=y
# CONFIG_ARCH_HAVE_I2CRESET is not set
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_OWNBUS is not set
# CONFIG_SPI_EXCHANGE is not set
# CONFIG_SPI_CMDDATA is not set
CONFIG_SPI_CALLBACK=y
-1
View File
@@ -430,7 +430,6 @@ CONFIG_DEV_NULL=y
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_SLAVE is not set
# CONFIG_SPI_OWNBUS is not set
# CONFIG_SPI_EXCHANGE is not set
# CONFIG_SPI_CMDDATA is not set
# CONFIG_SPI_CALLBACK is not set
@@ -409,7 +409,6 @@ CONFIG_DEV_NULL=y
# CONFIG_ARCH_HAVE_I2CRESET is not set
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_OWNBUS is not set
# CONFIG_SPI_EXCHANGE is not set
# CONFIG_SPI_CMDDATA is not set
# CONFIG_SPI_CALLBACK is not set
@@ -431,7 +431,6 @@ CONFIG_DEV_NULL=y
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_SLAVE is not set
# CONFIG_SPI_OWNBUS is not set
# CONFIG_SPI_EXCHANGE is not set
# CONFIG_SPI_CMDDATA is not set
# CONFIG_SPI_CALLBACK is not set
-1
View File
@@ -650,7 +650,6 @@ CONFIG_ARCH_HAVE_I2CRESET=y
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_SLAVE is not set
# CONFIG_SPI_OWNBUS is not set
# CONFIG_SPI_EXCHANGE is not set
# CONFIG_SPI_CMDDATA is not set
# CONFIG_SPI_CALLBACK is not set
-1
View File
@@ -359,7 +359,6 @@ CONFIG_DEV_NULL=y
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_SLAVE is not set
# CONFIG_SPI_OWNBUS is not set
# CONFIG_SPI_EXCHANGE is not set
# CONFIG_SPI_CMDDATA is not set
# CONFIG_SPI_CALLBACK is not set
-1
View File
@@ -293,7 +293,6 @@ CONFIG_DEV_NULL=y
# CONFIG_ARCH_HAVE_I2CRESET is not set
# CONFIG_I2C is not set
CONFIG_SPI=y
# CONFIG_SPI_OWNBUS is not set
# CONFIG_SPI_EXCHANGE is not set
# CONFIG_SPI_CMDDATA is not set
# CONFIG_SPI_BITBANG is not set

Some files were not shown because too many files have changed in this diff Show More