mirror of
https://xff.cz/git/u-boot/
synced 2025-10-21 01:51:11 +02:00
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>
This commit is contained in:
@@ -123,6 +123,14 @@ void fman_enet_init(void)
|
||||
return ;
|
||||
}
|
||||
|
||||
void fm_disable_port(enum fm_port port)
|
||||
{
|
||||
int i = fm_port_to_index(port);
|
||||
|
||||
fm_info[i].enabled = 0;
|
||||
fman_disable_port(port);
|
||||
}
|
||||
|
||||
void fm_info_set_mdio(enum fm_port port, struct mii_dev *bus)
|
||||
{
|
||||
int i = fm_port_to_index(port);
|
||||
|
Reference in New Issue
Block a user