mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 01:02:19 +02:00
net: macb: using AT91FAMILY replace #ifdeferry
Using CONFIG_AT91FAMILY replace #ifdeferry for atmel SoC Signed-off-by: Bo Shen <voice.shen@atmel.com> Acked-by: Andreas Bießmann <andreas.devel@googlemail.com>
This commit is contained in:
@@ -474,19 +474,13 @@ static int macb_init(struct eth_device *netdev, bd_t *bd)
|
|||||||
|
|
||||||
/* choose RMII or MII mode. This depends on the board */
|
/* choose RMII or MII mode. This depends on the board */
|
||||||
#ifdef CONFIG_RMII
|
#ifdef CONFIG_RMII
|
||||||
#if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260) || \
|
#ifdef CONFIG_AT91FAMILY
|
||||||
defined(CONFIG_AT91SAM9263) || defined(CONFIG_AT91SAM9G20) || \
|
|
||||||
defined(CONFIG_AT91SAM9G45) || defined(CONFIG_AT91SAM9M10G45) || \
|
|
||||||
defined(CONFIG_AT91SAM9XE) || defined(CONFIG_AT91SAM9X5)
|
|
||||||
macb_writel(macb, USRIO, MACB_BIT(RMII) | MACB_BIT(CLKEN));
|
macb_writel(macb, USRIO, MACB_BIT(RMII) | MACB_BIT(CLKEN));
|
||||||
#else
|
#else
|
||||||
macb_writel(macb, USRIO, 0);
|
macb_writel(macb, USRIO, 0);
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260) || \
|
#ifdef CONFIG_AT91FAMILY
|
||||||
defined(CONFIG_AT91SAM9263) || defined(CONFIG_AT91SAM9G20) || \
|
|
||||||
defined(CONFIG_AT91SAM9G45) || defined(CONFIG_AT91SAM9M10G45) || \
|
|
||||||
defined(CONFIG_AT91SAM9XE) || defined(CONFIG_AT91SAM9X5)
|
|
||||||
macb_writel(macb, USRIO, MACB_BIT(CLKEN));
|
macb_writel(macb, USRIO, MACB_BIT(CLKEN));
|
||||||
#else
|
#else
|
||||||
macb_writel(macb, USRIO, MACB_BIT(MII));
|
macb_writel(macb, USRIO, MACB_BIT(MII));
|
||||||
|
Reference in New Issue
Block a user