diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2011-09-14 17:01:35 (GMT) |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2011-10-03 13:52:15 (GMT) |
commit | 69a852425883a4abd8dc726da34e3149a08ee95d (patch) | |
tree | d919f003c01ee119e4938d67b15a3cdb9f0c407c /drivers/net/fm/p4080.c | |
parent | 2b3a1cdd9ed14441ae91845851aaf91adddbafc0 (diff) | |
download | u-boot-69a852425883a4abd8dc726da34e3149a08ee95d.tar.xz |
fm-eth: Add ability for board code to disable a port
The SoC configuration may have more ports enabled than a given board
actually can utilize. Add a routinue that allows the board code to
disable a port that it knows isn't being used.
fm_disable_port() needs to be called before cpu_eth_init().
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'drivers/net/fm/p4080.c')
-rw-r--r-- | drivers/net/fm/p4080.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/fm/p4080.c b/drivers/net/fm/p4080.c index 6761a2f..791caab 100644 --- a/drivers/net/fm/p4080.c +++ b/drivers/net/fm/p4080.c @@ -44,6 +44,12 @@ static int is_device_disabled(enum fm_port port) return port_to_devdisr[port] & devdisr2; } +void fman_disable_port(enum fm_port port) +{ + ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR); + setbits_be32(&gur->devdisr2, port_to_devdisr[port]); +} + phy_interface_t fman_port_enet_if(enum fm_port port) { ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR); |