Commit 5dd8a010 authored by Thomas Petazzoni's avatar Thomas Petazzoni Committed by Arnd Bergmann

arm: kirkwood: mplcec4: 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 mplcec4 board to
use the Device Tree to probe the SDIO controller and to mux the pins
of the SDIO interface correctly.

This patch has not been tested, it remains to be tested by a person
having access to the hardware.
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Stefan Peter <s.peter@mpl.ch>
Signed-off-by: default avatarJason Cooper <jason@lakedaemon.net>
parent a49da46c
...@@ -20,12 +20,11 @@ ocp@f1000000 { ...@@ -20,12 +20,11 @@ ocp@f1000000 {
pinctrl: pinctrl@10000 { pinctrl: pinctrl@10000 {
pinctrl-0 = < &pmx_nand &pmx_uart0 pinctrl-0 = < &pmx_nand &pmx_uart0
&pmx_led_health &pmx_sdio &pmx_led_health
&pmx_sata0 &pmx_sata1 &pmx_sata0 &pmx_sata1
&pmx_led_user1o &pmx_led_user1o
&pmx_led_user1g &pmx_led_user0o &pmx_led_user1g &pmx_led_user0o
&pmx_led_user0g &pmx_led_misc &pmx_led_user0g &pmx_led_misc
&pmx_sdio_cd
>; >;
pinctrl-names = "default"; pinctrl-names = "default";
...@@ -133,6 +132,14 @@ sata@80000 { ...@@ -133,6 +132,14 @@ sata@80000 {
status = "okay"; status = "okay";
}; };
mvsdio@90000 {
pinctrl-0 = <&pmx_sdio &pmx_sdio_cd>;
pinctrl-names = "default";
status = "okay";
cd-gpios = <&gpio1 15 0>;
/* No WP GPIO */
};
}; };
gpio-leds { gpio-leds {
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/mv643xx_eth.h> #include <linux/mv643xx_eth.h>
#include <linux/platform_data/mmc-mvsdio.h>
#include "common.h" #include "common.h"
static struct mv643xx_eth_platform_data mplcec4_ge00_data = { static struct mv643xx_eth_platform_data mplcec4_ge00_data = {
...@@ -23,11 +22,6 @@ static struct mv643xx_eth_platform_data mplcec4_ge01_data = { ...@@ -23,11 +22,6 @@ static struct mv643xx_eth_platform_data mplcec4_ge01_data = {
.phy_addr = MV643XX_ETH_PHY_ADDR(2), .phy_addr = MV643XX_ETH_PHY_ADDR(2),
}; };
static struct mvsdio_platform_data mplcec4_mvsdio_data = {
.gpio_card_detect = 47, /* MPP47 used as SD card detect */
};
void __init mplcec4_init(void) void __init mplcec4_init(void)
{ {
/* /*
...@@ -35,7 +29,6 @@ void __init mplcec4_init(void) ...@@ -35,7 +29,6 @@ void __init mplcec4_init(void)
*/ */
kirkwood_ge00_init(&mplcec4_ge00_data); kirkwood_ge00_init(&mplcec4_ge00_data);
kirkwood_ge01_init(&mplcec4_ge01_data); kirkwood_ge01_init(&mplcec4_ge01_data);
kirkwood_sdio_init(&mplcec4_mvsdio_data);
kirkwood_pcie_init(KW_PCIE0); kirkwood_pcie_init(KW_PCIE0);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment