diff options
author | Philipp Zabel <philipp.zabel@gmail.com> | 2009-06-04 14:12:31 -0400 |
---|---|---|
committer | Pierre Ossman <pierre@ossman.eu> | 2009-06-13 16:42:59 -0400 |
commit | f0e46cc4971f6be96010d9248e0fc076b229d989 (patch) | |
tree | 5fc0b80993c82337b8928f063df0749fadc9d13e /drivers/mfd/t7l66xb.c | |
parent | fdd858db7113ca64132de390188d7ca00701013d (diff) |
MFD,mmc: tmio_mmc: make HCLK configurable
The Toshiba parts all have a 24 MHz HCLK, but HTC ASIC3 has a 24.576 MHz HCLK
and AMD Imageon w228x's HCLK is 80 MHz. With this patch, the MFD driver
provides the HCLK frequency to tmio_mmc via mfd_cell->driver_data.
Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Acked-by: Ian Molton <ian@mnementh.co.uk>
Acked-by: Samuel Ortiz <sameo@openedhand.com>
Signed-off-by: Pierre Ossman <pierre@ossman.eu>
Diffstat (limited to 'drivers/mfd/t7l66xb.c')
-rw-r--r-- | drivers/mfd/t7l66xb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mfd/t7l66xb.c b/drivers/mfd/t7l66xb.c index e9f4323dd2cb..875f7a875734 100644 --- a/drivers/mfd/t7l66xb.c +++ b/drivers/mfd/t7l66xb.c | |||
@@ -108,6 +108,10 @@ static int t7l66xb_mmc_disable(struct platform_device *mmc) | |||
108 | 108 | ||
109 | /*--------------------------------------------------------------------------*/ | 109 | /*--------------------------------------------------------------------------*/ |
110 | 110 | ||
111 | static const struct tmio_mmc_data t7166xb_mmc_data = { | ||
112 | .hclk = 24000000, | ||
113 | }; | ||
114 | |||
111 | static const struct resource t7l66xb_mmc_resources[] = { | 115 | static const struct resource t7l66xb_mmc_resources[] = { |
112 | { | 116 | { |
113 | .start = 0x800, | 117 | .start = 0x800, |
@@ -149,6 +153,7 @@ static struct mfd_cell t7l66xb_cells[] = { | |||
149 | .name = "tmio-mmc", | 153 | .name = "tmio-mmc", |
150 | .enable = t7l66xb_mmc_enable, | 154 | .enable = t7l66xb_mmc_enable, |
151 | .disable = t7l66xb_mmc_disable, | 155 | .disable = t7l66xb_mmc_disable, |
156 | .driver_data = &t7166xb_mmc_data, | ||
152 | .num_resources = ARRAY_SIZE(t7l66xb_mmc_resources), | 157 | .num_resources = ARRAY_SIZE(t7l66xb_mmc_resources), |
153 | .resources = t7l66xb_mmc_resources, | 158 | .resources = t7l66xb_mmc_resources, |
154 | }, | 159 | }, |