diff options
author | Thomas Abraham <thomas.abraham@linaro.org> | 2012-09-17 18:16:41 +0000 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-10-03 10:05:18 -0400 |
commit | 17403f235e94dcccf95b43138b197c4de2ab6816 (patch) | |
tree | ec54f858116e05aa134bf8d8d9f6cbeb82f405cf /drivers/mmc/host/dw_mmc-pltfm.h | |
parent | c91eab4b2564f2424268113ab348eacf9381c2d9 (diff) | |
download | lwn-17403f235e94dcccf95b43138b197c4de2ab6816.tar.gz lwn-17403f235e94dcccf95b43138b197c4de2ab6816.zip |
mmc: dw_mmc: prepare functions in dw_mmc-pltfm for reuse
Platform implementations of dw-mshc controller may choose to extend the
features of the standard dw-mshc controller such as adding additional
clocking options or modifying the bus interface. Support for such
implementation specific extensions can be incorporated into dw_mmc-pltfm,
but including multiple such platform specific implementations would
convolute the existing dw_mmc-pltfm code.
Instead, it would be better to create implementation specific platform
drivers to support implementation specific features. Such platforms
drivers can reuse the existing infrastructure in dw_mmc-pltfm for
resource identification and controller registration and provide support
for implementation specific features. So, allow the infrastructure in
dw_mmc-pltfm to be reused by other implementation specific platform
drivers.
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 'drivers/mmc/host/dw_mmc-pltfm.h')
-rw-r--r-- | drivers/mmc/host/dw_mmc-pltfm.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/mmc/host/dw_mmc-pltfm.h b/drivers/mmc/host/dw_mmc-pltfm.h new file mode 100644 index 000000000000..6c065d9c2dd6 --- /dev/null +++ b/drivers/mmc/host/dw_mmc-pltfm.h @@ -0,0 +1,19 @@ +/* + * Synopsys DesignWare Multimedia Card Interface Platform driver + * + * Copyright (C) 2012, Samsung Electronics Co., Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + */ + +#ifndef _DW_MMC_PLTFM_H_ +#define _DW_MMC_PLTFM_H_ + +extern int dw_mci_pltfm_register(struct platform_device *pdev); +extern int __devexit dw_mci_pltfm_remove(struct platform_device *pdev); +extern const struct dev_pm_ops dw_mci_pltfm_pmops; + +#endif /* _DW_MMC_PLTFM_H_ */ |