Add dummy hwfeatures method to all SPI interfaces

This commit is contained in:
Gregory Nutt 2016-01-23 15:09:38 -06:00
parent ece6517607
commit 4bd6adb725
24 changed files with 80 additions and 8 deletions

View file

@ -124,6 +124,9 @@ static const struct spi_ops_s g_spiops =
.setfrequency = spi_setfrequency,
.setmode = spi_setmode,
.setbits = spi_setbits,
#ifdef CONFIG_SPI_HWFEATURES
.hwfeatures = 0,
#endif
.status = 0,
#ifdef CONFIG_SPI_CMDDATA
.cmddata = ,

View file

@ -243,6 +243,9 @@ static const struct spi_ops_s g_spiops =
.setfrequency = spi_setfrequency,
.setmode = spi_setmode,
.setbits = spi_setbits,
#ifdef CONFIG_SPI_HWFEATURES
.hwfeatures = 0,
#endif
.status = spi_status,
#ifdef CONFIG_SPI_CMDDATA
.cmddata = spi_cmddata,

View file

@ -196,6 +196,9 @@ static const struct spi_ops_s g_spiops =
.setfrequency = spi_setfrequency,
.setmode = spi_setmode,
.setbits = spi_setbits,
#ifdef CONFIG_SPI_HWFEATURES
.hwfeatures = 0, /* Not supported */
#endif
.status = imx_spistatus, /* Provided externally by board logic */
#ifdef CONFIG_SPI_CMDDATA
.cmddata = imx_spicmddata,

View file

@ -141,6 +141,9 @@ static const struct spi_ops_s g_spi0ops =
.setfrequency = spi_setfrequency,
.setmode = spi_setmode,
.setbits = spi_setbits,
#ifdef CONFIG_SPI_HWFEATURES
.hwfeatures = 0, /* Not supported */
#endif
.status = kl_spi0status,
#ifdef CONFIG_SPI_CMDDATA
.cmddata = kl_spi0cmddata,
@ -152,7 +155,7 @@ static const struct spi_ops_s g_spi0ops =
.sndblock = spi_sndblock,
.recvblock = spi_recvblock,
#endif
.registercallback = 0,
.registercallback = 0, /* Not supported */
};
static struct kl_spidev_s g_spi0dev =

View file

@ -157,6 +157,9 @@ static const struct spi_ops_s g_spiops =
.setfrequency = spi_setfrequency,
.setmode = spi_setmode,
.setbits = spi_setbits,
#ifdef CONFIG_SPI_HWFEATURES
.hwfeatures = 0, /* Not supported */
#endif
.status = lpc11_spistatus,
#ifdef CONFIG_SPI_CMDDATA
.cmddata = lpc11_spicmddata,

View file

@ -193,6 +193,9 @@ static const struct spi_ops_s g_spi0ops =
.setfrequency = ssp_setfrequency,
.setmode = ssp_setmode,
.setbits = ssp_setbits,
#ifdef CONFIG_SPI_HWFEATURES
.hwfeatures = 0, /* Not supported */
#endif
.status = lpc11_ssp0status, /* Provided externally */
#ifdef CONFIG_SPI_CMDDATA
.cmddata = lpc11_ssp0cmddata, /* Provided externally */

View file

@ -153,6 +153,9 @@ static const struct spi_ops_s g_spiops =
.setfrequency = spi_setfrequency,
.setmode = spi_setmode,
.setbits = spi_setbits,
#ifdef CONFIG_SPI_HWFEATURES
.hwfeatures = 0, /* Not supported */
#endif
.status = lpc17_spistatus,
#ifdef CONFIG_SPI_CMDDATA
.cmddata = lpc17_spicmddata,

View file

@ -191,6 +191,9 @@ static const struct spi_ops_s g_spi0ops =
.setfrequency = ssp_setfrequency,
.setmode = ssp_setmode,
.setbits = ssp_setbits,
#ifdef CONFIG_SPI_HWFEATURES
.hwfeatures = 0, /* Not supported */
#endif
.status = lpc17_ssp0status, /* Provided externally */
#ifdef CONFIG_SPI_CMDDATA
.cmddata = lpc17_ssp0cmddata, /* Provided externally */

View file

@ -155,6 +155,9 @@ static const struct spi_ops_s g_spiops =
.setfrequency = spi_setfrequency,
.setmode = spi_setmode,
.setbits = spi_setbits,
#ifdef CONFIG_SPI_HWFEATURES
.hwfeatures = 0, /* Not supported */
#endif
.status = lpc23xx_spistatus,
#ifdef CONFIG_SPI_CMDDATA
.cmddata = lpc23xx_spicmddata,

View file

@ -142,6 +142,9 @@ static const struct spi_ops_s g_spiops =
.setfrequency = spi_setfrequency,
.setmode = spi_setmode,
.setbits = spi_setbits,
#ifdef CONFIG_SPI_HWFEATURES
.hwfeatures = 0, /* Not supported */
#endif
.status = spi_status,
#ifdef CONFIG_SPI_CMDDATA
.cmddata = lpc31_spicmddata,
@ -153,7 +156,7 @@ static const struct spi_ops_s g_spiops =
.sndblock = spi_sndblock,
.recvblock = spi_recvblock,
#endif
.registercallback = 0,
.registercallback = 0, /* Not supported */
};
static struct lpc31_spidev_s g_spidev =

View file

@ -143,6 +143,9 @@ static const struct spi_ops_s g_spiops =
.setfrequency = spi_setfrequency,
.setmode = spi_setmode,
.setbits = spi_setbits,
#ifdef CONFIG_SPI_HWFEATURES
.hwfeatures = 0, /* Not supported */
#endif
.status = lpc43_spistatus,
#ifdef CONFIG_SPI_CMDDATA
.cmddata = lpc43_spicmddata,

View file

@ -161,6 +161,9 @@ static const struct spi_ops_s g_spi0ops =
.setfrequency = ssp_setfrequency,
.setmode = ssp_setmode,
.setbits = ssp_setbits,
#ifdef CONFIG_SPI_HWFEATURES
.hwfeatures = 0, /* Not supported */
#endif
.status = lpc43_ssp0status, /* Provided externally */
#ifdef CONFIG_SPI_CMDDATA
.cmddata = lpc43_ssp0cmddata, /* Provided externally */

View file

@ -334,6 +334,9 @@ static const struct spi_ops_s g_spi0ops =
.setfrequency = spi_setfrequency,
.setmode = spi_setmode,
.setbits = spi_setbits,
#ifdef CONFIG_SPI_HWFEATURES
.hwfeatures = 0, /* Not supported */
#endif
.status = sam_spi0status,
#ifdef CONFIG_SPI_CMDDATA
.cmddata = sam_spi0cmddata,

View file

@ -326,6 +326,9 @@ static const struct spi_ops_s g_spi0ops =
.setfrequency = spi_setfrequency,
.setmode = spi_setmode,
.setbits = spi_setbits,
#ifdef CONFIG_SPI_HWFEATURES
.hwfeatures = 0, /* Not supported */
#endif
.status = sam_spi0status,
#ifdef CONFIG_SPI_CMDDATA
.cmddata = sam_spi0cmddata,

View file

@ -246,6 +246,9 @@ static const struct spi_ops_s g_spi0ops =
.setfrequency = spi_setfrequency,
.setmode = spi_setmode,
.setbits = spi_setbits,
#ifdef CONFIG_SPI_HWFEATURES
.hwfeatures = 0, /* Not supported */
#endif
.status = sam_spi0status,
#ifdef CONFIG_SPI_CMDDATA
.cmddata = sam_spi0cmddata,

View file

@ -321,6 +321,9 @@ static const struct spi_ops_s g_spi0ops =
.setfrequency = spi_setfrequency,
.setmode = spi_setmode,
.setbits = spi_setbits,
#ifdef CONFIG_SPI_HWFEATURES
.hwfeatures = 0, /* Not supported */
#endif
.status = sam_spi0status,
#ifdef CONFIG_SPI_CMDDATA
.cmddata = sam_spi0cmddata,

View file

@ -274,6 +274,9 @@ static const struct spi_ops_s g_sp1iops =
.setfrequency = spi_setfrequency,
.setmode = spi_setmode,
.setbits = spi_setbits,
#ifdef CONFIG_SPI_HWFEATURES
.hwfeatures = 0, /* Not supported */
#endif
.status = stm32_spi1status,
#ifdef CONFIG_SPI_CMDDATA
.cmddata = stm32_spi1cmddata,
@ -286,9 +289,9 @@ static const struct spi_ops_s g_sp1iops =
.recvblock = spi_recvblock,
#endif
#ifdef CONFIG_SPI_CALLBACK
.registercallback = stm32_spi1register, /* provided externally */
.registercallback = stm32_spi1register, /* Provided externally */
#else
.registercallback = 0, /* not implemented */
.registercallback = 0, /* Not implemented */
#endif
};

View file

@ -318,6 +318,9 @@ static const struct spi_ops_s g_spiops =
.setfrequency = ssi_setfrequency,
.setmode = ssi_setmode,
.setbits = ssi_setbits,
#ifdef CONFIG_SPI_HWFEATURES
.hwfeatures = 0, /* Not supported */
#endif
.status = tiva_spistatus, /* Provided externally by board logic */
#ifdef CONFIG_SPI_CMDDATA
.cmddata = tiva_spicmddata,

View file

@ -127,6 +127,9 @@ static const struct spi_ops_s g_spiops =
.setfrequency = spi_setfrequency,
.setmode = spi_setmode,
.setbits = spi_setbits,
#ifdef CONFIG_SPI_HWFEATURES
.hwfeatures = 0, /* Not supported */
#endif
.status = avr_spistatus,
#ifdef CONFIG_SPI_CMDDATA
.cmddata = avr_spicmddata,

View file

@ -147,6 +147,9 @@ static const struct spi_ops_s g_spi1ops =
.setfrequency = spi_setfrequency,
.setmode = spi_setmode,
.setbits = spi_setbits,
#ifdef CONFIG_SPI_HWFEATURES
.hwfeatures = 0, /* Not supported */
#endif
.status = pic32mx_spi1status,
#ifdef CONFIG_SPI_CMDDATA
.cmddata = pic32mx_spi1cmddata,

View file

@ -184,6 +184,9 @@ static const struct spi_ops_s g_spi1ops =
.setfrequency = spi_setfrequency,
.setmode = spi_setmode,
.setbits = spi_setbits,
#ifdef CONFIG_SPI_HWFEATURES
.hwfeatures = 0, /* Not supported */
#endif
.status = pic32mz_spi1status,
#ifdef CONFIG_SPI_CMDDATA
.cmddata = pic32mz_spi1cmddata,

View file

@ -242,6 +242,9 @@ static const struct spi_ops_s g_spiops =
.setfrequency = spiflash_setfrequency,
.setmode = spiflash_setmode,
.setbits = spiflash_setbits,
#ifdef CONFIG_SPI_HWFEATURES
.hwfeatures = 0, /* Not supported */
#endif
.status = spiflash_status,
#ifdef CONFIG_SPI_CMDDATA
.cmddata = spiflash_cmddata,

View file

@ -169,6 +169,9 @@ static const struct spi_ops_s g_epsiops =
spi_setfrequency,
spi_setmode,
spi_setbits,
#ifdef CONFIG_SPI_HWFEATURES
NULL, /* hwfeatures: Not supported */
#endif
z16f_espi_status,
#ifdef CONFIG_SPI_CMDDATA
z16f_espi_cmddata,

View file

@ -89,18 +89,21 @@ static const struct spi_ops_s g_spiops =
#ifndef CONFIG_SPI_OWNBUS
spi_lock,
#endif
ez80_spiselect, /* Provided externally by board logic */
ez80_spiselect, /* select: Provided externally by board logic */
spi_setfrequency,
spi_setmode,
NULL, /* Variable number of bits not implemented */
ez80_spistatus, /* Provided externally by board logic */
NULL, /* setbits: Variable number of bits not implemented */
#ifdef CONFIG_SPI_HWFEATURES
NULL, /* hwfeatures: Not supported */
#endif
ez80_spistatus, /* status: Provided externally by board logic */
#ifdef CONFIG_SPI_CMDDATA
ez80_spicmddata,
#endif
spi_send,
spi_sndblock,
spi_recvblock,
0 /* registercallback not yet implemented */
0 /* registercallback: Not yet implemented */
};
/* This supports is only a single SPI bus/port. If you port this to an