blob: 697b187a8235ab5a85ad03ba77dc72806c777fe2 [file] [log] [blame]
Samuel Holland58610302021-02-07 23:57:19 -06001// 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
10static int clk_sun6i_rtc_enable(struct clk *clk)
11{
12 return 0;
13}
14
15static const struct clk_ops clk_sun6i_rtc_ops = {
16 .enable = clk_sun6i_rtc_enable,
17};
18
19static 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" },
Samuel Holland6fba2482022-04-30 22:38:36 -050027 { .compatible = "allwinner,sun50i-h616-rtc" },
28 { .compatible = "allwinner,sun50i-r329-rtc" },
Samuel Holland58610302021-02-07 23:57:19 -060029 { }
30};
31
32U_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};