mmc: dw_mmc: prepare functions in dw_mmc-pltfm for reuse
authorThomas Abraham <thomas.abraham@linaro.org>
Mon, 17 Sep 2012 18:16:41 +0000 (18:16 +0000)
committerChris Ball <cjb@laptop.org>
Wed, 3 Oct 2012 14:05:18 +0000 (10:05 -0400)
commit17403f235e94dcccf95b43138b197c4de2ab6816
treeec54f858116e05aa134bf8d8d9f6cbeb82f405cf
parentc91eab4b2564f2424268113ab348eacf9381c2d9
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>
drivers/mmc/host/dw_mmc-pltfm.c
drivers/mmc/host/dw_mmc-pltfm.h [new file with mode: 0644]