aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mmc
diff options
context:
space:
mode:
authorThomas Abraham <thomas.abraham@linaro.org>2012-09-17 14:16:38 -0400
committerChris Ball <cjb@laptop.org>2012-10-03 10:05:15 -0400
commitf90a0612f0e110a8af976835273124dff4fa8b3d (patch)
treeef683e834a1cf4780c00fad28f88603fda15a159 /include/linux/mmc
parent1c2215b7c6f20a65877431a5ebb4f9a789df3811 (diff)
mmc: dw_mmc: lookup for optional biu and ciu clocks
Some platforms allow for clock gating and control of bus interface unit clock and card interface unit clock. Add support for clock lookup of optional biu and ciu clocks for clock gating and clock speed determination. Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com> Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> Acked-by: Will Newton <will.newton@imgtec.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r--include/linux/mmc/dw_mmc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mmc/dw_mmc.h b/include/linux/mmc/dw_mmc.h
index a37a573fa13c..787ad569c99b 100644
--- a/include/linux/mmc/dw_mmc.h
+++ b/include/linux/mmc/dw_mmc.h
@@ -78,6 +78,8 @@ struct mmc_data;
78 * @data_offset: Set the offset of DATA register according to VERID. 78 * @data_offset: Set the offset of DATA register according to VERID.
79 * @dev: Device associated with the MMC controller. 79 * @dev: Device associated with the MMC controller.
80 * @pdata: Platform data associated with the MMC controller. 80 * @pdata: Platform data associated with the MMC controller.
81 * @biu_clk: Pointer to bus interface unit clock instance.
82 * @ciu_clk: Pointer to card interface unit clock instance.
81 * @slot: Slots sharing this MMC controller. 83 * @slot: Slots sharing this MMC controller.
82 * @fifo_depth: depth of FIFO. 84 * @fifo_depth: depth of FIFO.
83 * @data_shift: log2 of FIFO item size. 85 * @data_shift: log2 of FIFO item size.
@@ -158,6 +160,8 @@ struct dw_mci {
158 u16 data_offset; 160 u16 data_offset;
159 struct device *dev; 161 struct device *dev;
160 struct dw_mci_board *pdata; 162 struct dw_mci_board *pdata;
163 struct clk *biu_clk;
164 struct clk *ciu_clk;
161 struct dw_mci_slot *slot[MAX_MCI_SLOTS]; 165 struct dw_mci_slot *slot[MAX_MCI_SLOTS];
162 166
163 /* FIFO push and pull */ 167 /* FIFO push and pull */