Samuel Holland | 5861030 | 2021-02-07 23:57:19 -0600 | [diff] [blame] | 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" }, |
Samuel Holland | 6fba248 | 2022-04-30 22:38:36 -0500 | [diff] [blame] | 27 | { .compatible = "allwinner,sun50i-h616-rtc" }, |
| 28 | { .compatible = "allwinner,sun50i-r329-rtc" }, |
Samuel Holland | 5861030 | 2021-02-07 23:57:19 -0600 | [diff] [blame] | 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 | }; |