[PATCH v2] davinci: MityDSP-L138/MityARM-1808 read MAC address from I2C Prom
Sergei Shtylyov
sshtylyov at mvista.com
Fri Sep 17 09:34:34 EDT 2010
Hello.
Michael Williamson wrote:
> For the MityDSP-L138/MityARM-1808 SOMS, read the factory assigned
> MAC address from the onboard I2C EPROM and assign it to the emac
> device during platform initialization.
> Signed-off-by: Michael Williamson <michael.williamson at criticallink.com>
[...]
> diff --git a/arch/arm/mach-davinci/board-mityomapl138.c b/arch/arm/mach-davinci/board-mityomapl138.c
> index 6f12a18..1fff0bb 100644
> --- a/arch/arm/mach-davinci/board-mityomapl138.c
> +++ b/arch/arm/mach-davinci/board-mityomapl138.c
> @@ -15,6 +15,8 @@
[...]
> +static void read_factory_config(struct memory_accessor *a, void *context)
> +{
[...]
> + if (is_valid_ether_addr(factory_config.mac))
> + memcpy(&soc_info->emac_pdata->mac_addr[0],
& and [0] are not needed.
> + &factory_config.mac[0], ETH_ALEN);
Same here.
WBR, Sergei
More information about the linux-arm-kernel
mailing list