[PATCH] macb: add support for board specific get_ethaddr function

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Tue Jun 21 08:56:12 EDT 2011


On 15:55 Thu 16 Jun     , Hubert Feurstein wrote:
> Signed-off-by: Hubert Feurstein <h.feurstein at gmail.com>
> Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
> ---
>  arch/arm/mach-at91/include/mach/board.h |    2 ++
>  drivers/net/macb.c                      |    2 +-
>  2 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/arm/mach-at91/include/mach/board.h b/arch/arm/mach-at91/include/mach/board.h
> index 89c1746..89caebb 100644
> --- a/arch/arm/mach-at91/include/mach/board.h
> +++ b/arch/arm/mach-at91/include/mach/board.h
> @@ -21,6 +21,7 @@
>  #ifndef __ASM_ARCH_BOARD_H
>  #define __ASM_ARCH_BOARD_H
> 
> +#include <net.h>
>  #include <linux/mtd/mtd.h>
> 
>  void atmel_nand_load_image(void *dest, int size, int pagesize, int blocksize);
> @@ -47,6 +48,7 @@ void at91_add_device_nand(struct atmel_nand_data *data);
>  struct at91_ether_platform_data {
>  	unsigned int flags;
>  	int phy_addr;
> +	int (*get_ethaddr)(struct eth_device*, unsigned char *adr);
can we find a generic way?

Best Regards,
J.



More information about the barebox mailing list