tests/drivers/spi/spi_loopback: Fix configurations for nRF boards

Since commit 22326f6d99 got in, this test
requires that so-called NOP frames (bytes of value 0) are sent when no
TX data is provided. For nRF SoCs, the over-read character (ORC) that
is sent in such case is by default configured to the value of 0xFF.
Alter configurations for nRF boards so that 0x00 is used instead.

On the occasion, remove redundant selections of driver type in those
configurations (CONFIG_SPI_x_NRF_SPI[M]=y), as such selections must
be aligned with the value of "compatible" property in corresponding
nodes in dts, so there's no much sense in having them separately here.

Correct also the SPI instance to be used for nrf51_pca10028.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This commit is contained in:
Andrzej Głąbek 2020-03-12 09:02:41 +00:00 committed by Maureen Helm
commit 1a1d8e797b
3 changed files with 5 additions and 5 deletions

View file

@ -1,7 +1,7 @@
CONFIG_SPI_0=y
CONFIG_SPI_0_NRF_SPI=y
CONFIG_SPI_1=y
CONFIG_SPI_1_NRF_ORC=0x00
CONFIG_SPI_LOOPBACK_DRV_NAME="SPI_0"
CONFIG_SPI_LOOPBACK_DRV_NAME="SPI_1"
CONFIG_SPI_LOOPBACK_CS_GPIO=y
CONFIG_SPI_LOOPBACK_CS_CTRL_GPIO_DRV_NAME="GPIO_0"
CONFIG_SPI_LOOPBACK_CS_CTRL_GPIO_PIN=28

View file

@ -1,6 +1,6 @@
CONFIG_SPI_NRFX_RAM_BUFFER_SIZE=8
CONFIG_SPI_3=y
CONFIG_SPI_3_NRF_SPIM=y
CONFIG_SPI_3_NRF_ORC=0x00
CONFIG_SPI_3_NRF_RX_DELAY=1
CONFIG_SPI_LOOPBACK_DRV_NAME="SPI_3"

View file

@ -1,5 +1,5 @@
CONFIG_SPI_1=y
CONFIG_SPI_1_NRF_SPI=y
CONFIG_SPI_1_NRF_ORC=0x00
CONFIG_SPI_LOOPBACK_DRV_NAME="SPI_1"
CONFIG_SPI_LOOPBACK_CS_GPIO=y