* [PATCH net-next] fec: Add support for Coldfire M5441x enet-mac.
@ 2012-06-06 17:06 Steven King
2012-06-06 17:34 ` Jan Ceuleers
0 siblings, 1 reply; 4+ messages in thread
From: Steven King @ 2012-06-06 17:06 UTC (permalink / raw)
To: netdev; +Cc: uClinux development list, Greg Ungerer
Add support for the Freescale Coldfire M5441x; as these parts have an
enet-mac, add a quirk to distinguish them from the other Coldfire parts so we
can use the existing enet-mac support.
Signed-off-by: Steven king <sfking@fdwdc.com>
---
drivers/net/ethernet/freescale/Kconfig | 5 ++---
drivers/net/ethernet/freescale/fec.c | 6 +++++-
drivers/net/ethernet/freescale/fec.h | 3 ++-
3 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/drivers/net/ethernet/freescale/Kconfig b/drivers/net/ethernet/freescale/Kconfig
index 3574e14..f9aa244 100644
--- a/drivers/net/ethernet/freescale/Kconfig
+++ b/drivers/net/ethernet/freescale/Kconfig
@@ -7,7 +7,7 @@ config NET_VENDOR_FREESCALE
default y
depends on FSL_SOC || QUICC_ENGINE || CPM1 || CPM2 || PPC_MPC512x || \
M523x || M527x || M5272 || M528x || M520x || M532x || \
- ARCH_MXC || ARCH_MXS || (PPC_MPC52xx && PPC_BESTCOMM)
+ M5441x || ARCH_MXC || ARCH_MXS || (PPC_MPC52xx && PPC_BESTCOMM)
---help---
If you have a network (Ethernet) card belonging to this class, say Y
and read the Ethernet-HOWTO, available from
@@ -22,8 +22,7 @@ if NET_VENDOR_FREESCALE
config FEC
tristate "FEC ethernet controller (of ColdFire and some i.MX CPUs)"
- depends on (M523x || M527x || M5272 || M528x || M520x || M532x || \
- ARCH_MXC || SOC_IMX28)
+ depends on (M523x || M527x || M5272 || M528x || M520x || M532x || M5441x || ARCH_MXC || SOC_IMX28)
default ARCH_MXC || SOC_IMX28 if ARM
select PHYLIB
---help---
diff --git a/drivers/net/ethernet/freescale/fec.c b/drivers/net/ethernet/freescale/fec.c
index ff7f4c5..9567667 100644
--- a/drivers/net/ethernet/freescale/fec.c
+++ b/drivers/net/ethernet/freescale/fec.c
@@ -94,6 +94,9 @@ static struct platform_device_id fec_devtype[] = {
.name = "imx6q-fec",
.driver_data = FEC_QUIRK_ENET_MAC | FEC_QUIRK_HAS_GBIT,
}, {
+ .name = "enet-fec",
+ .driver_data = FEC_QUIRK_ENET_MAC,
+ }, {
/* sentinel */
}
};
@@ -187,7 +190,8 @@ MODULE_PARM_DESC(macaddr, "FEC Ethernet MAC address");
* account when setting it.
*/
#if defined(CONFIG_M523x) || defined(CONFIG_M527x) || defined(CONFIG_M528x) || \
- defined(CONFIG_M520x) || defined(CONFIG_M532x) || defined(CONFIG_ARM)
+ defined(CONFIG_M520x) || defined(CONFIG_M532x) || defined(CONFIG_ARM) || \
+ defined(CONFIG_M5441x)
#define OPT_FRAME_SIZE (PKT_MAXBUF_SIZE << 16)
#else
#define OPT_FRAME_SIZE 0
diff --git a/drivers/net/ethernet/freescale/fec.h b/drivers/net/ethernet/freescale/fec.h
index 8408c62..298cfb7 100644
--- a/drivers/net/ethernet/freescale/fec.h
+++ b/drivers/net/ethernet/freescale/fec.h
@@ -15,7 +15,8 @@
#if defined(CONFIG_M523x) || defined(CONFIG_M527x) || defined(CONFIG_M528x) || \
defined(CONFIG_M520x) || defined(CONFIG_M532x) || \
- defined(CONFIG_ARCH_MXC) || defined(CONFIG_SOC_IMX28)
+ defined(CONFIG_ARCH_MXC) || defined(CONFIG_SOC_IMX28) || \
+ defined(CONFIG_M5441x)
/*
* Just figures, Motorola would have to change the offsets for
* registers in the same peripheral device on different models
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] fec: Add support for Coldfire M5441x enet-mac.
2012-06-06 17:06 [PATCH net-next] fec: Add support for Coldfire M5441x enet-mac Steven King
@ 2012-06-06 17:34 ` Jan Ceuleers
2012-06-06 20:05 ` Steven King
0 siblings, 1 reply; 4+ messages in thread
From: Jan Ceuleers @ 2012-06-06 17:34 UTC (permalink / raw)
To: Steven King; +Cc: netdev, uClinux development list, Greg Ungerer
On 06/06/2012 07:06 PM, Steven King wrote:
> Add support for the Freescale Coldfire M5441x; as these parts have an
> enet-mac, add a quirk to distinguish them from the other Coldfire parts so we
> can use the existing enet-mac support.
Stephen,
You are activating certain functionality based on whether M5441x is
defined. But where is this being defined? Should this not be added in a
Kconfig somewhere as a platform option?
Thanks, Jan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] fec: Add support for Coldfire M5441x enet-mac.
2012-06-06 17:34 ` Jan Ceuleers
@ 2012-06-06 20:05 ` Steven King
2012-06-07 21:47 ` David Miller
0 siblings, 1 reply; 4+ messages in thread
From: Steven King @ 2012-06-06 20:05 UTC (permalink / raw)
To: Jan Ceuleers; +Cc: netdev, uClinux development list, Greg Ungerer
On Wednesday 06 June 2012 10:34:21 am Jan Ceuleers wrote:
> On 06/06/2012 07:06 PM, Steven King wrote:
> > Add support for the Freescale Coldfire M5441x; as these parts have an
> > enet-mac, add a quirk to distinguish them from the other Coldfire parts
> > so we can use the existing enet-mac support.
>
> Stephen,
>
> You are activating certain functionality based on whether M5441x is
> defined. But where is this being defined? Should this not be added in a
> Kconfig somewhere as a platform option?
Yes. Hopefully, once I send Greg my updated patches to add support for the
m5441x, then it will be a selection in the m68k port. I just happened to
have these ready to go after David chastised me for sending them too late in
the last merge cycle...
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] fec: Add support for Coldfire M5441x enet-mac.
2012-06-06 20:05 ` Steven King
@ 2012-06-07 21:47 ` David Miller
0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2012-06-07 21:47 UTC (permalink / raw)
To: sfking; +Cc: jan.ceuleers, netdev, uclinux-dev, gerg
From: Steven King <sfking@fdwdc.com>
Date: Wed, 6 Jun 2012 13:05:48 -0700
> On Wednesday 06 June 2012 10:34:21 am Jan Ceuleers wrote:
>> On 06/06/2012 07:06 PM, Steven King wrote:
>> > Add support for the Freescale Coldfire M5441x; as these parts have an
>> > enet-mac, add a quirk to distinguish them from the other Coldfire parts
>> > so we can use the existing enet-mac support.
>>
>> Stephen,
>>
>> You are activating certain functionality based on whether M5441x is
>> defined. But where is this being defined? Should this not be added in a
>> Kconfig somewhere as a platform option?
>
> Yes. Hopefully, once I send Greg my updated patches to add support for the
> m5441x, then it will be a selection in the m68k port. I just happened to
> have these ready to go after David chastised me for sending them too late in
> the last merge cycle...
I don't see any point in applying this before the necessary infrastructure
this depend upon is in the tree.
Therefore I'm not applying this.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-06-07 21:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-06 17:06 [PATCH net-next] fec: Add support for Coldfire M5441x enet-mac Steven King
2012-06-06 17:34 ` Jan Ceuleers
2012-06-06 20:05 ` Steven King
2012-06-07 21:47 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).