mmc: mvsdio: implement a Device Tree binding
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 16 Jan 2013 13:13:59 +0000 (14:13 +0100)
committerChris Ball <cjb@laptop.org>
Mon, 11 Feb 2013 18:28:54 +0000 (13:28 -0500)
commit111936ff3bc33585b475c1033fc98cd6b3370a74
treec561cf4562672e29145bb16faff448639e18e259
parent07728b77c03dc0721daaf551976d95e6f714af1a
mmc: mvsdio: implement a Device Tree binding

This patch adds a simple Device Tree binding for the mvsdio driver, as
well as the necessary documentation for it. Compatibility with non-DT
platforms is preserved, by keeping the platform_data based
initialization.

We introduce a small difference between non-DT and DT platforms: DT
platforms are required to provide a clocks = <...> property, which the
driver uses to get the frequency of the clock that goes to the SDIO
IP. The behaviour on non-DT platforms is kept unchanged: a clock
reference is not mandatory, but the clock frequency must be passed in
the "clock" field of the mvsdio_platform_data structure.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Stefan Peter <s.peter@mpl.ch>
Tested-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Chris Ball <cjb@laptop.org>
Documentation/devicetree/bindings/mmc/orion-sdio.txt [new file with mode: 0644]
drivers/mmc/host/mvsdio.c
This page took 0.027518 seconds and 5 git commands to generate.