clk_sun6i_rtc.c 867 B

1234567891011121314151617181920212223242526272829303132333435
  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. #include <clk-uclass.h>
  7. #include <dm.h>
  8. static int clk_sun6i_rtc_enable(struct clk *clk)
  9. {
  10. return 0;
  11. }
  12. static const struct clk_ops clk_sun6i_rtc_ops = {
  13. .enable = clk_sun6i_rtc_enable,
  14. };
  15. static const struct udevice_id sun6i_rtc_ids[] = {
  16. { .compatible = "allwinner,sun6i-a31-rtc" },
  17. { .compatible = "allwinner,sun8i-a23-rtc" },
  18. { .compatible = "allwinner,sun8i-h3-rtc" },
  19. { .compatible = "allwinner,sun8i-r40-rtc" },
  20. { .compatible = "allwinner,sun8i-v3-rtc" },
  21. { .compatible = "allwinner,sun50i-h5-rtc" },
  22. { .compatible = "allwinner,sun50i-h6-rtc" },
  23. { }
  24. };
  25. U_BOOT_DRIVER(clk_sun6i_rtc) = {
  26. .name = "clk_sun6i_rtc",
  27. .id = UCLASS_CLK,
  28. .of_match = sun6i_rtc_ids,
  29. .ops = &clk_sun6i_rtc_ops,
  30. };