[PATCH] Allow the i.mx25 3DStack target to compile.

Sascha Hauer s.hauer at pengutronix.de
Thu May 6 02:51:05 EDT 2010


On Mon, May 03, 2010 at 11:06:58PM +0200, Jean-Christophe DUBOIS wrote:
> The FEC driver is not compiling in the actual state. Fix it.

The platform data support patch ogt lost somewhere along the way. Does
it only compile with this change or does it work aswell? It seems the
i.MX25PDK uses RMII mode which is not present in the current driver.

Sascha

> 
> Signed-off-by: Jean-Chrsitophe DUBOIS <jcd at tribudubois.net>
> ---
>  arch/arm/mach-mx25/mx25pdk.c |    9 ++++-----
>  1 files changed, 4 insertions(+), 5 deletions(-)
> 
> diff --git a/arch/arm/mach-mx25/mx25pdk.c b/arch/arm/mach-mx25/mx25pdk.c
> index 6f06089..cbf45c0 100644
> --- a/arch/arm/mach-mx25/mx25pdk.c
> +++ b/arch/arm/mach-mx25/mx25pdk.c
> @@ -22,7 +22,6 @@
>  #include <linux/clk.h>
>  #include <linux/irq.h>
>  #include <linux/gpio.h>
> -#include <linux/fec.h>
>  #include <linux/platform_device.h>
>  
>  #include <mach/hardware.h>
> @@ -56,8 +55,9 @@ static struct pad_desc mx25pdk_pads[] = {
>  	MX25_PAD_D12__GPIO_4_8, /* FEC_RESET_B, GPIO 104 */
>  };
>  
> -static struct fec_platform_data mx25_fec_pdata = {
> -        .phy    = PHY_INTERFACE_MODE_RMII,
> +static struct platform_device *platform_devices[] __initdata = {
> +	&mxc_usbh2,
> +        &mx25_fec_device,
>  };
>  
>  #define FEC_ENABLE_GPIO		35
> @@ -83,10 +83,9 @@ static void __init mx25pdk_init(void)
>  			ARRAY_SIZE(mx25pdk_pads));
>  
>  	mxc_register_device(&mxc_uart_device0, &uart_pdata);
> -	mxc_register_device(&mxc_usbh2, NULL);
>  
>  	mx25pdk_fec_reset();
> -	mxc_register_device(&mx25_fec_device, &mx25_fec_pdata);
> +        platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices));
>  }
>  
>  static void __init mx25pdk_timer_init(void)
> -- 
> 1.7.0.4
> 
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the linux-arm mailing list