mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 23:51:33 +00:00
net: macb: enable GMAC IP without GE feature support
The User Register in GMAC IP is used to select interface type. When with GE feature, it is used to select interface between RGMII and GMII. If without GE feature, it is used to select interface between MII and RMII. Signed-off-by: Bo Shen <voice.shen@atmel.com> Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
This commit is contained in:
parent
7df4486d04
commit
cabf61ce4b
1 changed files with 7 additions and 1 deletions
|
@ -566,7 +566,13 @@ static int macb_init(struct eth_device *netdev, bd_t *bd)
|
|||
macb_writel(macb, TBQP, macb->tx_ring_dma);
|
||||
|
||||
if (macb_is_gem(macb)) {
|
||||
#ifdef CONFIG_RGMII
|
||||
/*
|
||||
* When the GMAC IP with GE feature, this bit is used to
|
||||
* select interface between RGMII and GMII.
|
||||
* When the GMAC IP without GE feature, this bit is used
|
||||
* to select interface between RMII and MII.
|
||||
*/
|
||||
#if defined(CONFIG_RGMII) || defined(CONFIG_RMII)
|
||||
gem_writel(macb, UR, GEM_BIT(RGMII));
|
||||
#else
|
||||
gem_writel(macb, UR, 0);
|
||||
|
|
Loading…
Reference in a new issue