aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-12-21 09:49:11 -0500
committerArnd Bergmann <arnd@arndb.de>2013-02-28 12:57:10 -0500
commita49da46c5274228334393083a6635d04eee04363 (patch)
treea6d697d635eebd596538f5daa6a0f8fd73cc1304 /arch/arm
parentec05fcf679fe97994b5355ebf1d7d8cb0020eacf (diff)
arm: kirkwood: dreamplug: use Device Tree to probe SDIO
Now that the mvsdio driver has a Device Tree binding, and the SDIO controller is declared in kirkwood.dtsi, migrate the dreamplug board to use the Device Tree to probe the SDIO controller and to mux this interface properly. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Jason Cooper <jason@lakedaemon.net> Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/boot/dts/kirkwood-dreamplug.dts7
-rw-r--r--arch/arm/mach-kirkwood/board-dreamplug.c6
2 files changed, 7 insertions, 6 deletions
diff --git a/arch/arm/boot/dts/kirkwood-dreamplug.dts b/arch/arm/boot/dts/kirkwood-dreamplug.dts
index f2d386c95b07..ef2d8c705709 100644
--- a/arch/arm/boot/dts/kirkwood-dreamplug.dts
+++ b/arch/arm/boot/dts/kirkwood-dreamplug.dts
@@ -74,6 +74,13 @@
74 status = "okay"; 74 status = "okay";
75 nr-ports = <1>; 75 nr-ports = <1>;
76 }; 76 };
77
78 mvsdio@90000 {
79 pinctrl-0 = <&pmx_sdio>;
80 pinctrl-names = "default";
81 status = "okay";
82 /* No CD or WP GPIOs */
83 };
77 }; 84 };
78 85
79 gpio-leds { 86 gpio-leds {
diff --git a/arch/arm/mach-kirkwood/board-dreamplug.c b/arch/arm/mach-kirkwood/board-dreamplug.c
index 08248e24ffcd..0903242c00dc 100644
--- a/arch/arm/mach-kirkwood/board-dreamplug.c
+++ b/arch/arm/mach-kirkwood/board-dreamplug.c
@@ -15,7 +15,6 @@
15#include <linux/init.h> 15#include <linux/init.h>
16#include <linux/mv643xx_eth.h> 16#include <linux/mv643xx_eth.h>
17#include <linux/gpio.h> 17#include <linux/gpio.h>
18#include <linux/platform_data/mmc-mvsdio.h>
19#include "common.h" 18#include "common.h"
20 19
21static struct mv643xx_eth_platform_data dreamplug_ge00_data = { 20static struct mv643xx_eth_platform_data dreamplug_ge00_data = {
@@ -26,10 +25,6 @@ static struct mv643xx_eth_platform_data dreamplug_ge01_data = {
26 .phy_addr = MV643XX_ETH_PHY_ADDR(1), 25 .phy_addr = MV643XX_ETH_PHY_ADDR(1),
27}; 26};
28 27
29static struct mvsdio_platform_data dreamplug_mvsdio_data = {
30 /* unfortunately the CD signal has not been connected */
31};
32
33void __init dreamplug_init(void) 28void __init dreamplug_init(void)
34{ 29{
35 /* 30 /*
@@ -37,5 +32,4 @@ void __init dreamplug_init(void)
37 */ 32 */
38 kirkwood_ge00_init(&dreamplug_ge00_data); 33 kirkwood_ge00_init(&dreamplug_ge00_data);
39 kirkwood_ge01_init(&dreamplug_ge01_data); 34 kirkwood_ge01_init(&dreamplug_ge01_data);
40 kirkwood_sdio_init(&dreamplug_mvsdio_data);
41} 35}