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>
This commit is contained in:
parent
164378efe7
commit
4ee7ed0de9
2 changed files with 22 additions and 0 deletions
14
Documentation/devicetree/bindings/mmc/sdhci-dove.txt
Normal file
14
Documentation/devicetree/bindings/mmc/sdhci-dove.txt
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
* Marvell sdhci-dove controller
|
||||||
|
|
||||||
|
This file documents differences between the core properties in mmc.txt
|
||||||
|
and the properties used by the sdhci-pxav2 and sdhci-pxav3 drivers.
|
||||||
|
|
||||||
|
- compatible: Should be "marvell,dove-sdhci".
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
sdio0: sdio@92000 {
|
||||||
|
compatible = "marvell,dove-sdhci";
|
||||||
|
reg = <0x92000 0x100>;
|
||||||
|
interrupts = <35>;
|
||||||
|
};
|
|
@ -24,6 +24,7 @@
|
||||||
#include <linux/err.h>
|
#include <linux/err.h>
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/mmc/host.h>
|
#include <linux/mmc/host.h>
|
||||||
|
#include <linux/of.h>
|
||||||
|
|
||||||
#include "sdhci-pltfm.h"
|
#include "sdhci-pltfm.h"
|
||||||
|
|
||||||
|
@ -126,11 +127,18 @@ static int __devexit sdhci_dove_remove(struct platform_device *pdev)
|
||||||
return sdhci_pltfm_unregister(pdev);
|
return sdhci_pltfm_unregister(pdev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static const struct of_device_id sdhci_dove_of_match_table[] __devinitdata = {
|
||||||
|
{ .compatible = "marvell,dove-sdhci", },
|
||||||
|
{}
|
||||||
|
};
|
||||||
|
MODULE_DEVICE_TABLE(of, sdhci_dove_of_match_table);
|
||||||
|
|
||||||
static struct platform_driver sdhci_dove_driver = {
|
static struct platform_driver sdhci_dove_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "sdhci-dove",
|
.name = "sdhci-dove",
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.pm = SDHCI_PLTFM_PMOPS,
|
.pm = SDHCI_PLTFM_PMOPS,
|
||||||
|
.of_match_table = of_match_ptr(sdhci_dove_of_match_table),
|
||||||
},
|
},
|
||||||
.probe = sdhci_dove_probe,
|
.probe = sdhci_dove_probe,
|
||||||
.remove = __devexit_p(sdhci_dove_remove),
|
.remove = __devexit_p(sdhci_dove_remove),
|
||||||
|
|
Loading…
Add table
Reference in a new issue