diff options
Diffstat (limited to 'arch/arm/mach-msm/clock-pcom.h')
-rw-r--r-- | arch/arm/mach-msm/clock-pcom.h | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/arch/arm/mach-msm/clock-pcom.h b/arch/arm/mach-msm/clock-pcom.h index 974d0032f3a3..5bb164fd46a8 100644 --- a/arch/arm/mach-msm/clock-pcom.h +++ b/arch/arm/mach-msm/clock-pcom.h | |||
@@ -1,4 +1,5 @@ | |||
1 | /* Copyright (c) 2009, Code Aurora Forum. All rights reserved. | 1 | /* |
2 | * Copyright (c) 2009-2012, The Linux Foundation. All rights reserved. | ||
2 | * | 3 | * |
3 | * This program is free software; you can redistribute it and/or modify | 4 | * This program is free software; you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License version 2 and | 5 | * it under the terms of the GNU General Public License version 2 and |
@@ -120,21 +121,25 @@ | |||
120 | 121 | ||
121 | #define P_NR_CLKS 102 | 122 | #define P_NR_CLKS 102 |
122 | 123 | ||
123 | struct clk_ops; | 124 | struct clk_pcom_desc { |
124 | extern struct clk_ops clk_ops_pcom; | 125 | unsigned id; |
126 | const char *name; | ||
127 | const char *con; | ||
128 | const char *dev; | ||
129 | unsigned long flags; | ||
130 | }; | ||
125 | 131 | ||
126 | int pc_clk_reset(unsigned id, enum clk_reset_action action); | 132 | struct pcom_clk_pdata { |
133 | struct clk_pcom_desc *lookup; | ||
134 | u32 num_lookups; | ||
135 | }; | ||
127 | 136 | ||
128 | #define CLK_PCOM(clk_name, clk_id, clk_dev, clk_flags) { \ | 137 | #define CLK_PCOM(clk_name, clk_id, clk_dev, clk_flags) { \ |
129 | .con_id = clk_name, \ | 138 | .id = P_##clk_id, \ |
130 | .dev_id = clk_dev, \ | 139 | .name = #clk_id, \ |
131 | .clk = &(struct clk){ \ | 140 | .con = clk_name, \ |
132 | .id = P_##clk_id, \ | 141 | .dev = clk_dev, \ |
133 | .remote_id = P_##clk_id, \ | 142 | .flags = clk_flags, \ |
134 | .ops = &clk_ops_pcom, \ | ||
135 | .flags = clk_flags, \ | ||
136 | .dbg_name = #clk_id, \ | ||
137 | }, \ | ||
138 | } | 143 | } |
139 | 144 | ||
140 | #endif | 145 | #endif |