summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rwxr-xr-xcomponents/drivers/Kconfig6
-rwxr-xr-xcomponents/drivers/clk/clk-scmi.c4
-rw-r--r--components/drivers/clock_time/Kconfig4
3 files changed, 12 insertions, 2 deletions
diff --git a/components/drivers/Kconfig b/components/drivers/Kconfig
index 01539009a2..f04d3c7f48 100755
--- a/components/drivers/Kconfig
+++ b/components/drivers/Kconfig
@@ -49,4 +49,10 @@ rsource "pinctrl/Kconfig"
rsource "clk/Kconfig"
rsource "usb/Kconfig"
+if RT_USING_DM
+ menu "SoC (System on Chip) Drivers"
+ osource "$(SOC_DM_SOC_DIR)/Kconfig"
+ endmenu
+endif
+
endmenu
diff --git a/components/drivers/clk/clk-scmi.c b/components/drivers/clk/clk-scmi.c
index ca51ee1ddc..d6240fa406 100755
--- a/components/drivers/clk/clk-scmi.c
+++ b/components/drivers/clk/clk-scmi.c
@@ -47,7 +47,7 @@ struct scmi_clk_data
} info;
};
-#define cell_to_scmi_clk_data(cell) rt_container_of(cell, struct scmi_clk_data, cell)
+#define cell_to_scmi_clk_data(cell_ptr) rt_container_of(cell_ptr, struct scmi_clk_data, cell)
static rt_err_t scmi_clk_op_gate(struct scmi_clk *sclk, int clk_id, rt_bool_t enable)
{
@@ -128,7 +128,7 @@ static rt_base_t scmi_clk_round_rate(struct rt_clk_cell *cell, rt_ubase_t drate,
if (clk_data->rate_discrete)
{
- return rate;
+ return drate;
}
fmin = clk_data->info.range.min_rate;
diff --git a/components/drivers/clock_time/Kconfig b/components/drivers/clock_time/Kconfig
index 7da12ac849..d6259617aa 100644
--- a/components/drivers/clock_time/Kconfig
+++ b/components/drivers/clock_time/Kconfig
@@ -15,4 +15,8 @@ if RT_USING_CLOCK_TIME
depends on RT_USING_DM
depends on ARCH_ARM_CORTEX_A || ARCH_ARMV8
default n
+
+if RT_USING_DM
+ osource "$(SOC_DM_CLOCK_TIME_DIR)/Kconfig"
+endif
endif