You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The power configuration is dependent on which SPI is physically used.
In order to allow DT_INST_FOREACH_STATUS_OKAY() to iterate through
instances without the assumption that index 0 corresponds to SPI0
(which would be incorrect in the case when only SPI1 is enabled),
we need to check the base address to identify which SPI is being dealt
with.
Fixeszephyrproject-rtos#25673
Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
The power configuration is dependent on which SPI is physically used.
In order to allow DT_INST_FOREACH_STATUS_OKAY() to iterate through
instances without the assumption that index 0 corresponds to SPI0
(which would be incorrect in the case when only SPI1 is enabled),
we need to check the base address to identify which SPI is being dealt
with.
Fixes#25673
Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
krip-tip
pushed a commit
to krip-tip/zephyr-local
that referenced
this issue
May 30, 2020
The power configuration is dependent on which SPI is physically used.
In order to allow DT_INST_FOREACH_STATUS_OKAY() to iterate through
instances without the assumption that index 0 corresponds to SPI0
(which would be incorrect in the case when only SPI1 is enabled),
we need to check the base address to identify which SPI is being dealt
with.
Fixeszephyrproject-rtos#25673
Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
Describe the bug
Similar to the issue for UARTs fixed in #25647, one is unable to use SPI1 unless SPI0 is enable in DTS.
To Reproduce
Steps to reproduce the behavior:
Modify tests/drivers/spi/spi_loopback/boards/cc1352r1_launchxl.conf to use SPI_1:
CONFIG_SPI_LOOPBACK_DRV_NAME="SPI_1"
cd tests/drivers/spi/spi_loopback
west build -b cc1352r1_launchxl
west flash
See error:
Expected behavior
The test should pass.
Impact
This prevents a user from using SPI1 without enabling SPI0, leading to slower boot time, higher power consumption, etc.
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: