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" }, |
| 27 | { } |
| 28 | }; |
| 29 | |
| 30 | U_BOOT_DRIVER(clk_sun6i_rtc) = { |
| 31 | .name = "clk_sun6i_rtc", |
| 32 | .id = UCLASS_CLK, |
| 33 | .of_match = sun6i_rtc_ids, |
| 34 | .ops = &clk_sun6i_rtc_ops, |
| 35 | }; |