drivers: clock_control: gd32: add gd32l23x series
gd32 clock_control support gd32l23x series.
@@ -112,7 +112,8 @@ static int clock_control_gd32_get_rate(const struct device *dev,
*rate = CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC >> ahb_exp[psc];
break;
case RCU_APB1EN_OFFSET:
-#if !defined(CONFIG_SOC_SERIES_GD32VF103)
+#if !defined(CONFIG_SOC_SERIES_GD32VF103) && \
+ !defined(CONFIG_SOC_SERIES_GD32L23X)
case RCU_ADDAPB1EN_OFFSET:
#endif
psc = (cfg & RCU_CFG0_APB1PSC_MSK) >> RCU_CFG0_APB1PSC_POS;
