summaryrefslogtreecommitdiff
path: root/drivers/net/fm/t4240.c
diff options
context:
space:
mode:
authorValentin Longchamp <valentin.longchamp@keymile.com>2013-10-18 11:47:21 +0200
committerYork Sun <yorksun@freescale.com>2013-10-24 09:35:59 -0700
commitf51d3b71d4d3eacfbbc6e2cf3fa197774df5f638 (patch)
tree7fba1071d269735aab40c8dcab7027f2811b09af /drivers/net/fm/t4240.c
parent7e157b0ade85282a76db27cbf0ab8a2370d4d7b6 (diff)
downloadu-boot-imx-f51d3b71d4d3eacfbbc6e2cf3fa197774df5f638.zip
u-boot-imx-f51d3b71d4d3eacfbbc6e2cf3fa197774df5f638.tar.gz
u-boot-imx-f51d3b71d4d3eacfbbc6e2cf3fa197774df5f638.tar.bz2
net/fman: add a fm_enable_port function
This can be useful if one wants to disable an interface in u-boot because u-boot should not manage it but then later reenable it for FDT fixing or if the kernel uses this interface. Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com> [York Sun: fix conflict in fm_eth.h] Acked-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'drivers/net/fm/t4240.c')
-rw-r--r--drivers/net/fm/t4240.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/fm/t4240.c b/drivers/net/fm/t4240.c
index 6253f22..1eacb22 100644
--- a/drivers/net/fm/t4240.c
+++ b/drivers/net/fm/t4240.c
@@ -49,6 +49,13 @@ void fman_disable_port(enum fm_port port)
setbits_be32(&gur->devdisr2, port_to_devdisr[port]);
}
+void fman_enable_port(enum fm_port port)
+{
+ ccsr_gur_t *gur = (void __iomem *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
+
+ clrbits_be32(&gur->devdisr2, port_to_devdisr[port]);
+}
+
phy_interface_t fman_port_enet_if(enum fm_port port)
{
ccsr_gur_t *gur = (void __iomem *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);