diff options
author | Anatolij Gustschin <agust@denx.de> | 2010-02-26 07:00:48 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-27 05:34:35 -0500 |
commit | 60ab4361adc188fb47da1c4892cc7a2bb621efef (patch) | |
tree | 7949c204769f3bf400f9c4806082a122bc6e8e79 /drivers/net/fs_enet/fs_enet-main.c | |
parent | fcb6a1c83e48c30ff99624e9c46ce301707ede05 (diff) |
fs_enet: Add support for MPC512x to fs_enet driver
Extend the fs_enet driver to support MPC512x FEC.
Enable it with CONFIG_FS_ENET_MPC5121_FEC option.
Signed-off-by: John Rigby <jcrigby@gmail.com>
Signed-off-by: Piotr Ziecik <kosmo@semihalf.com>
Signed-off-by: Wolfgang Denk <wd@denx.de>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/fs_enet/fs_enet-main.c')
-rw-r--r-- | drivers/net/fs_enet/fs_enet-main.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/fs_enet/fs_enet-main.c b/drivers/net/fs_enet/fs_enet-main.c index c34a7e0a28ed..4297021214d1 100644 --- a/drivers/net/fs_enet/fs_enet-main.c +++ b/drivers/net/fs_enet/fs_enet-main.c | |||
@@ -1094,11 +1094,18 @@ static struct of_device_id fs_enet_match[] = { | |||
1094 | }, | 1094 | }, |
1095 | #endif | 1095 | #endif |
1096 | #ifdef CONFIG_FS_ENET_HAS_FEC | 1096 | #ifdef CONFIG_FS_ENET_HAS_FEC |
1097 | #ifdef CONFIG_FS_ENET_MPC5121_FEC | ||
1098 | { | ||
1099 | .compatible = "fsl,mpc5121-fec", | ||
1100 | .data = (void *)&fs_fec_ops, | ||
1101 | }, | ||
1102 | #else | ||
1097 | { | 1103 | { |
1098 | .compatible = "fsl,pq1-fec-enet", | 1104 | .compatible = "fsl,pq1-fec-enet", |
1099 | .data = (void *)&fs_fec_ops, | 1105 | .data = (void *)&fs_fec_ops, |
1100 | }, | 1106 | }, |
1101 | #endif | 1107 | #endif |
1108 | #endif | ||
1102 | {} | 1109 | {} |
1103 | }; | 1110 | }; |
1104 | MODULE_DEVICE_TABLE(of, fs_enet_match); | 1111 | MODULE_DEVICE_TABLE(of, fs_enet_match); |