[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20091216070726.GB13160@jasper.tkos.co.il>
Date: Wed, 16 Dec 2009 09:07:27 +0200
From: Baruch Siach <baruch@...s.co.il>
To: Greg Ungerer <gerg@...pgear.com>
Cc: Sascha Hauer <s.hauer@...gutronix.de>, netdev@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH 3/4] fec: add support for Freescale i.MX25 PDK (3DS)
On Wed, Dec 16, 2009 at 04:49:32PM +1000, Greg Ungerer wrote:
>
> Hi Baruch,
>
> Baruch Siach wrote:
[snip]
> >diff --git a/include/linux/fec.h b/include/linux/fec.h
> >new file mode 100644
> >index 0000000..5d3523d
> >--- /dev/null
> >+++ b/include/linux/fec.h
> >@@ -0,0 +1,21 @@
> >+/* include/linux/fec.h
> >+ *
> >+ * Copyright (c) 2009 Orex Computed Radiography
> >+ * Baruch Siach <baruch@...s.co.il>
> >+ *
> >+ * Header file for the FEC platform data
> >+ *
> >+ * This program is free software; you can redistribute it and/or modify
> >+ * it under the terms of the GNU General Public License version 2 as
> >+ * published by the Free Software Foundation.
> >+ */
> >+#ifndef __LINUX_FEC_H__
> >+#define __LINUX_FEC_H__
> >+
> >+#include <linux/phy.h>
> >+
> >+struct fec_platform_data {
> >+ phy_interface_t phy;
> >+};
> >+
> >+#endif
>
> Can't this go in drivers/net/fec.h with the other fec data structs?
No. The platform code (arch/arm/mach-mx25/mx25pdk.c in my case) must be able
to use this struct to pass the necessary information to the driver. See for
example include/linux/smsc911x.h, include/linux/smc91*.h, etc.
baruch
--
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch@...s.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists