clk: x86: add support for Lynxpoint LPSS clocks
[firefly-linux-kernel-4.4.55.git] / drivers / clk / x86 / clk-lpss.h
diff --git a/drivers/clk/x86/clk-lpss.h b/drivers/clk/x86/clk-lpss.h
new file mode 100644 (file)
index 0000000..e9460f4
--- /dev/null
@@ -0,0 +1,36 @@
+/*
+ * Intel Low Power Subsystem clock.
+ *
+ * Copyright (C) 2013, Intel Corporation
+ * Authors: Mika Westerberg <mika.westerberg@linux.intel.com>
+ *         Heikki Krogerus <heikki.krogerus@linux.intel.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef __CLK_LPSS_H
+#define __CLK_LPSS_H
+
+#include <linux/err.h>
+#include <linux/errno.h>
+#include <linux/clk.h>
+
+#ifdef CONFIG_ACPI
+extern struct clk *clk_register_lpss_gate(const char *name,
+                                         const char *parent_name,
+                                         const char *hid, const char *uid,
+                                         unsigned offset);
+#else
+static inline struct clk *clk_register_lpss_gate(const char *name,
+                                                const char *parent_name,
+                                                const char *hid,
+                                                const char *uid,
+                                                unsigned offset)
+{
+       return ERR_PTR(-ENODEV);
+}
+#endif
+
+#endif /* __CLK_LPSS_H */