virtio_clk_common.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2022-2023, Qualcomm Innovation Center, Inc. All rights reserved.
  4. */
  5. #ifndef __VIRTIO_CLK_COMMON__
  6. #define __VIRTIO_CLK_COMMON__
  7. #include <linux/types.h>
  8. /*
  9. *
  10. */
  11. struct virtio_clk_init_data {
  12. const char *name;
  13. const char * const *parent_names;
  14. u8 num_parents;
  15. };
  16. /*
  17. * struct clk_virtio_desc - virtio clock descriptor
  18. * clk_names: the pointer of clock name pointer
  19. * num_clks: number of clocks
  20. * reset_names: the pointer of reset name pointer
  21. * num_resets: number of resets
  22. */
  23. struct clk_virtio_desc {
  24. const struct virtio_clk_init_data *clks;
  25. size_t num_clks;
  26. const char * const *reset_names;
  27. size_t num_resets;
  28. };
  29. extern const struct clk_virtio_desc clk_virtio_sm8150_gcc;
  30. extern const struct clk_virtio_desc clk_virtio_sm8150_scc;
  31. extern const struct clk_virtio_desc clk_virtio_sm6150_gcc;
  32. extern const struct clk_virtio_desc clk_virtio_sm6150_scc;
  33. extern const struct clk_virtio_desc clk_virtio_sa8195p_gcc;
  34. extern const struct clk_virtio_desc clk_virtio_direwolf_gcc;
  35. extern const struct clk_virtio_desc clk_virtio_lemans_gcc;
  36. extern const struct clk_virtio_desc clk_virtio_monaco_gcc;
  37. #endif