Skip to content

Commit 7dee12b

Browse files
committed
drivers: dma: siwx91x: GPDMA clock initialization for siwx91x
Clock driver changes required for initializing the GPDMA clock for the siwx91x driver Signed-off-by: Sai Santhosh Malae <[email protected]>
1 parent f2f496d commit 7dee12b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

drivers/clock_control/clock_control_silabs_siwx91x.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ static int siwx91x_clock_on(const struct device *dev, clock_control_subsys_t sys
107107
case SIWX91X_ADC_CLK:
108108
RSI_ADC_PowerControl(ADC_POWER_ON);
109109
break;
110+
case SIWX91X_CLK_GPDMA0:
111+
RSI_CLK_PeripheralClkEnable(M4CLK, RPDMA_CLK, ENABLE_STATIC_CLK);
112+
break;
110113
default:
111114
return -EINVAL;
112115
}

include/zephyr/dt-bindings/clock/silabs/siwx91x-clock.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@
2222
#define SIWX91X_CLK_ULP_I2S 15
2323
#define SIWX91X_CLK_STATIC_ULP_I2S 16
2424
#define SIWX91X_ADC_CLK 17
25+
#define SIWX91X_CLK_GPDMA0 18
2526

2627
#endif

0 commit comments

Comments
 (0)