[PATCH 1/1] net/fec: iMX53 needs gasket for both MII and RMII
Troy Kisky
troy.kisky at boundarydevices.com
Wed Jun 29 18:50:56 EDT 2011
On 6/29/2011 3:38 PM, Troy Kisky wrote:
> Currently, only RMII interfaces are using the gasket.
> But, the iMX53 needs to enable the gasket for MII
> mode as well. The iMX51 has no gasket registers. So,
> add a use_gasket field to fec_platform_data to not restrict
> same kernel for both iMX51/53 boards.
>
> iMX28 boards don't need use_gasket, as they have
> FEC_QUIRK_ENET_MAC.
> ---
> arch/arm/mach-mx5/board-mx50_rdp.c | 1 +
> arch/arm/mach-mx5/board-mx53_evk.c | 1 +
> arch/arm/mach-mx5/board-mx53_loco.c | 1 +
> arch/arm/mach-mx5/board-mx53_smd.c | 1 +
> drivers/net/fec.c | 11 ++++++++---
> include/linux/fec.h | 1 +
> 6 files changed, 13 insertions(+), 3 deletions(-)
...
> diff --git a/include/linux/fec.h b/include/linux/fec.h
> index bcff455..c0a7ad8 100644
> --- a/include/linux/fec.h
> +++ b/include/linux/fec.h
> @@ -19,6 +19,7 @@
> struct fec_platform_data {
> phy_interface_t phy;
> unsigned char mac[ETH_ALEN];
> + unsigned use_gasket : 1;
> };
>
> #endif
I'll repost with checkpatch.pl fixes if approved.
Thanks
Troy
More information about the linux-arm-kernel
mailing list