aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/dw_mmc-pltfm.h
diff options
context:
space:
mode:
authorThomas Abraham <thomas.abraham@linaro.org>2012-09-17 14:16:41 -0400
committerChris Ball <cjb@laptop.org>2012-10-03 10:05:18 -0400
commit17403f235e94dcccf95b43138b197c4de2ab6816 (patch)
treeec54f858116e05aa134bf8d8d9f6cbeb82f405cf /drivers/mmc/host/dw_mmc-pltfm.h
parentc91eab4b2564f2424268113ab348eacf9381c2d9 (diff)
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.h19
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 @@
1/*
2 * Synopsys DesignWare Multimedia Card Interface Platform driver
3 *
4 * Copyright (C) 2012, Samsung Electronics Co., Ltd.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 */
11
12#ifndef _DW_MMC_PLTFM_H_
13#define _DW_MMC_PLTFM_H_
14
15extern int dw_mci_pltfm_register(struct platform_device *pdev);
16extern int __devexit dw_mci_pltfm_remove(struct platform_device *pdev);
17extern const struct dev_pm_ops dw_mci_pltfm_pmops;
18
19#endif /* _DW_MMC_PLTFM_H_ */