Skip to content

Commit 69bfe08

Browse files
robherringbebarino
authored andcommitted
clk: versatile: clk-icst: Support 'reg' in addition to 'vco-offset' for register address
The ICST binding now also supports 'reg' in addition to 'vco-offset' for the VCO register address. Add support to the driver to get the VCO address from 'reg'. Cc: Linus Walleij <[email protected]> Cc: Stephen Boyd <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Linus Walleij <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent 750682e commit 69bfe08

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/clk/versatile/clk-icst.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,8 @@ static void __init of_syscon_icst_setup(struct device_node *np)
501501
return;
502502
}
503503

504-
if (of_property_read_u32(np, "vco-offset", &icst_desc.vco_offset)) {
504+
if (of_property_read_u32(np, "reg", &icst_desc.vco_offset) &&
505+
of_property_read_u32(np, "vco-offset", &icst_desc.vco_offset)) {
505506
pr_err("no VCO register offset for ICST clock\n");
506507
return;
507508
}

0 commit comments

Comments
 (0)