1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (C) 2018 Amarula Solutions.
4 * Copyright (C) 2020 Samuel Holland <samuel@sholland.org>
7 #include <clk-uclass.h>
10 static int clk_sun6i_rtc_enable(struct clk *clk)
15 static const struct clk_ops clk_sun6i_rtc_ops = {
16 .enable = clk_sun6i_rtc_enable,
19 static const struct udevice_id sun6i_rtc_ids[] = {
20 { .compatible = "allwinner,sun6i-a31-rtc" },
21 { .compatible = "allwinner,sun8i-a23-rtc" },
22 { .compatible = "allwinner,sun8i-h3-rtc" },
23 { .compatible = "allwinner,sun8i-r40-rtc" },
24 { .compatible = "allwinner,sun8i-v3-rtc" },
25 { .compatible = "allwinner,sun50i-h5-rtc" },
26 { .compatible = "allwinner,sun50i-h6-rtc" },
27 { .compatible = "allwinner,sun50i-h616-rtc" },
28 { .compatible = "allwinner,sun50i-r329-rtc" },
32 U_BOOT_DRIVER(clk_sun6i_rtc) = {
33 .name = "clk_sun6i_rtc",
35 .of_match = sun6i_rtc_ids,
36 .ops = &clk_sun6i_rtc_ops,