Skip to content

Commit 88f232a

Browse files
jerome-pouillerjhedberg
authored andcommitted
wiseconnect: Get rid of PSRAM_INTERFACE_MODE
PSRAM_INTERFACE_MODE contains an hardware configuration parameter. This parameter belongs to the DT on the Zephyr side. Hence, it can't be defined with a macro. Fortunately, this symbol is redundant with ...spi_config_1.inst_mode. So we can replace the macro by this field. Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
1 parent 8719b55 commit 88f232a

File tree

1 file changed

+1
-1
lines changed
  • wiseconnect/components/device/silabs/si91x/mcu/drivers/unified_api/src

1 file changed

+1
-1
lines changed

wiseconnect/components/device/silabs/si91x/mcu/drivers/unified_api/src/sl_si91x_psram.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ sl_psram_return_type_t sl_si91x_psram_init()
10161016

10171017
if ((psram_id.MFID == PSRAM_Device.deviceID.MFID) && (psram_id.KGD == PSRAM_Device.deviceID.KGD)) {
10181018

1019-
if (PSRAM_INTERFACE_MODE == QUAD_MODE) {
1019+
if (PSRAM_Device.spi_config.spi_config_1.inst_mode == QUAD_MODE) {
10201020
/*Set the PSRAM device to QPI mode*/
10211021
psram_enter_qpi_mode();
10221022

0 commit comments

Comments
 (0)