From e180a3e0e296dea25febbb757ff8f016ebb0ed58 Mon Sep 17 00:00:00 2001 From: Eric Miao Date: Fri, 8 Aug 2008 14:59:03 +0800 Subject: [PATCH] --- yaml --- r: 112426 b: refs/heads/master c: c0b1541fc7d3969b662f39214c58fe796e9e4a51 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/arm/mach-pxa/colibri.c | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index fc0bf5717ae5..2cc7935e0412 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 4a5c5eabd4b2dd437bcb0a8d95b4eb5d38f60e54 +refs/heads/master: c0b1541fc7d3969b662f39214c58fe796e9e4a51 diff --git a/trunk/arch/arm/mach-pxa/colibri.c b/trunk/arch/arm/mach-pxa/colibri.c index abce13c846c5..e8473624427e 100644 --- a/trunk/arch/arm/mach-pxa/colibri.c +++ b/trunk/arch/arm/mach-pxa/colibri.c @@ -29,12 +29,17 @@ #include #include #include -#include +#include #include #include "generic.h" #include "devices.h" +static unsigned long colibri_pin_config[] __initdata = { + GPIO78_nCS_2, /* Ethernet CS */ + GPIO114_GPIO, /* Ethernet IRQ */ +}; + /* * Flash */ @@ -116,9 +121,7 @@ static struct platform_device *colibri_devices[] __initdata = { static void __init colibri_init(void) { - /* DM9000 LAN */ - pxa_gpio_mode(GPIO78_nCS_2_MD); - pxa_gpio_mode(GPIO_DM9000 | GPIO_IN); + pxa2xx_mfp_config(ARRAY_AND_SIZE(colibri_pin_config)); platform_add_devices(colibri_devices, ARRAY_SIZE(colibri_devices)); }