mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Acked-by: Ian Molton <[email protected]> Acked-by: Samuel Ortiz <[email protected]> Signed-off-by: Pierre Ossman <[email protected]>
This commit is contained in:
parent
fdd858db71
commit
f0e46cc497
5 changed files with 33 additions and 13 deletions
|
|
@ -108,6 +108,10 @@ static int t7l66xb_mmc_disable(struct platform_device *mmc)
|
|||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
static const struct tmio_mmc_data t7166xb_mmc_data = {
|
||||
.hclk = 24000000,
|
||||
};
|
||||
|
||||
static const struct resource t7l66xb_mmc_resources[] = {
|
||||
{
|
||||
.start = 0x800,
|
||||
|
|
@ -149,6 +153,7 @@ static struct mfd_cell t7l66xb_cells[] = {
|
|||
.name = "tmio-mmc",
|
||||
.enable = t7l66xb_mmc_enable,
|
||||
.disable = t7l66xb_mmc_disable,
|
||||
.driver_data = &t7166xb_mmc_data,
|
||||
.num_resources = ARRAY_SIZE(t7l66xb_mmc_resources),
|
||||
.resources = t7l66xb_mmc_resources,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -75,6 +75,10 @@ static int tc6387xb_mmc_disable(struct platform_device *mmc)
|
|||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
const static struct tmio_mmc_data tc6387xb_mmc_data = {
|
||||
.hclk = 24000000,
|
||||
};
|
||||
|
||||
static struct resource tc6387xb_mmc_resources[] = {
|
||||
{
|
||||
.start = 0x800,
|
||||
|
|
@ -98,6 +102,7 @@ static struct mfd_cell tc6387xb_cells[] = {
|
|||
.name = "tmio-mmc",
|
||||
.enable = tc6387xb_mmc_enable,
|
||||
.disable = tc6387xb_mmc_disable,
|
||||
.driver_data = &tc6387xb_mmc_data,
|
||||
.num_resources = ARRAY_SIZE(tc6387xb_mmc_resources),
|
||||
.resources = tc6387xb_mmc_resources,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -136,6 +136,10 @@ static int tc6393xb_nand_enable(struct platform_device *nand)
|
|||
return 0;
|
||||
}
|
||||
|
||||
const static struct tmio_mmc_data tc6393xb_mmc_data = {
|
||||
.hclk = 24000000,
|
||||
};
|
||||
|
||||
static struct resource __devinitdata tc6393xb_nand_resources[] = {
|
||||
{
|
||||
.start = 0x1000,
|
||||
|
|
@ -351,6 +355,7 @@ static struct mfd_cell __devinitdata tc6393xb_cells[] = {
|
|||
},
|
||||
[TC6393XB_CELL_MMC] = {
|
||||
.name = "tmio-mmc",
|
||||
.driver_data = &tc6393xb_mmc_data,
|
||||
.num_resources = ARRAY_SIZE(tc6393xb_mmc_resources),
|
||||
.resources = tc6393xb_mmc_resources,
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue