forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: spi: cc13xx_cc26xx: set power config based on SPI base addr
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 zephyrproject-rtos#25673 Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
- Loading branch information
Showing
1 changed file
with
24 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters