mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-10-02 14:23:19 +08:00
* [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>
31 lines
665 B
Python
Executable File
31 lines
665 B
Python
Executable File
from building import *
|
|
|
|
group = []
|
|
|
|
if not GetDepend(['RT_USING_REGULATOR']):
|
|
Return('group')
|
|
|
|
cwd = GetCurrentDir()
|
|
CPPPATH = [cwd + '/../include']
|
|
|
|
src = ['regulator.c', 'regulator_dm.c', 'regulator_cmd.c']
|
|
|
|
if GetDepend(['RT_REGULATOR_FAN53555']):
|
|
src += ['regulator-fan53555.c']
|
|
|
|
if GetDepend(['RT_REGULATOR_FIXED']):
|
|
src += ['regulator-fixed.c']
|
|
|
|
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']
|
|
|
|
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
Return('group')
|