[U-Boot] [PATCH 2/4] NET: macb: support sama5d3x devices
Andreas Bießmann
andreas.devel at googlemail.com
Thu Mar 7 10:15:47 CET 2013
Dear Bo Shen,
On 28.02.13 08:00, Bo Shen wrote:
> Add macb support for sama5d3x devices
>
> Signed-off-by: Bo Shen <voice.shen at atmel.com>
> ---
> drivers/net/macb.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/macb.c b/drivers/net/macb.c
> index 8bacbda..9e7fbc6 100644
> --- a/drivers/net/macb.c
> +++ b/drivers/net/macb.c
> @@ -469,7 +469,8 @@ static int macb_init(struct eth_device *netdev, bd_t *bd)
> #if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260) || \
> defined(CONFIG_AT91SAM9263) || defined(CONFIG_AT91SAM9G20) || \
> defined(CONFIG_AT91SAM9G45) || defined(CONFIG_AT91SAM9M10G45) || \
> - defined(CONFIG_AT91SAM9XE) || defined(CONFIG_AT91SAM9X5)
> + defined(CONFIG_AT91SAM9XE) || defined(CONFIG_AT91SAM9X5) || \
> + defined(CONFIG_SAMA5D3)
> macb_writel(macb, USRIO, MACB_BIT(RMII) | MACB_BIT(CLKEN));
> #else
> macb_writel(macb, USRIO, 0);
> @@ -478,7 +479,8 @@ static int macb_init(struct eth_device *netdev, bd_t *bd)
> #if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260) || \
> defined(CONFIG_AT91SAM9263) || defined(CONFIG_AT91SAM9G20) || \
> defined(CONFIG_AT91SAM9G45) || defined(CONFIG_AT91SAM9M10G45) || \
> - defined(CONFIG_AT91SAM9XE) || defined(CONFIG_AT91SAM9X5)
> + defined(CONFIG_AT91SAM9XE) || defined(CONFIG_AT91SAM9X5) || \
> + defined(CONFIG_SAMA5D3)
> macb_writel(macb, USRIO, MACB_BIT(CLKEN));
> #else
> macb_writel(macb, USRIO, MACB_BIT(MII));
>
same about the ifdeffery as in '[PATCH 1/4] USB: ohci-at91: support
sama5d3x devices'. No concrete denial to get sama5 working, but we
should really cleanup this mess.
Best regards
Andreas Bießmann
More information about the U-Boot
mailing list