aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-kirkwood/db88f6281-bp-setup.c
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2009-02-14 03:15:55 -0500
committerNicolas Pitre <nico@cam.org>2009-02-26 20:22:26 -0500
commit8235ee009cd839265f5dc2dace2758471a823e68 (patch)
tree922072825553b5059f6532d1eaeb2308835d6a39 /arch/arm/mach-kirkwood/db88f6281-bp-setup.c
parent75bb6b9aab3255f440ef4e72a31978d1681105d6 (diff)
[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 @@
22#include <asm/mach/arch.h> 22#include <asm/mach/arch.h>
23#include <asm/mach/pci.h> 23#include <asm/mach/pci.h>
24#include <mach/kirkwood.h> 24#include <mach/kirkwood.h>
25#include <plat/mvsdio.h>
25#include "common.h" 26#include "common.h"
27#include "mpp.h"
26 28
27static struct mv643xx_eth_platform_data db88f6281_ge00_data = { 29static struct mv643xx_eth_platform_data db88f6281_ge00_data = {
28 .phy_addr = MV643XX_ETH_PHY_ADDR(8), 30 .phy_addr = MV643XX_ETH_PHY_ADDR(8),
@@ -32,18 +34,31 @@ static struct mv_sata_platform_data db88f6281_sata_data = {
32 .n_ports = 2, 34 .n_ports = 2,
33}; 35};
34 36
37static struct mvsdio_platform_data db88f6281_mvsdio_data = {
38 .gpio_write_protect = 37,
39 .gpio_card_detect = 38,
40};
41
42static unsigned int db88f6281_mpp_config[] __initdata = {
43 MPP37_GPIO,
44 MPP38_GPIO,
45 0
46};
47
35static void __init db88f6281_init(void) 48static void __init db88f6281_init(void)
36{ 49{
37 /* 50 /*
38 * Basic setup. Needs to be called early. 51 * Basic setup. Needs to be called early.
39 */ 52 */
40 kirkwood_init(); 53 kirkwood_init();
54 kirkwood_mpp_conf(db88f6281_mpp_config);
41 55
42 kirkwood_ehci_init(); 56 kirkwood_ehci_init();
43 kirkwood_ge00_init(&db88f6281_ge00_data); 57 kirkwood_ge00_init(&db88f6281_ge00_data);
44 kirkwood_rtc_init(); 58 kirkwood_rtc_init();
45 kirkwood_sata_init(&db88f6281_sata_data); 59 kirkwood_sata_init(&db88f6281_sata_data);
46 kirkwood_uart0_init(); 60 kirkwood_uart0_init();
61 kirkwood_sdio_init(&db88f6281_mvsdio_data);
47} 62}
48 63
49static int __init db88f6281_pci_init(void) 64static int __init db88f6281_pci_init(void)