mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
soc: rockchip: opp_select: Add current read margin for rockchip_opp_info
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com> Change-Id: Ifd7434d28943aa32222938961fc00ffab7f320ea
This commit is contained in:
@@ -1179,6 +1179,7 @@ int rockchip_init_opp_table(struct device *dev, struct rockchip_opp_info *info,
|
||||
info->num_clks = num_clks;
|
||||
}
|
||||
if (info->data && info->data->set_read_margin) {
|
||||
info->current_rm = UINT_MAX;
|
||||
info->grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf");
|
||||
if (IS_ERR(info->grf))
|
||||
info->grf = NULL;
|
||||
|
||||
@@ -29,6 +29,7 @@ struct rockchip_opp_info {
|
||||
struct regmap *grf;
|
||||
struct clk_bulk_data *clks;
|
||||
int num_clks;
|
||||
u32 current_rm;
|
||||
};
|
||||
|
||||
#if IS_ENABLED(CONFIG_ROCKCHIP_OPP)
|
||||
|
||||
Reference in New Issue
Block a user