From c19fe2c8238e3c5d329fca4fc219e3924240945b Mon Sep 17 00:00:00 2001 From: GUI <39894654+GuEe-GUI@users.noreply.github.com> Date: Fri, 7 Aug 2026 21:29:33 +0800 Subject: [dm][regulator] Update Regulator (#11674) * [dm][regulator] update regulator Replace the regulator framework spinlock with a mutex because regulator operations may sleep. Move always-on policy into the regulator core, keep an initial enable reference for always-on supplies, prevent the last disable from turning them off, and let fixed/GPIO providers report and control their actual hardware state. Signed-off-by: GuEe-GUI <2991707448@qq.com> * [dm][regulator] add PWM regulator support Signed-off-by: GuEe-GUI <2991707448@qq.com> * style: format code with clang-format * style: format complete changed files with clang-format --------- Signed-off-by: GuEe-GUI <2991707448@qq.com> --- components/drivers/regulator/SConscript | 3 +++ 1 file changed, 3 insertions(+) (limited to 'components/drivers/regulator/SConscript') diff --git a/components/drivers/regulator/SConscript b/components/drivers/regulator/SConscript index 70245b9c49..9d5e0fbb18 100755 --- a/components/drivers/regulator/SConscript +++ b/components/drivers/regulator/SConscript @@ -19,6 +19,9 @@ if GetDepend(['RT_REGULATOR_FIXED']): if GetDepend(['RT_REGULATOR_GPIO']): src += ['regulator-gpio.c'] +if GetDepend(['RT_REGULATOR_PWM']): + src += ['regulator-pwm.c'] + if GetDepend(['RT_REGULATOR_SCMI']): src += ['regulator-scmi.c'] -- cgit v1.3.1