diff options
Diffstat (limited to 'include/linux/tegra-powergate.h')
-rw-r--r-- | include/linux/tegra-powergate.h | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/include/linux/tegra-powergate.h b/include/linux/tegra-powergate.h index 55c29a8d5015..fd4498329c7c 100644 --- a/include/linux/tegra-powergate.h +++ b/include/linux/tegra-powergate.h | |||
@@ -34,10 +34,18 @@ struct clk; | |||
34 | #define TEGRA_POWERGATE_CPU3 11 | 34 | #define TEGRA_POWERGATE_CPU3 11 |
35 | #define TEGRA_POWERGATE_CELP 12 | 35 | #define TEGRA_POWERGATE_CELP 12 |
36 | #define TEGRA_POWERGATE_3D1 13 | 36 | #define TEGRA_POWERGATE_3D1 13 |
37 | #define TEGRA_POWERGATE_CPU0 14 | ||
38 | #define TEGRA_POWERGATE_C0NC 15 | ||
39 | #define TEGRA_POWERGATE_C1NC 16 | ||
40 | #define TEGRA_POWERGATE_DIS 18 | ||
41 | #define TEGRA_POWERGATE_DISB 19 | ||
42 | #define TEGRA_POWERGATE_XUSBA 20 | ||
43 | #define TEGRA_POWERGATE_XUSBB 21 | ||
44 | #define TEGRA_POWERGATE_XUSBC 22 | ||
37 | 45 | ||
38 | #define TEGRA_POWERGATE_CPU0 TEGRA_POWERGATE_CPU | ||
39 | #define TEGRA_POWERGATE_3D0 TEGRA_POWERGATE_3D | 46 | #define TEGRA_POWERGATE_3D0 TEGRA_POWERGATE_3D |
40 | 47 | ||
48 | #ifdef CONFIG_ARCH_TEGRA | ||
41 | int tegra_powergate_is_powered(int id); | 49 | int tegra_powergate_is_powered(int id); |
42 | int tegra_powergate_power_on(int id); | 50 | int tegra_powergate_power_on(int id); |
43 | int tegra_powergate_power_off(int id); | 51 | int tegra_powergate_power_off(int id); |
@@ -45,5 +53,31 @@ int tegra_powergate_remove_clamping(int id); | |||
45 | 53 | ||
46 | /* Must be called with clk disabled, and returns with clk enabled */ | 54 | /* Must be called with clk disabled, and returns with clk enabled */ |
47 | int tegra_powergate_sequence_power_up(int id, struct clk *clk); | 55 | int tegra_powergate_sequence_power_up(int id, struct clk *clk); |
56 | #else | ||
57 | static inline int tegra_powergate_is_powered(int id) | ||
58 | { | ||
59 | return -ENOSYS; | ||
60 | } | ||
61 | |||
62 | static inline int tegra_powergate_power_on(int id) | ||
63 | { | ||
64 | return -ENOSYS; | ||
65 | } | ||
66 | |||
67 | static inline int tegra_powergate_power_off(int id) | ||
68 | { | ||
69 | return -ENOSYS; | ||
70 | } | ||
71 | |||
72 | static inline int tegra_powergate_remove_clamping(int id) | ||
73 | { | ||
74 | return -ENOSYS; | ||
75 | } | ||
76 | |||
77 | static inline int tegra_powergate_sequence_power_up(int id, struct clk *clk) | ||
78 | { | ||
79 | return -ENOSYS; | ||
80 | } | ||
81 | #endif | ||
48 | 82 | ||
49 | #endif /* _MACH_TEGRA_POWERGATE_H_ */ | 83 | #endif /* _MACH_TEGRA_POWERGATE_H_ */ |