Mika Westerberg | 701190f | 2013-01-18 13:46:00 +0000 | [diff] [blame] | 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 | |
| 13 | #ifndef __CLK_LPSS_H |
| 14 | #define __CLK_LPSS_H |
| 15 | |
| 16 | #include <linux/err.h> |
| 17 | #include <linux/errno.h> |
| 18 | #include <linux/clk.h> |
| 19 | |
| 20 | #ifdef CONFIG_ACPI |
| 21 | extern struct clk *clk_register_lpss_gate(const char *name, |
| 22 | const char *parent_name, |
| 23 | const char *hid, const char *uid, |
| 24 | unsigned offset); |
| 25 | #else |
| 26 | static inline struct clk *clk_register_lpss_gate(const char *name, |
| 27 | const char *parent_name, |
| 28 | const char *hid, |
| 29 | const char *uid, |
| 30 | unsigned offset) |
| 31 | { |
| 32 | return ERR_PTR(-ENODEV); |
| 33 | } |
| 34 | #endif |
| 35 | |
| 36 | #endif /* __CLK_LPSS_H */ |