summaryrefslogtreecommitdiff
path: root/arch/arm/mach-kirkwood/db88f6281-bp-setup.c
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2009-02-14 11:15:55 +0300
committerNicolas Pitre <nico@cam.org>2009-02-27 04:22:26 +0300
commit8235ee009cd839265f5dc2dace2758471a823e68 (patch)
tree922072825553b5059f6532d1eaeb2308835d6a39 /arch/arm/mach-kirkwood/db88f6281-bp-setup.c
parent75bb6b9aab3255f440ef4e72a31978d1681105d6 (diff)
downloadlinux-8235ee009cd839265f5dc2dace2758471a823e68.tar.xz
[ARM] Kirkwood: SDIO driver registration for DB6281 and RD6281
Signed-off-by: Nicolas Pitre <nico@marvell.com>
Diffstat (limited to 'arch/arm/mach-kirkwood/db88f6281-bp-setup.c')
-rw-r--r--arch/arm/mach-kirkwood/db88f6281-bp-setup.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/mach-kirkwood/db88f6281-bp-setup.c b/arch/arm/mach-kirkwood/db88f6281-bp-setup.c
index a14c2948c62a..5c3b40d6e093 100644
--- a/arch/arm/mach-kirkwood/db88f6281-bp-setup.c
+++ b/arch/arm/mach-kirkwood/db88f6281-bp-setup.c
@@ -22,7 +22,9 @@
#include <asm/mach/arch.h>
#include <asm/mach/pci.h>
#include <mach/kirkwood.h>
+#include <plat/mvsdio.h>
#include "common.h"
+#include "mpp.h"
static struct mv643xx_eth_platform_data db88f6281_ge00_data = {
.phy_addr = MV643XX_ETH_PHY_ADDR(8),
@@ -32,18 +34,31 @@ static struct mv_sata_platform_data db88f6281_sata_data = {
.n_ports = 2,
};
+static struct mvsdio_platform_data db88f6281_mvsdio_data = {
+ .gpio_write_protect = 37,
+ .gpio_card_detect = 38,
+};
+
+static unsigned int db88f6281_mpp_config[] __initdata = {
+ MPP37_GPIO,
+ MPP38_GPIO,
+ 0
+};
+
static void __init db88f6281_init(void)
{
/*
* Basic setup. Needs to be called early.
*/
kirkwood_init();
+ kirkwood_mpp_conf(db88f6281_mpp_config);
kirkwood_ehci_init();
kirkwood_ge00_init(&db88f6281_ge00_data);
kirkwood_rtc_init();
kirkwood_sata_init(&db88f6281_sata_data);
kirkwood_uart0_init();
+ kirkwood_sdio_init(&db88f6281_mvsdio_data);
}
static int __init db88f6281_pci_init(void)