summaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2016-08-19 15:42:23 +0800
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2016-08-31 18:23:50 +0200
commit637cac7c139f6433506f38aca85c2bf37ff64787 (patch)
treec3a9fac2b6db3df0a46e87818cef53094427f5b8 /drivers/rtc
parent1bc40cb1ccbc7e33622a1fd2a8a37f311e64d4fc (diff)
downloadop-kernel-dev-637cac7c139f6433506f38aca85c2bf37ff64787.zip
op-kernel-dev-637cac7c139f6433506f38aca85c2bf37ff64787.tar.gz
rtc: ac100: support clock-output-names in device tree binding
The ac100 device tree binding specifies the usage of clock-output-names to specify the names of its 3 clock outputs. This is needed for orphan clock resolution, when the ac100 is probed much later than any clocks that consume any of its outputs. This wasn't supported by the driver. Add support for this. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-ac100.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-ac100.c b/drivers/rtc/rtc-ac100.c
index 70b4fd0..2d0bb02 100644
--- a/drivers/rtc/rtc-ac100.c
+++ b/drivers/rtc/rtc-ac100.c
@@ -327,6 +327,8 @@ static int ac100_rtc_register_clks(struct ac100_rtc_dev *chip)
.flags = 0,
};
+ of_property_read_string_index(np, "clock-output-names",
+ i, &init.name);
clk->regmap = chip->regmap;
clk->offset = AC100_CLKOUT_CTRL1 + i;
clk->hw.init = &init;
OpenPOWER on IntegriCloud