Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: sdhci-dove: DT support for sdhci-dove

This patch adds device tree support and binding documentation for
sdhci-dove.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@googlemail.com>
Signed-off-by: Chris Ball <cjb@laptop.org>

authored by

Sebastian Hesselbarth and committed by
Chris Ball
4ee7ed0d 164378ef

+22
+14
Documentation/devicetree/bindings/mmc/sdhci-dove.txt
··· 1 + * Marvell sdhci-dove controller 2 + 3 + This file documents differences between the core properties in mmc.txt 4 + and the properties used by the sdhci-pxav2 and sdhci-pxav3 drivers. 5 + 6 + - compatible: Should be "marvell,dove-sdhci". 7 + 8 + Example: 9 + 10 + sdio0: sdio@92000 { 11 + compatible = "marvell,dove-sdhci"; 12 + reg = <0x92000 0x100>; 13 + interrupts = <35>; 14 + };
+8
drivers/mmc/host/sdhci-dove.c
··· 24 24 #include <linux/err.h> 25 25 #include <linux/module.h> 26 26 #include <linux/mmc/host.h> 27 + #include <linux/of.h> 27 28 28 29 #include "sdhci-pltfm.h" 29 30 ··· 127 126 return sdhci_pltfm_unregister(pdev); 128 127 } 129 128 129 + static const struct of_device_id sdhci_dove_of_match_table[] __devinitdata = { 130 + { .compatible = "marvell,dove-sdhci", }, 131 + {} 132 + }; 133 + MODULE_DEVICE_TABLE(of, sdhci_dove_of_match_table); 134 + 130 135 static struct platform_driver sdhci_dove_driver = { 131 136 .driver = { 132 137 .name = "sdhci-dove", 133 138 .owner = THIS_MODULE, 134 139 .pm = SDHCI_PLTFM_PMOPS, 140 + .of_match_table = of_match_ptr(sdhci_dove_of_match_table), 135 141 }, 136 142 .probe = sdhci_dove_probe, 137 143 .remove = __devexit_p(sdhci_dove_remove),