diff options
| author | GuEe-GUI <[email protected]> | 2025-12-09 17:32:26 +0800 |
|---|---|---|
| committer | R b b666 <[email protected]> | 2025-12-12 13:33:28 +0800 |
| commit | 335a1242b0d4bf1a0c82a71e1da3bb2e72bfeb84 (patch) | |
| tree | af40542b66699aa253415c6ee98cb4a115e43f5a /components/drivers/clk/SConscript | |
| parent | a036ddcb342f8790fcb1d4a909c743ded5b8d97e (diff) | |
[dm][clk] refactoring the CLK framework
The old CLK is can't link all hardware clock cell in system that the
API of layout such as 'set_parent' can't work as expected.
Some hareware clock cell need some flags to prevent some dangerous behaviors, eg:
When a clock cell is link to the PMU, the SoC will power-down if the cell is
disable.
The new CLK can do it, and make the CLK drivers implemented easier from
TRM/DataSheet.
Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'components/drivers/clk/SConscript')
| -rw-r--r-- | components/drivers/clk/SConscript | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/components/drivers/clk/SConscript b/components/drivers/clk/SConscript index af6ed4dbeb..928697863d 100644 --- a/components/drivers/clk/SConscript +++ b/components/drivers/clk/SConscript @@ -1,7 +1,6 @@ from building import * group = [] -objs = [] if not GetDepend(['RT_USING_CLK']): Return('group') @@ -15,12 +14,7 @@ src = ['clk.c'] if GetDepend(['RT_USING_OFW']): src += ['clk-fixed-rate.c'] -group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH) -for d in list: - path = os.path.join(cwd, d) - if os.path.isfile(os.path.join(path, 'SConscript')): - objs = objs + SConscript(os.path.join(d, 'SConscript')) -objs = objs + group +group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH) -Return('objs') +Return('group') |
