rockchip: rk3128-cru: sync the clock dt-binding header from Linux
[platform/kernel/u-boot.git] / drivers / clk / sunxi / clk_sun6i_rtc.c
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3  * Copyright (C) 2018 Amarula Solutions.
4  * Copyright (C) 2020 Samuel Holland <samuel@sholland.org>
5  */
6
7 #include <clk-uclass.h>
8 #include <dm.h>
9
10 static int clk_sun6i_rtc_enable(struct clk *clk)
11 {
12         return 0;
13 }
14
15 static const struct clk_ops clk_sun6i_rtc_ops = {
16         .enable = clk_sun6i_rtc_enable,
17 };
18
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" },
29         { }
30 };
31
32 U_BOOT_DRIVER(clk_sun6i_rtc) = {
33         .name           = "clk_sun6i_rtc",
34         .id             = UCLASS_CLK,
35         .of_match       = sun6i_rtc_ids,
36         .ops            = &clk_sun6i_rtc_ops,
37 };