Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 459b6ea0 authored by Chen-Yu Tsai's avatar Chen-Yu Tsai Committed by Alexandre Belloni
Browse files

rtc: sun6i: Add default clock name for LOSC



The RTC's main clock, used internally and exported to the rest of the
SoC, is called "LOSC" (low speed oscillator) through the hardware
documentation.

This patch adds a default name for this clock, in case the device tree
does not provide one. This shouldn't happen, but lets play it safe.

Acked-by: default avatarMaxime Ripard <maxime.ripard@bootlin.com>
Tested-by: default avatarCorentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 9cd35586
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -191,6 +191,7 @@ static void __init sun6i_rtc_clk_init(struct device_node *node)
	struct sun6i_rtc_dev *rtc;
	struct clk_init_data init = {
		.ops		= &sun6i_rtc_osc_ops,
		.name		= "losc",
	};
	const char *clkout_name = "osc32k-out";
	const char *parents[2];