clk-lpss.h 930 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Intel Low Power Subsystem clock.
  3. *
  4. * Copyright (C) 2013, Intel Corporation
  5. * Authors: Mika Westerberg <mika.westerberg@linux.intel.com>
  6. * Heikki Krogerus <heikki.krogerus@linux.intel.com>
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. #ifndef __CLK_LPSS_H
  13. #define __CLK_LPSS_H
  14. #include <linux/err.h>
  15. #include <linux/errno.h>
  16. #include <linux/clk.h>
  17. #ifdef CONFIG_ACPI
  18. extern struct clk *clk_register_lpss_gate(const char *name,
  19. const char *parent_name,
  20. const char *hid, const char *uid,
  21. unsigned offset);
  22. #else
  23. static inline struct clk *clk_register_lpss_gate(const char *name,
  24. const char *parent_name,
  25. const char *hid,
  26. const char *uid,
  27. unsigned offset)
  28. {
  29. return ERR_PTR(-ENODEV);
  30. }
  31. #endif
  32. #endif /* __CLK_LPSS_H */