Skip to content

Commit d6563e9

Browse files
jerome-pouillerjhedberg
authored andcommitted
wiseconnect: Remove dependency on egpio_set_*
All the pinctrl configuration should be done through the DT and pinctrl driver. Note the caller to egpio_set_* API seems to be orphan, so this patch just panics if the code is called. Signed-off-by: Jérôme Pouiller <[email protected]>
1 parent 25aa047 commit d6563e9

File tree

1 file changed

+2
-18
lines changed
  • wiseconnect/components/device/silabs/si91x/mcu/drivers/peripheral_drivers/src

1 file changed

+2
-18
lines changed

wiseconnect/components/device/silabs/si91x/mcu/drivers/peripheral_drivers/src/rsi_qspi.c

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -581,25 +581,9 @@ void RSI_QSPI_ResetFlash(qspi_reg_t *qspi_reg, uint32_t cs_no)
581581
}
582582
}
583583
} else if (reset_type == 8) {
584-
egpio_set_pin_mux(EGPIO, 0, 13, 0);
585-
egpio_set_pin(EGPIO, 0, 13, 0);
586-
egpio_set_dir(EGPIO, 0, 13, 0);
587-
if (operating_mode & BIT(4)) {
588-
qspi_usleep(150);
589-
} else {
590-
qspi_usleep(50);
591-
}
592-
egpio_set_pin(EGPIO, 0, 13, 1);
584+
k_panic();
593585
} else if (reset_type == 9) {
594-
egpio_set_pin_mux(EGPIO, 0, 14, 0);
595-
egpio_set_pin(EGPIO, 0, 14, 0);
596-
egpio_set_dir(EGPIO, 0, 14, 0);
597-
if (operating_mode & BIT(4)) {
598-
qspi_usleep(150);
599-
} else {
600-
qspi_usleep(50);
601-
}
602-
egpio_set_pin(EGPIO, 0, 14, 1);
586+
k_panic();
603587
} else if (reset_type == 10) {
604588
qspi_write_to_flash(qspi_reg, QSPI_8BIT_LEN, 0xFF, cs_no);
605589
DEASSERT_CSN;

0 commit comments

Comments
 (0)